Passer au contenu principal
PUT
https://{teamSlug}.teams.auth0.com
/
api
/
members
/
{id}
/
tenants
Add to a team member's tenant access
curl --request PUT \
  --url https://{teamSlug}.teams.auth0.com/api/members/{id}/tenants \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tenants": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "roles": [
    "owner"
  ],
  "client_ids": [
    "<string>"
  ]
}
'
{
  "status_code": 123,
  "message": "<string>",
  "summary": {
    "total_count": 123,
    "success_count": 123,
    "failure_count": 123
  },
  "success": [
    {
      "tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "roles": [
        "owner"
      ],
      "client_ids": [
        "<string>"
      ]
    }
  ],
  "failure": [
    {
      "tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": 123,
      "title": "<string>",
      "type": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs-dev.auth0-mintlify.app/llms.txt

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

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

id
string
requis

The unique ID of the team member to update

Corps

application/json

The tenants and roles to add to the team member.

tenants
string<uuid>[]
requis

A list of tenant ids

Required array length: 1 - 10 elements

Unique identifier of the tenant

roles
enum<string>[]
requis

List of roles to be assigned to the tenant member

Minimum array length: 1

Tenant Member Role

Options disponibles:
owner,
editor-connections,
editor-users,
editor-specific-apps,
editor-organizations,
viewer-config,
viewer-users,
support-access,
elevated-support-access,
editor-kms
client_ids
string[]

List of applications. Only if nested role is editor-specific-app

Required string length: 5 - 50
Pattern: ^([0-9a-zA-Z-_@\.~]{5,64})$

Réponse

Operation completed with errors

status_code
integer
requis

Status code for partial response

message
string
requis

Describing the partial error scenario

summary
object
requis

Summary of the bulk tenant operation

success
object[]
requis

List of successful instances

failure
object[]
requis

List of failed instances