This API is used to delete an agency.
After this operation, the delegated party can no longer access the relevant resources. Exercise caution when performing this operation.
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
agency_id |
Yes |
String |
ID of an agency. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
Content-Type |
Yes |
String |
Fill application/json;charset=utf8 in this field. |
X-Auth-Token |
Yes |
String |
Authenticated token with the Security Administrator permission. |
curl -i -k -H "X-Auth-Token:$token" -H 'Content-Type:application/json;charset=utf8' -X DELETE https://sample.domain.com/v3.0/OS-AGENCY/agencies/2809756f748a46e2b92d58d309f67291
{
"error": {
"message": "Could not find agency: 2809756f748a46e2b92d58d309f67291",
"code": 404,
"title": "Not Found"
}
}
Status Code |
Description |
|---|---|
204 |
The request is successful. |
401 |
Authentication failed. |
403 |
Access denied. |
404 |
The requested resource cannot be found. |
500 |
Internal server error. |