GET Groups in a workspace, system Groups included
/api/clist/v1/workspaces/{workspaceId}/groups
API key scope: workspace.view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes |
Responses
- 200
application/jsongroupsarray of object requiredidstring required A UUID for a custom Group; the fixed strings 'everyone' or 'admins' for a system Group.kindone of: "system", "custom" requirednamestring required Localized for a system Group; author-chosen for a custom Group.member_countinteger (at least 0) requiredcreated_atstring (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_zonestring (up to 64 characters) or null The creator’s IANA time zone when this was created;UTCif 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes |
Request
Request body application/json (required): object
namestring (up to 200 characters) required
Responses
- 201
application/jsonidstring required A UUID for a custom Group; the fixed strings 'everyone' or 'admins' for a system Group.kindone of: "system", "custom" requirednamestring required Localized for a system Group; author-chosen for a custom Group.member_countinteger (at least 0) requiredcreated_atstring (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_zonestring (up to 64 characters) or null The creator’s IANA time zone when this was created;UTCif 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes | |
groupId | path | string (up to 64 characters) | yes | A custom Group's UUID, or the fixed strings 'everyone' / 'admins'. |
Responses
- 200
application/jsonidstring required A UUID for a custom Group; the fixed strings 'everyone' or 'admins' for a system Group.kindone of: "system", "custom" requirednamestring required Localized for a system Group; author-chosen for a custom Group.member_countinteger (at least 0) requiredcreated_atstring (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_zonestring (up to 64 characters) or null The creator’s IANA time zone when this was created;UTCif 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes | |
groupId | path | string (up to 64 characters) | yes | A custom Group's UUID, or the fixed strings 'everyone' / 'admins'. |
Request
Request body application/json (required): object
namestring (up to 200 characters) required
Responses
- 200
application/jsonidstring required A UUID for a custom Group; the fixed strings 'everyone' or 'admins' for a system Group.kindone of: "system", "custom" requirednamestring required Localized for a system Group; author-chosen for a custom Group.member_countinteger (at least 0) requiredcreated_atstring (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_zonestring (up to 64 characters) or null The creator’s IANA time zone when this was created;UTCif 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes | |
groupId | path | string (up to 64 characters) | yes | A 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes | |
groupId | path | string (up to 64 characters) | yes | A custom Group's UUID, or the fixed strings 'everyone' / 'admins'. |
Responses
- 200
application/jsonmembersarray of object requireduser_idstring (uuid) requiredemailstring requireddisplay_namestring requiredroleone of: "owner", "admin", "member" requiredapp_profile_keystring 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_ownerboolean 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes | |
groupId | path | string (up to 64 characters) | yes | A custom Group's UUID, or the fixed strings 'everyone' / 'admins'. |
Request
Request body application/json (required): object
user_idstring (uuid) required
Responses
- 201
application/jsonuser_idstring (uuid) requiredemailstring requireddisplay_namestring requiredroleone of: "owner", "admin", "member" requiredapp_profile_keystring 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_ownerboolean 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes | |
groupId | path | string (up to 64 characters) | yes | A custom Group's UUID, or the fixed strings 'everyone' / 'admins'. |
userId | path | string (uuid) | yes |
Responses
- 204 no body
Errors come in the error format.