Docs
DevelopersAPI reference

Add members to a group

POST/groups/{id}/members

Adds active members to a group. People already in it are listed in already_members and left as they are.

Authorization

apiKey groups:write
AuthorizationBearer <token>

An organisation API key, sent as Authorization: Bearer enl_…. Create keys in Settings, API Keys.

In: header

Scope: groups:write

Path Parameters

id*string
Formatuuid

Header Parameters

Idempotency-Key*string

A unique value per change, up to 255 characters. Retrying with the same key returns the first response for 24 hours.

Lengthlength <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/groups/497f6eca-6276-4993-bfeb-53cbbbba6f08/members" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{    "user_ids": [      "2d98503d-4ab4-41bd-8fc6-78cc006fd2db"    ]  }'
{  "added": [    "cfeefd5f-7de0-424c-ae7a-a31ee9b42101"  ],  "already_members": [    "82d56bd0-3721-42b9-95d9-0bf7476e1840"  ]}