Skip to main content

Keep Article Version

PATCH 

/v1/content/articles/:id/contenthistory/keep

Toggle "keep forever" of the stored version of an Article with a specific version ID. ID of the version (content history record), not of the Article.

GET uses the owner ID and route defaults for type_alias and type_id. PATCH to /keep toggles keep_forever; it does not accept a desired state such as {"keep":true}. Repeating it can undo the first action. There is no general history creation form or restore endpoint here. Use stored version data as editing source only when it matches the owner and intended version. The base edit check requires core.manage and record core.edit, or core.edit.own with a matching owner; component overrides take precedence. Omitted SERVER_UTC/USER_UTC calendar values are restored from the stored UTC values after validation, avoiding a second timezone conversion.

Request​

Responses​

Successful response.