Revoke Consent Using DELETE
Revoke consent before it expires
Access Policy
Role | User Accounts | Service Accounts (Client Credentials Applications) |
---|---|---|
Organization Admin | ✔️ | ❌ |
Organization Owner | ✔️ | ❌ |
Unique identifier (GUID) of the organization.
The unique identifier of the CONSENT.
Consent is revoked successfully.
The user is not authorized to use the API
{
"cspErrorCode": "string",
"message": "string",
"errorCode": "string",
"requestId": "string",
"moduleCode": 0,
"statusCode": 0
}
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
The user is forbidden to use the API
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
Consent is not present.
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
The user has sent too many requests
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
An unexpected error has occurred while processing the request
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
curl -X DELETE -H 'Authorization: <value>' https://{api_host}/csp/gateway/am/api/orgs/{orgId}/consents/{consentId}