Create Membership

View as Markdown

Create a new membership in the current workspace (ADMIN or OWNER only). Assign roles post-creation via related operations if necessary.

Request

This endpoint expects an object.
rolestringOptionalDefaults to VIEWER
emailstringOptionalformat: "email"

Response

Membership created
idintegerRead-only
memberintegerRead-only
groupintegerRead-only
roles_listlist of stringsRead-only
user_emailstringRead-only
user_usernamestringRead-only
user_fullnamestringRead-only
workspace_namestringRead-only
profile_picturestringRead-only
recent_activitystringRead-only
joined_atdatetimeRead-only
statusstringRead-only
current_rolestringRead-only

Errors

400
Bad Request Error
403
Forbidden Error