v50

latestSwagger 2.0raw.githubusercontent.com2026-08-07307239824.1 KB
组织管理

邀请成员

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

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