Pular para o conteúdo principal
PUT
/
roles
/
{membershipId}
Atualizar permissões
curl --request PUT \
  --url https://api.contas.rdstationmentoria.com.br/rest/roles/{membershipId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "roles": [
    {
      "appId": "<string>",
      "role": null
    }
  ]
}'
[
  {
    "membershipId": "<string>",
    "appId": "<string>",
    "role": null,
    "createdBy": null,
    "updatedBy": null,
    "createdAt": "2025-07-21T17:52:50.048Z",
    "updatedAt": "2025-07-21T17:52:50.048Z"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

membershipId
string
required

Identificador único do membro

Body

application/json
roles
object[]
required

Lista dos papéis

Response

Successful response

membershipId
string
required

Identificador único do membro

appId
string
required

Identificador único do app

role
string | null

Permissão associada ao membro

createdBy
string | null

ID do usuário que criou o registro

updatedBy
string | null

ID do usuário que atualizou o registro

createdAt
string<date-time>
default:2025-07-21T17:52:50.048Z

Data de criação

updatedAt
string<date-time>
default:2025-07-21T17:52:50.048Z

Data da última atualização