ZRM Docs
API ReferenceWorkspace Membership

workspaceMembership.add

Type: Mutation · Auth: Authenticated

Input

FieldTypeRequiredDefaultDescription
workspaceIdstringYesID of the associated workspace
userIdstringYesID of the associated user
membershipStatusenum(active, inactive, invited)Yes"active"Membership status
defaultWorkspacebooleanYesfalseDefault workspace
joinedAtstring.date-timeNoJoined at
leftAtstring.date-timeNoLeft at

Example

{
  "workspaceId": "550e8400-e29b-41d4-a716-446655440000",
  "userId": "550e8400-e29b-41d4-a716-446655440000",
  "membershipStatus": "active",
  "defaultWorkspace": false,
  "joinedAt": "2024-01-15T09:00:00.000Z",
  "leftAt": "2024-01-15T09:00:00.000Z"
}

On this page