GET How deleting this workspace works
/api/clist/v1/workspaces/{workspaceId}/deletion
API key scope: workspace.delete
timer is true where one of the workspace’s Jornada packs keeps an ARP and it holds Jornada records. Such a workspace is deleted only after a full Jornada export made at most export_max_age_hours before and its ZIP (bundle_url) downloaded completely; deleting it removes all access at once and erases its data erasure_days later; the encrypted backup copies expire within backup_days more; the employer must keep the export for keep_years. Otherwise the workspace is erased at once. full_export is the latest full Jornada export when timer is true (fresh: still recent enough; bundle_downloaded: its ZIP, or every one of its yearly parts (parts), was downloaded completely), else null. Owners only.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes |
Responses
- 200
application/jsontimerboolean requirederasure_daysinteger requiredbackup_daysinteger requiredexport_max_age_hoursinteger requiredkeep_yearsinteger or null requiredfull_exportobject or nullidstring (uuid) requiredread_atstring (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.freshboolean requiredbundle_urlstring requiredbundle_downloadedboolean requiredpartsarray of objectyearinteger requiredbundle_urlstring requireddownloadedboolean required
Errors come in the error format.
POST Export all of the workspace’s data
/api/clist/v1/workspaces/{workspaceId}/export
API key scope: workspace.delete
A ZIP with manifest.json, data.json (every table of the workspace, including the audit log), provenance.json (the code, schema and format that made it, docs/provenance.md) and the attachment files. It carries nothing of any other workspace and no secrets (API keys, invitations, guest invitations, link PIN hashes, sessions, visitor IDs). Owners only; counts against the plan’s exports per hour; payload_too_large past 256 MB of attachments.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes |
Responses
- 200
application/zipThe ZIP archive.
Errors come in the error format.
GET Members of a workspace
/api/clist/v1/workspaces/{workspaceId}/members
API key scope: workspace.view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes |
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.
GET The workspace retention setting
/api/clist/v1/workspaces/{workspaceId}/retention
API key scope: workspace.view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes |
Responses
- 200
application/jsonretention_daysnull or integer (1 to 3650) required Days a run is kept after its last activity;nullkeeps runs until the workspace is deleted.
Errors come in the error format.
PUT Set how long run data is kept
/api/clist/v1/workspaces/{workspaceId}/retention
API key scope: workspace.update
Runs (their answers, submissions and attachments) whose last activity is older than retention_days are purged by a daily job, and anonymous IDs left with no data are purged with them. The audit log has separate retention. null keeps everything.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes |
Request
Request body application/json (required): object
retention_daysnull or integer (1 to 3650) required Days a run is kept after its last activity;nullkeeps runs until the workspace is deleted.
Responses
- 200
application/jsonretention_daysnull or integer (1 to 3650) required Days a run is kept after its last activity;nullkeeps runs until the workspace is deleted.
Errors come in the error format.