Skip to main content
PATCH
/
v1
/
member-access
/
{accessId}
Update a workspace member access assignment
curl --request PATCH \
  --url http://localhost:3001/v1/member-access/{accessId} \
  --header 'Content-Type: application/json' \
  --data '
{
  "clerkUserId": "<string>"
}
'
{
  "roles": [
    {
      "name": "<string>",
      "description": "<string>",
      "locked": true,
      "permissions": {},
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "assignments": [
    {
      "id": "<string>",
      "email": "jsmith@example.com",
      "clerkUserId": "<string>",
      "invitedByUserId": "<string>",
      "activatedAt": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ]
}

Headers

authorization
string
Minimum string length: 1
x-organization-id
string
Minimum string length: 1

Path Parameters

accessId
string
required
Minimum string length: 1

Body

application/json
roleId
enum<string>
Available options:
admin,
operations,
read_only
clerkUserId
string | null
Minimum string length: 1
status
enum<string>
Available options:
pending,
active

Response

Default Response

roles
object[]
required
assignments
object[]
required