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

Groups

List groups

get

Returns every group known to the authorization service, including the users that belong to each group.

Requires an account with administrative privileges (administrator or service account).

Responses
200

Groups list

application/json
get/api/groups
GET /api/groups HTTP/1.1
Accept: */*
{
  "data": [
    {
      "id": 7,
      "name": "data-stewards"
    }
  ]
}

Create group

post

Creates a group with the supplied name, description, alias and members.

Requires administrator access.

The user_ids array is a list of user IDs. Users that do not exist cause the request to fail with 422.

Group names must be unique: attempting to create a group with an existing name returns 422 with a "taken" error on name.

The response includes a Location header pointing at the newly created group.

Body
Responses
201

Group created

application/json
post/api/groups
POST /api/groups HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 104

{
  "group": {
    "alias": "ds",
    "description": "Data stewardship team",
    "name": "data-stewards",
    "user_ids": [
      42,
      43
    ]
  }
}
{
  "data": {
    "id": 7,
    "name": "data-stewards",
    "users": []
  }
}

Search groups

post

Returns the groups whose name, description or alias matches the query, up to a configured maximum number of results. Further matches are silently truncated.

query is a partial, case-insensitive match applied to the group name, description and alias.

When query is omitted or empty, the endpoint returns up to the configured maximum number of groups in arbitrary order.

Query parameters
querystringOptional

Partial, case-insensitive match against group name, description or alias.

Responses
200

Matching groups

application/json
post/api/groups/search
POST /api/groups/search HTTP/1.1
Accept: */*
{
  "data": [
    {
      "id": 7,
      "name": "data-stewards",
      "users": [
        {
          "id": 42
        }
      ]
    }
  ]
}

Get group

get

Returns the specified group with its members.

Requires administrator access.

Path parameters
idintegerRequired

Group ID.

Responses
200

Group detail

application/json
get/api/groups/{id}
GET /api/groups/{id} HTTP/1.1
Accept: */*
{
  "data": {
    "id": 7,
    "name": "data-stewards",
    "users": []
  }
}

Update group

put

Updates the group fields supplied in the request body.

Requires administrator access.

The user_ids array replaces the members of the group with the supplied list. Omit it to leave membership unchanged.

Partial updates are supported: fields not present in the payload are left untouched.

Path parameters
idintegerRequired

Group ID.

Body
Responses
200

Group updated

application/json
put/api/groups/{id}
PUT /api/groups/{id} HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 47

{
  "group": {
    "description": "Updated description"
  }
}
{
  "data": {
    "id": 7,
    "name": "data-stewards",
    "users": []
  }
}

Delete group

delete

Permanently deletes the specified group.

Requires administrator access.

Path parameters
idintegerRequired

Group ID.

Responses
204

Group deleted

No content

delete/api/groups/{id}
DELETE /api/groups/{id} HTTP/1.1
Accept: */*

No content

Update group

patch

Updates the group fields supplied in the request body.

Requires administrator access.

The user_ids array replaces the members of the group with the supplied list. Omit it to leave membership unchanged.

Partial updates are supported: fields not present in the payload are left untouched.

Path parameters
idintegerRequired

Group ID.

Body
Responses
200

Group updated

application/json
patch/api/groups/{id}
PATCH /api/groups/{id} HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 47

{
  "group": {
    "description": "Updated description"
  }
}
{
  "data": {
    "id": 7,
    "name": "data-stewards",
    "users": []
  }
}

Last updated