Skip to the page

API reference

Groups

Groups of members and who is in each.

GET Groups in a workspace, system Groups included

/api/clist/v1/workspaces/{workspaceId}/groups

API key scope: workspace.view

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes

Responses

  • 200 application/json
    • groups array of object required
      • id string required A UUID for a custom Group; the fixed strings 'everyone' or 'admins' for a system Group.
      • kind one of: "system", "custom" required
      • name string required Localized for a system Group; author-chosen for a custom Group.
      • member_count integer (at least 0) required
      • created_at string (date-time) or null required Null for a system Group: it is never created, it always exists. UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
      • created_time_zone string (up to 64 characters) or null The creator’s IANA time zone when this was created; UTC if they had none stored, null for older records. A private record: present only for people who can edit the resource, and absent (not null) for everyone else. Null for the people who may see it means no zone is known.

Errors come in the error format.

POST Create a custom Group

/api/clist/v1/workspaces/{workspaceId}/groups

API key scope: workspace.manage_groups

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes

Request

Request body application/json (required): object

  • name string (up to 200 characters) required

Responses

  • 201 application/json
    • id string required A UUID for a custom Group; the fixed strings 'everyone' or 'admins' for a system Group.
    • kind one of: "system", "custom" required
    • name string required Localized for a system Group; author-chosen for a custom Group.
    • member_count integer (at least 0) required
    • created_at string (date-time) or null required Null for a system Group: it is never created, it always exists. UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
    • created_time_zone string (up to 64 characters) or null The creator’s IANA time zone when this was created; UTC if they had none stored, null for older records. A private record: present only for people who can edit the resource, and absent (not null) for everyone else. Null for the people who may see it means no zone is known.

Errors come in the error format.

GET One Group

/api/clist/v1/workspaces/{workspaceId}/groups/{groupId}

API key scope: workspace.view

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes
groupIdpathstring (up to 64 characters)yesA custom Group's UUID, or the fixed strings 'everyone' / 'admins'.

Responses

  • 200 application/json
    • id string required A UUID for a custom Group; the fixed strings 'everyone' or 'admins' for a system Group.
    • kind one of: "system", "custom" required
    • name string required Localized for a system Group; author-chosen for a custom Group.
    • member_count integer (at least 0) required
    • created_at string (date-time) or null required Null for a system Group: it is never created, it always exists. UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
    • created_time_zone string (up to 64 characters) or null The creator’s IANA time zone when this was created; UTC if they had none stored, null for older records. A private record: present only for people who can edit the resource, and absent (not null) for everyone else. Null for the people who may see it means no zone is known.

Errors come in the error format.

PATCH Rename a custom Group

/api/clist/v1/workspaces/{workspaceId}/groups/{groupId}

API key scope: workspace.manage_groups

forbidden for a system Group ('everyone' or 'admins'): it can never be renamed.

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes
groupIdpathstring (up to 64 characters)yesA custom Group's UUID, or the fixed strings 'everyone' / 'admins'.

Request

Request body application/json (required): object

  • name string (up to 200 characters) required

Responses

  • 200 application/json
    • id string required A UUID for a custom Group; the fixed strings 'everyone' or 'admins' for a system Group.
    • kind one of: "system", "custom" required
    • name string required Localized for a system Group; author-chosen for a custom Group.
    • member_count integer (at least 0) required
    • created_at string (date-time) or null required Null for a system Group: it is never created, it always exists. UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
    • created_time_zone string (up to 64 characters) or null The creator’s IANA time zone when this was created; UTC if they had none stored, null for older records. A private record: present only for people who can edit the resource, and absent (not null) for everyone else. Null for the people who may see it means no zone is known.

Errors come in the error format.

DELETE Delete a custom Group

/api/clist/v1/workspaces/{workspaceId}/groups/{groupId}

API key scope: workspace.manage_groups

forbidden for a system Group ('everyone' or 'admins'): it always exists and cannot be deleted.

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes
groupIdpathstring (up to 64 characters)yesA custom Group's UUID, or the fixed strings 'everyone' / 'admins'.

Responses

  • 204 no body

Errors come in the error format.

GET A Group's members

/api/clist/v1/workspaces/{workspaceId}/groups/{groupId}/members

API key scope: workspace.view

For 'everyone' or 'admins' this is always computed from current workspace roles.

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes
groupIdpathstring (up to 64 characters)yesA custom Group's UUID, or the fixed strings 'everyone' / 'admins'.

Responses

  • 200 application/json
    • members array of object required
      • user_id string (uuid) required
      • email string required
      • display_name string required
      • role one of: "owner", "admin", "member" required
      • app_profile_key string or null The A7reports app employee profile assigned to the member; null when they get the workspace default. On the workspace member routes (not on a Group’s members).
      • personal_owner boolean True for the person a personal workspace was created for at signup, whose role cannot change and who cannot be removed (personal_workspace_owner); false for everyone else. On the workspace member routes (not on a Group’s members).

Errors come in the error format.

POST Add a workspace member to a custom Group

/api/clist/v1/workspaces/{workspaceId}/groups/{groupId}/members

API key scope: workspace.manage_groups

forbidden for a system Group: its membership is always computed, never set directly. not_found when the user is not a current member of this workspace, the same answer a Group id that is not a Group would give -- there is no way to add a Group to a Group.

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes
groupIdpathstring (up to 64 characters)yesA custom Group's UUID, or the fixed strings 'everyone' / 'admins'.

Request

Request body application/json (required): object

  • user_id string (uuid) required

Responses

  • 201 application/json
    • user_id string (uuid) required
    • email string required
    • display_name string required
    • role one of: "owner", "admin", "member" required
    • app_profile_key string or null The A7reports app employee profile assigned to the member; null when they get the workspace default. On the workspace member routes (not on a Group’s members).
    • personal_owner boolean True for the person a personal workspace was created for at signup, whose role cannot change and who cannot be removed (personal_workspace_owner); false for everyone else. On the workspace member routes (not on a Group’s members).

Errors come in the error format.

DELETE Remove a member from a custom Group

/api/clist/v1/workspaces/{workspaceId}/groups/{groupId}/members/{userId}

API key scope: workspace.manage_groups

forbidden for a system Group: its membership is always computed.

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes
groupIdpathstring (up to 64 characters)yesA custom Group's UUID, or the fixed strings 'everyone' / 'admins'.
userIdpathstring (uuid)yes

Responses

  • 204 no body

Errors come in the error format.