This endpoint requires authentication. Include your Bearer token in the Authorization header.
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
curl --request PATCH \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/labels/{labelId}/access/{tenantUserId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "role": "admin",
  "permissions": [
    "<string>"
  ]
}'{
  "status": "<string>",
  "data": {
    "TenantId": 123,
    "LabelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "TenantUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "role": "admin",
    "permissions": [
      "<string>"
    ],
    "TenantUser": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "firstName": "<string>",
      "lastName": "<string>",
      "role": "owner",
      "permissions": {},
      "User": {
        "email": "jsmith@example.com",
        "profilePicture": "<string>"
      }
    }
  }
}Update Label Access
curl --request PATCH \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/labels/{labelId}/access/{tenantUserId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "role": "admin",
  "permissions": [
    "<string>"
  ]
}'{
  "status": "<string>",
  "data": {
    "TenantId": 123,
    "LabelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "TenantUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "role": "admin",
    "permissions": [
      "<string>"
    ],
    "TenantUser": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "firstName": "<string>",
      "lastName": "<string>",
      "role": "owner",
      "permissions": {},
      "User": {
        "email": "jsmith@example.com",
        "profilePicture": "<string>"
      }
    }
  }
}const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/labels/example-id/access/example-id', {
  method: 'PATCH',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "ref": "#/components/schemas/LabelAccessUpdateInput"
  })
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"