PUT
/
roles
/
{membershipId}
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-04T18:19:21.202Z",
    "updatedAt": "2025-07-04T18:19:21.202Z"
  }
]

Authorizations

Authorization
string
header
required

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

Path Parameters

membershipId
string
required

Body

application/json

Response

200
application/json

Successful response

The response is of type object[].

PUT
/
roles
/
{membershipId}
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-04T18:19:21.202Z",
    "updatedAt": "2025-07-04T18:19:21.202Z"
  }
]

Authorizations

Authorization
string
header
required

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

Path Parameters

membershipId
string
required

Body

application/json

Response

200
application/json

Successful response

The response is of type object[].