Skip to main content

Attach a user to a workspace

POST 

/panel/workspaces/:workspace/users

Adds an existing user to the workspace with the given role.

user_id must belong to an existing user who is not already a member of this workspace.

When is_owner is true the user is also set as the workspace owner. When is_owner is false and the user is currently the owner, ownership is cleared. The attach and the ownership change are applied together — if either fails, neither is applied.

Request

Responses

{"success": true} — hard-coded literal, never false.