组织管理

邀请成员

管理员直接添加用户为组织成员

post/organizations/{id}/invite

Path parameters

idstring required

组织ID

Request body

representative_user_idstring

RepresentativeUserID identifies the user attached to the OTM row for display/audit. Optional: when unset, the handler picks a stable default (the user from the legacy UserID field, or the workspace's owner).

role'admin' | 'editor' | 'viewer' required
tenant_idinteger

TenantID is the workspace to enrol as an org member. Preferred field.

user_idstring

UserID is retained for backward compatibility. When set without TenantID, the handler resolves the user's TenantID and uses this user as the representative.

Response

OK

object required

Changes

Changed in 2 of the 82 revisions of this API.11