Skip to main content
POST
/
identity
/
v1
/
roles
/
{roleId}
/
members
Assigns or removes users (members) for a role in the caller's organization.
curl --request POST \
  --url https://api.sandbox.tesouro.com/identity/v1/roles/{roleId}/members \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}
'
{
  "detail": "<string>",
  "instance": "<string>",
  "status": 123,
  "title": "<string>",
  "type": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.tesouro.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Application (M2M) OAuth2 access token (client credentials).

Path Parameters

roleId
string<uuid>
required

The ID of the role.

Body

Cancellation token.

type
enum<string>
required
Available options:
ASSIGN,
REMOVE
userIds
string<uuid>[]
required

Response

Members updated successfully.