Skip to content

Delete Sector

DELETE
/api/v1/sectors/{sectorID}
curl --request DELETE \
--url https://api.spartanauth.com/api/v1/sectors/example

Deletes the specified sector. This action is irreversible and will delete all users and data associated with the sector. Requires the user to be an admin of the default sector.

sectorID
required
string

A successful response.

Media type application/json
object
status
string
message
string
Example generated
{
"status": "example",
"message": "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"
}
]
}