---
title: "邀请成员"
method: POST
path: "/organizations/{id}/invite"
tags: ["组织管理"]
---

# 邀请成员

`POST /organizations/{id}/invite`

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

## Path parameters

- `id` string, required

## Request body

- GithubComTencentWeKnoraInternalTypesInviteMemberRequest
  - `representative_user_id` string — 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_id` integer — TenantID is the workspace to enrol as an org member. Preferred field.
  - `user_id` string — 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 `200`

OK

- object

## Other responses

- `400` — Bad Request
- `403` — Forbidden

---

[API](https://skmtc.net/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.net/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/versions/d6921ae22ce0/schema)
