DevelopmentApi
Create or update workspace member
Creates a new workspace membership or updates an existing membership for the same user and workspace.
Creates a new workspace membership or updates an existing membership for the same user and workspace.
Authorization
patAuth PAT<token>
Personal Access Token
In: header
Path Parameters
workspaceId*string
Request Body
application/json
userId*string
role*string
Value in
"workspace_admin" | "workspace_user"managerUserId?string
active?boolean
[key: string]?never
Response Body
application/json
curl -X POST "https://loading/api/workspaces/string/members" \ -H "Content-Type: application/json" \ -d '{ "userId": "string", "role": "workspace_admin" }'{
"$id": "string",
"organizationId": "string",
"workspaceId": "string",
"userId": "string",
"role": "workspace_admin",
"managerUserId": "string",
"active": true,
"invitedViaInviteId": "string"
}Empty
Empty