Remove um ou mais papéis de um ou mais usuários, lançando o evento rolePermissionsChanged com os usuários removidos
Payload de entrada
{
//Nomes dos papéis onde os usuários serão removidos
roles : [ "string" ],
//Os usuário à serem removidos dos papéis
users : [ "string" ]
}
Request
curl --location --request POST "https://api.senior.com.br/platform/authorization/unassignUsers" --header "Content-Type: application/json" --header "client_id: {client_id}" --header "Accept: application/json" --header "Authorization: Bearer {token}" --data-raw "{ 'roles': [ '{string}' ], 'users': [ '{string}' ] }"
Response
{}
{
"message": "users is required, at least one value must be present",
"errorCode": "validation",
"reason": "BAD_REQUEST",
"domain": "platform",
"service": "authorization"
}
{
"message": "roles is required, at least one value must be present",
"errorCode": "validation",
"reason": "BAD_REQUEST",
"domain": "platform",
"service": "authorization"
}