Policy Versions

Archive the draft policy version

Changed on

Archive the open draft so a new one can be created. Nothing goes live, and the archived draft keeps its edits and lookup tables, so it can be restored with the rollback route. An automated sync that gets draft_exists from creating a draft archives the open draft this way, then creates its own, so the sync never publishes edits from the draft it archived. Edits made in the sync's new draft before it publishes do go live with it.

post/api/policy_version/draft/archive

Request

  • Base URL
    https://app.herondata.io
  • URL
    https://app.herondata.io/api/policy_version/draft/archive
  • Auth
    API key in header x-api-key

Query parameters

user_idinteger

Account to act on. Honoured only for admins.

Response

OK

archived_versioninteger

Changes