Revoke user OAuth consent
DELETE
/api/admin/users/{userId}/consents/{clientId}
Code sample: Shell / cURL
curl --request DELETE \ --url https://auth.example.com/api/admin/users/example/consents/example \ --header 'Authorization: Bearer <token>'Revokes a user consent for one OAuth client, records consent history, and invalidates consent cache.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” userId
required
string
clientId
required
string
Responses
Section titled “ Responses ”Consent revoked.
Media type application/json
object
success
required
boolean
key
additional properties
Example
{ "success": true}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}