Withdraw user consent record
POST
/api/admin/users/{userId}/consent-records/{statementId}/withdraw
Code sample: Shell / cURL
curl --request POST \ --url https://auth.example.com/api/admin/users/example/consent-records/example/withdraw \ --header 'Authorization: Bearer <token>'Withdraws a granted consent statement as an admin action and records consent item history.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” userId
required
string
statementId
required
string
Responses
Section titled “ Responses ”Successful JSON response.
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"}