Policy Versions

Update a lookup table in the draft

Changed on

Replace a lookup table's definition. Edits the table's draft version, or starts the next version and pins it in the draft when the pinned version is published. A table the draft doesn't pin is pinned again, starting from its newest version.

put/api/policy_version/draft/lookup_tables/{heron_id}

Request

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

Path parameters

heron_idstring required

Query parameters

user_idinteger

Account to act on. Honoured only for admins.

Request body

change_descriptionstring nullable
definitionobject required

The whole table, replacing the current one: key (the attribute the table is looked up by), columns (may be empty for a plain list), rows (each with keys and values) and unlisted (behaviour and values for a key not in the table)

Response

OK

Changes