Add Members (Deployment Plan)¶
POST /api/v1/workspace/member/batch_add
Overview¶
Add one or multiple members (Only supported in Deployment Plan)
Body Request Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| accountUUIDs | array | Y | Account list Example: ['acnt_xxxx32'] Allow empty: False |
| roleUUIDs | array | Y | User role UUID list Example: ['general', 'readOnly', 'role_xxxx32'] Allow empty: False |
Parameter Supplementary Description¶
- Request parameter description
| Parameter | type | Description |
|---|---|---|
| accountUUIDs | array | Account UUIDs within the site |
| roleUUIDs | array | Workspace role UUIDs |
- roleUUIDs description
| Role | Description |
|---|---|
| wsAdmin | Administrator role |
| general | Standard member role |
| readOnly | Read-only role |
| role_xxx | Custom role |
Request Example¶
curl 'https://openapi.guance.com/api/v1/workspace/member/batch_add' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"accountUUIDs": ["acnt_xxxx32"], "roleUUIDs": ["general","role_xxxx32"]}' \
--compressed