invite_member
Deprecated: use create_invite, which emails the address an invitation to accept.
Adds a user to a workspace by email at once, creating the Layer user if needed, with the
given role (or the workspace's default) and an ACTIVE membership; they receive an invite
notification. Fails if the workspace has invites disabled or the user is already a member.
Requires workspace member-edit permission.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
workspace_idrequired | string (uuid) | — | The workspace to invite the user into. |
emailrequired | string (email) | — | Email address of the person to invite. A Layer user is created if none exists. |
role | string | — | The built-in role to grant, by key: admin or creator, plus member in an enterprise workspace. Deprecated: use role_id. |
role_id | string (uuid) | — | ID of the role to grant, custom included. Use list_roles to find one. Leave unset for the workspace's default: creator, or member in an enterprise workspace. |