/api/v1/admin/community/groups/users| Name | Type | Required | Description |
|---|---|---|---|
| x-api-key | String | ā Yes | API key provided by the Networked Team. Used to authenticate external client requests. |
| spaceId | String | ā Yes | UUID of the target group (space) to add users into. Identifies which group the users should be added to. |
| Content-Type | String | ā Yes | Must be application/json. |
| Name | Type | Required | Description |
|---|---|---|---|
| userId | String | ā Yes | User ID(s) to add to the group. Pass a single UUID, or multiple UUIDs separated by commas (e.g. uuid-1,uuid-2). Whitespace around commas is trimmed. |
{
"userId": "dcb88996-2317-428d-b10d-07ecb5de95ee"
}{
"userId": "dcb88996-2317-428d-b10d-07ecb5de95ee,a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}{
"data": {},
"error": false,
"message": "Success"
}interface AddUsersToSpaceResponse {
data: Record<string, never>;
error: boolean;
message: string;
}| Field | Type | Description |
|---|---|---|
| data | Object | Empty object on success. |
| error | Boolean | false when the operation succeeds. |
| message | String | Descriptive message for the API outcome (e.g. "Success"). |
spaceId must be a ** space** with a parent community.userId must already be an Accepted member of the parent community with a role assigned.| Code | Message (typical) | When |
|---|---|---|
| 512 | User ID is required | Missing or invalid userId in body. |
| 512 | User is already part of Community | User already has Accepted membership in this group. |
| 525 | No data found | Group has no parent community, or user is not an accepted parent member with a role. |
| 555 | The provided X-API-KEY is invalid or has expired. | Invalid or inactive x-api-key. |
| 429 | Too many requests | Rate limit exceeded (100 requests/minute per client). |
x-api-key.spaceId is required in the header and identifies the target Space; userId is required in the body and identifies the user(s) to add.x-api-key.x-api-key is omitted, the endpoint will fail.curl --location 'https://backend.networked.co/api/v1/admin/community/groups/users' \
--header 'x-api-key: <your-api-key>' \
--header 'spaceId: {{spaceId}}' \
--header 'Content-Type: application/json' \
--data '{
"userId": "dcb88996-2317-428d-b10d-07ecb5de95ee"
}'{
"data": {},
"error": false,
"message": "Success"
}