For the complete documentation index, see llms.txt. This page is also available as Markdown.

Add Group Member

Add a user to the group.

Returns 404 if user_id is not already a member of the workspace.

Returns 409 if the user is already in the group.

Returns 400 if the group is the built-in "All Users" group, whose membership always tracks the workspace roster instead and can't be modified directly.

post
/workspaces/{workspace_id}/groups/{group_id}/members
Authorizations
AuthorizationstringRequired

A Personal Access Token (PAT).

Path parameters
workspace_idstringRequired
group_idstringRequired
Body
user_idstringRequired
Responses
201

Successful Response

application/json
post/workspaces/{workspace_id}/groups/{group_id}/members
curl -L -X POST https://api-external.zenlytic.com/api/v2/workspaces/<workspace_id>/groups/<group_id>/members \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"user_id": "usr_111"}'
{
  "data": {
    "id": "grp_123",
    "workspace_id": "ws_456",
    "name": "Sales",
    "is_all_users": false,
    "user_attribute_precedence": 1,
    "users": [
      "usr_111",
      "usr_222"
    ]
  },
  "meta": {
    "status": "success",
    "errors": [],
    "warnings": []
  }
}

Last updated

Was this helpful?