Create or upsert a workspace member access assignment
curl --request POST \
--url http://localhost:3001/v1/member-access \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"clerkUserId": "<string>",
"invitedByUserId": "<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"
}
]
}โ๏ธ Settings & Access
Create or upsert a workspace member access assignment
POST
/
v1
/
member-access
Create or upsert a workspace member access assignment
curl --request POST \
--url http://localhost:3001/v1/member-access \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"clerkUserId": "<string>",
"invitedByUserId": "<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
Minimum string length:
1Minimum string length:
1Body
application/json
Pattern:
^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$Available options:
admin, operations, read_only Available options:
pending, active Minimum string length:
1Minimum string length:
1List workspace roles and member access assignmentsSync active Clerk members into workspace access assignments
โI
