Deleta permanentemente um papel
Payload de entrada
{
"Nome do papel a ser deletado"
name: "string"
}
Request
curl --location --request POST "https://api.senior.com.br/platform/authorization/deleteRole" --header "Content-Type: application/json" --header "client_id: {client_id}" --header "Accept: application/json" --header "Authorization: Bearer {token}" --data-raw "{ 'name': '{string}' }"
Response
{}
{
"message": "Papel {string} não encontrado",
"errorCode": "deleteRoleResponse",
"reason": "OBJECT_NOT_FOUND",
"domain": "platform",
"service": "authorization"
}