Add an existing user to the workspace or send an invitation if the user doesn’t exist.
workspace-users-write ability.
| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | integer | Yes | The workspace ID |
| Parameter | Type | Required | Description |
|---|---|---|---|
email | string | Yes | Email address of the user to add |
role | string | Yes | Role to assign: admin, user, or readonly |
200 OK – User added or invitation sent.
422 Unprocessable Entity – User is already a member or validation error.