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
- 200
- 400
- 401
- 403
- 404
- 406
- 500
Successful response.
Invalid parameters, form validation or save failure.
Missing or invalid API authentication.
Access denied by ACL.
Route, record or task not found.
Unsupported Accept header.
Model or server error.