Restore a policy entry version
POST /api/policy-entries/{entryId}/versions/{versionId}/restore
Restores a previous version of a policy entry by publishing its content as a new version. History is preserved: the prior published version is superseded rather than overwritten. When the restored content already matches the current content, no new version is created.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The unique identifier of the policy entry.
The unique identifier of the version to restore.
Responses
Section titled “ Responses ”The version was restored and a new published version was recorded, or the restore was a no-op.
The result of restoring a version. A restore creates a new published version rather than mutating history. When the restored content matches the current content, no new version is created.
object
Identifier of the newly published version, or of the existing current version when the restore was a no-op.
Example
v9a8b7c6-5432-10fe-dcba-0987654321abWhether a new version was created. False when the restored content already matched the current content.
Example
trueThe version number that was restored.
Example
2No policy entry or version exists with the given ID in the authenticated tenant.
Standard error response returned by all endpoints on failure.
object
A human-readable error message describing what went wrong.
Example
Conversation not found