Skip to content

Update Sector

PUT
/api/v1/sectors/{sectorID}
curl --request PUT \
--url https://api.spartanauth.com/api/v1/sectors/example \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "domain": "example", "isDefault": true, "allowedOrigins": [ "example" ], "slug": "example" }'

Updates the sector’s name, domain, allowed origins, and slug. The slug must be unique across all sectors. Requires the user to be an admin of the sector being updated.

sectorID
required
string
Media type application/json
object
name
string
domain
string
isDefault
boolean
allowedOrigins
Array<string>
slug
string
Example generated
{
"name": "example",
"domain": "example",
"isDefault": true,
"allowedOrigins": [
"example"
],
"slug": "example"
}

A successful response.

Media type application/json
object
sectorID
string
name
string
domain
string
isDefault
boolean
allowedOrigins
Array<string>
slug
string
Example generated
{
"sectorID": "example",
"name": "example",
"domain": "example",
"isDefault": true,
"allowedOrigins": [
"example"
],
"slug": "example"
}

An unexpected error response.

Media type application/json
object
code
integer format: int32
message
string
details
Array<object>
object
@type
string
key
additional properties
Example generated
{
"code": 1,
"message": "example",
"details": [
{
"@type": "example"
}
]
}