Retorna os dados de um papel
Payload de entrada
{
//O nome do papel
name : "string"
}
Request
curl --location --request POST "https://api.senior.com.br/platform/authorization/getRole" --header "Content-Type: application/json" --header "client_id: {client_id}" --header "Accept: application/json" --header "Authorization: Bearer {token}" --data-raw "{ 'name': '{string}' }"
Response
{
"role": {
"name": "string",
"description": "string"
}
}
{
"message": "Papel {string} não encontrado",
"errorCode": "getRoleResponse",
"reason": "OBJECT_NOT_FOUND",
"domain": "platform",
"service": "authorization"
}