Skip to main content
GET
Review a pipeline definition's authority before approval

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

Response

The definition's reviewed authority.

definition_id
string<uuid>
required
protected_hash
string
required

Identity of the definition's protected sections; empty for a definition recorded before they were assessed.

approved_hash
string
required

protected_hash once an administrator approved it, otherwise empty.

approved_at
string<date-time> | null
required
approved_by
string
required

Ankra user id of the approver, empty when unapproved.

spec_hash
string
required

Identity of the reviewed content. Definitions are stored by content, so it never changes for an id.

status
enum<string>
required

Whether POST /org/pipelines/definitions/{id}/approve should be offered now. Evidence read at one moment: the approve route re-checks inside its own transaction.

Available options:
approvable,
not_current,
already_approved,
nothing_to_approve,
not_assessed,
unreadable
current_definition_id
string<uuid> | null
required

The definition a fresh push to the default branch would take its authority from.

repository
object
required
head
null | object
required

The newest default-branch run that executed the definition; null when none did.

baseline
null | object
required

The approved authority runs fall back to while the definition is unapproved; null when nothing else was ever approved.

entries
object[]
required