Skip to the page

API reference

Policy and settings

Workspace policy, settings and usage.

GET The workspace policy: restrictions applied to every checklist by default

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

API key scope: workspace.view

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes

Responses

  • 200 application/json
    • restrictions object required
      • anonymous_access boolean
      • media_photo boolean
      • media_audio boolean
      • media_video boolean
      • max_file_size_bytes integer (at least 0)
      • max_attachments_per_item integer (at least 0)
      • login_methods array of string (up to 40 characters)
      • participant_cap integer (at least 0)
      • link_modes array of one of: "individual", "collaborators"
      • export boolean
      • api_access boolean
      • hooks boolean
    • capabilities object required
      • anonymous_access object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • media_photo object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • media_audio object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • media_video object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • max_file_size_bytes object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • max_attachments_per_item object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • login_methods object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • participant_cap object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • link_modes object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • export object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • api_access object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • hooks object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.

Errors come in the error format.

PUT Replace the workspace policy

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

API key scope: workspace.update

Restrictions applied to every checklist unless it narrows further (photo, audio and video, file size, attachments per item, login methods, participant cap, link modes, anonymous access, export, API access, hooks). A restriction may only narrow the plan: asking for more than the plan allows is limit_exceeded. Send {} to lift every restriction; existing content is never deleted.

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes

Request

Request body application/json (required): object

  • anonymous_access boolean
  • media_photo boolean
  • media_audio boolean
  • media_video boolean
  • max_file_size_bytes integer (at least 0)
  • max_attachments_per_item integer (at least 0)
  • login_methods array of string (up to 40 characters)
  • participant_cap integer (at least 0)
  • link_modes array of one of: "individual", "collaborators"
  • export boolean
  • api_access boolean
  • hooks boolean

Responses

  • 200 application/json
    • restrictions object required
      • anonymous_access boolean
      • media_photo boolean
      • media_audio boolean
      • media_video boolean
      • max_file_size_bytes integer (at least 0)
      • max_attachments_per_item integer (at least 0)
      • login_methods array of string (up to 40 characters)
      • participant_cap integer (at least 0)
      • link_modes array of one of: "individual", "collaborators"
      • export boolean
      • api_access boolean
      • hooks boolean
    • capabilities object required
      • anonymous_access object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • media_photo object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • media_audio object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • media_video object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • max_file_size_bytes object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • max_attachments_per_item object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • login_methods object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • participant_cap object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • link_modes object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • export object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • api_access object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.
      • hooks object required
        • enabled boolean required
        • limit integer or array of string or null For a ceiling, the effective maximum (null: none); for an allowed set, the allowed values.
        • reason one of: "plan_limit", "policy" Why it is off. plan_limit: the plan does not allow it. policy: workspace policy or the checklist.
        • source one of: "plan", "workspace", "checklist" The layer that decided the value.

Errors come in the error format.

GET Workspace settings

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

API key scope: workspace.view

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes

Responses

  • 200 application/json
    • tag_creation_admins_only boolean required Only workspace owners and admins may create a new Tag; everyone can still use existing ones.
    • offline_grace_hours integer (0 to 72) required How long after a checklist expired or an occurrence closed an answer or a submit the app captured in time is still accepted, flagged late_sync. 72 hours by default; 0 turns it off.
    • badge_max_installs integer (1 to 5) required How many phones may hold one worker’s A7 QR ID at once, 1 to 5; 1 by default. Only a workspace owner may change it. Lowering it revokes, in the same request, each worker’s oldest A7 QR IDs beyond the new number (replaced); raising it revokes nothing.
    • former_members_see_own_runs boolean required A former member may read, and only read, the runs they started and submitted themselves (GET …/me/runs?state=submitted, GET …/runs/{runId}, its items and its PDF); any other run is not_found for them. Off by default: those routes then answer forbidden with former_member. A member removed while it is on, who has such a run, is kept as a former member. Changed by a person (an owner or admin), not by an API key.

Errors come in the error format.

PUT Change workspace settings

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

API key scope: workspace.update

Only the fields sent change. tag_creation_admins_only limits creating a new Tag to workspace owners and admins. offline_grace_hours (0 to 72, 72 by default, 0 for off) is how long the A7reports app may deliver an answer it captured before the checklist expired or the occurrence closed. badge_max_installs (1 to 5, 1 by default) is how many phones may hold one worker’s A7 QR ID at once, sent as a JSON number: only a workspace owner, signed in, may change it (forbidden for an admin or an API key that sends another number, and then nothing in the request is applied; the number it already has is accepted from anyone who may change the other settings). Lowering it revokes each worker’s oldest A7 QR IDs beyond the new number (replaced) in the same transaction. former_members_see_own_runs (off by default) lets a former member read, and only read, the runs they submitted themselves, sent as a JSON boolean; owners and admins change it, an API key cannot (forbidden). Audit-logged as settings_updated with the old and new values.

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes

Request

Request body application/json (required): object

  • tag_creation_admins_only boolean Only workspace owners and admins may create a new Tag; everyone can still use existing ones.
  • offline_grace_hours integer (0 to 72) How long after a checklist expired or an occurrence closed an answer or a submit the app captured in time is still accepted, flagged late_sync. 72 hours by default; 0 turns it off.
  • badge_max_installs integer (1 to 5) How many phones may hold one worker’s A7 QR ID at once, 1 to 5; 1 by default. Only a workspace owner may change it. Lowering it revokes, in the same request, each worker’s oldest A7 QR IDs beyond the new number (replaced); raising it revokes nothing.
  • former_members_see_own_runs boolean A former member may read, and only read, the runs they started and submitted themselves (GET …/me/runs?state=submitted, GET …/runs/{runId}, its items and its PDF); any other run is not_found for them. Off by default: those routes then answer forbidden with former_member. A member removed while it is on, who has such a run, is kept as a former member. Changed by a person (an owner or admin), not by an API key.

Responses

  • 200 application/json
    • tag_creation_admins_only boolean required Only workspace owners and admins may create a new Tag; everyone can still use existing ones.
    • offline_grace_hours integer (0 to 72) required How long after a checklist expired or an occurrence closed an answer or a submit the app captured in time is still accepted, flagged late_sync. 72 hours by default; 0 turns it off.
    • badge_max_installs integer (1 to 5) required How many phones may hold one worker’s A7 QR ID at once, 1 to 5; 1 by default. Only a workspace owner may change it. Lowering it revokes, in the same request, each worker’s oldest A7 QR IDs beyond the new number (replaced); raising it revokes nothing.
    • former_members_see_own_runs boolean required A former member may read, and only read, the runs they started and submitted themselves (GET …/me/runs?state=submitted, GET …/runs/{runId}, its items and its PDF); any other run is not_found for them. Off by default: those routes then answer forbidden with former_member. A member removed while it is on, who has such a run, is kept as a former member. Changed by a person (an owner or admin), not by an API key.

Errors come in the error format.

GET Usage against the plan’s limits

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

API key scope: workspace.view

What the workspace has used against each metered limit, for the portal. Monthly meters carry the period they apply to (YYYY-MM); running totals do not.

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes

Responses

  • 200 application/json
    • usage array of object required
      • key string required
      • used integer (at least 0) required
      • limit number (at least 0) required
      • period string required

Errors come in the error format.