Skip to main content
POST
/
identity
/
v1
/
locations
/
{locationId}
/
members
Bulk assigns or removes users from a location.
curl --request POST \
  --url https://api.sandbox.tesouro.com/identity/v1/locations/{locationId}/members \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "ASSIGN",
  "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

locationId
string<uuid>
required

The ID of the location.

Body

Cancellation token.

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

Response

Memberships updated successfully.