Skip to content
Pile
Esc
navigateopen⌘Jpreview

Create membership

POST/workspaces/{organizationId}/memberships
Path parameters
organizationIdstringrequired
Request body
application/json
userIdstringrequired
min length 1
rolestring
Allowed:owneradminmember
Responses
201Membership created
idstringrequired
organizationIdstringrequired
userIdstringrequired
rolestringrequired
Allowed:owneradminmember
createdAtstringrequired
Try it
Server
Parameters
Bodyapplication/json
Request
curl -X POST "/workspaces/string/memberships" \
  -H "Content-Type: application/json" \
  -d '{
  "userId": "string",
  "role": "owner"
}'
Response
{
  "id": "string",
  "organizationId": "string",
  "userId": "string",
  "role": "owner",
  "createdAt": "string"
}