PATCH
/
tenants
/
members
/
{id}
curl --request PATCH \
  --url https://api.pxyz.dev/api/v0/tenants/members/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "roleAdmin": true,
  "roleEditOrganizations": true,
  "roleEditUsers": true,
  "roleEditConfig": true,
  "roleViewUsers": true,
  "roleViewOrganizations": true,
  "roleViewConfig": true,
  "roleViewBilling": true,
  "roleEditBilling": true
}'
{
  "id": "<string>",
  "tenantId": "<string>",
  "userId": "<string>",
  "user": {
    "id": "<string>",
    "emailAddresses": [
      {
        "id": "<string>",
        "email": "jsmith@example.com",
        "verifiedAt": "2023-11-07T05:31:56Z"
      }
    ],
    "primaryEmailId": "<string>",
    "name": "<string>"
  },
  "roleAdmin": true,
  "roleEditOrganizations": true,
  "roleEditUsers": true,
  "roleEditConfig": true,
  "roleViewUsers": true,
  "roleViewOrganizations": true,
  "roleViewConfig": true,
  "roleViewBilling": true,
  "roleEditBilling": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Path Parameters

id
string
required

Body

application/json
roleAdmin
boolean
required
roleEditOrganizations
boolean
required
roleEditUsers
boolean
required
roleEditConfig
boolean
required
roleViewUsers
boolean
required
roleViewOrganizations
boolean
required
roleViewConfig
boolean
required
roleViewBilling
boolean
required
roleEditBilling
boolean
required

Response

200 - application/json
id
string
required
tenantId
string
required
userId
string
required
user
object | null
roleAdmin
boolean
required
roleEditOrganizations
boolean
required
roleEditUsers
boolean
required
roleEditConfig
boolean
required
roleViewUsers
boolean
required
roleViewOrganizations
boolean
required
roleViewConfig
boolean
required
roleViewBilling
boolean
required
roleEditBilling
boolean
required
createdAt
string
required
updatedAt
string
required