Skip to main content
POST
Resolve a preserved GitOps path

Authorizations

Authorization
string
header
required

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

Headers

x-ankra-organisation-id
string

PAT organisation override.

Path Parameters

cluster_id
string<uuid>
required

Body

application/json
path
string
required

Full repository path of the preserved file, as the listing names it.

resolution
enum<string>
required

git imports Git's content into the platform; cluster writes Ankra's version into Git; none withdraws a decision that has not run yet, so the file awaits one again.

Available options:
git,
cluster,
none
head_content_hash
string
required

The head_content_hash the listing returned. A file that changed in Git since is refused with 409. Not compared for none.

render_content_hash
string
required

The render_content_hash the listing returned. A file whose Ankra version changed since is refused with 409. Not compared for none.

Response

The decision was recorded, or withdrawn for none.

path
string
required
resolution
enum<string>
required
Available options:
git,
cluster,
none
sync_triggered
boolean
required

Whether a sync was nudged to execute the decision now; the next periodic sync executes it otherwise. Always false for none, which has nothing to execute.

message
string
required