Space Docs
Domain Model

Workspace Membership

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYes—Id
createdAtstring.date-timeYes—Created at
updatedAtstring.date-timeYes—Updated at
workspaceIdstringYes—ID of the associated workspace
userIdstringYes—ID of the associated user
membershipStatusenum(active, inactive, invited)Yes—Membership status
defaultWorkspacebooleanYes—Default workspace
joinedAtstring.date-timeNo—Joined at
leftAtstring.date-timeNo—Left at

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
workspaceIdstringYes—ID of the associated workspace
userIdstringYes—ID of the associated user
membershipStatusenum(active, inactive, invited)Yes"active"Membership status
defaultWorkspacebooleanYesfalseDefault workspace
joinedAtstring.date-timeNo—Joined at
leftAtstring.date-timeNo—Left at

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
membershipStatusenum(active, inactive, invited)No—Membership status
defaultWorkspacebooleanNo—Default workspace
joinedAtstring.date-timeNo—Joined at
leftAtstring.date-timeNo—Left at

On this page