Skip to main content
POST
Unarchive a rego policy

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

identifier
string
required

The policy's identifier, such as pr-approved, in any case

org
string
required

Response

Successful Response

identifier
string
required

Immutable identifier, as first published

name
string
required

Display name

created_at
number
required

Unix timestamp the policy was created at

created_by
string
required

Display name of the user who created it

updated_at
number
required

Unix timestamp of the last publish or metadata change

archived
boolean
required

Whether the policy is archived: left out of the policy list by default, while an evaluation by its identifier still runs

newest_version
NewestVersionResponse · object
required

The newest version whatever its status, which is not necessarily the one an evaluation runs

description
string | null

Description, if it has one

current_version
CurrentVersionResponse · object | null

The highest-numbered valid version, with its params schema; absent until a version has been validated. An evaluation runs this version