Revoke Client
Revoke Oauth App Client. You need to pass asset id or client id as input. Asset id/client id can be fetched from Oauth App search api.
{
"asset_id": "asset@test",
"tenant_id": "567905de-ef1c-48ce-9e4e-05c28f5caaa6"
}
Id of the owner tenant in which Oauth App is created
Asset id of Oauth App.
client id of Oauth App
OK
{
"client_id": "94faf930-df7e-477d-b6fe-e80c9b049e30",
"asset_id": "asset@test",
"site_id": 67444,
"tenant_id": "567905de-ef1c-48ce-9e4e-05c28f5caaa6",
"revoked_by": "[email protected]"
}
Id of the owner tenant in which Oauth App is created
Asset id of Oauth App
Client id of Oauth App
Site id.
Principal who revoked the Oauth App
Bad Request
{
"value": {
"major_error_code": "INVALID_ASSET_ID",
"minor_error_code": "INVALID_ASSET_ID",
"message": "Invalid Asset ID In the Request OR Asset is already revoked."
}
}
parameters
message
major_error_code
minor_error_code
http_status_code
Unauthorized
{
"value": {
"major_error_code": 401,
"minor_error_code": "UNAUTHORIZED",
"message": "Validation Failed. Reason: Token Expired"
}
}
parameters
message
major_error_code
minor_error_code
http_status_code
Forbidden
{
"major_error_code": 403,
"minor_error_code": "ACCESS_DENIED",
"message": "Access Denied"
}
parameters
message
major_error_code
minor_error_code
http_status_code
Not Found
{
"value": {
"major_error_code": "NOT_FOUND",
"minor_error_code": "TENANT_NOT_FOUND",
"message": "Tenant 567905de-ef1c-48ce-9e4e-05c28f5caaa6 not found."
}
}
parameters
message
major_error_code
minor_error_code
http_status_code
Internal Server Error
{
"value": {
"major_error_code": "FAILED_TO_REVOKE_ASSET",
"minor_error_code": "FAILED_TO_REVOKE_ASSET",
"message": "Failed to revoke asset."
}
}
parameters
message
major_error_code
minor_error_code
http_status_code
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/vcf/tenant-mgmt/api/v1/auth/clients/revoke