Skip to main content
POST
Resolve a GitOps conflict

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
resource_key
string
required

The resource_key of an open conflict, as the list route returns it.

resolution
enum<string> | null

git keeps the repository's version; cluster keeps the platform's version and pushes it to the repository. Omitted or null clears the conflict undecided.

Available options:
git,
cluster

Response

The resolution was recorded (or, without resolution, the conflicts were cleared).

cleared_count
integer
required

How many conflicts the resolution was recorded on (or, without a resolution, cleared).

sync_triggered
boolean
required

Whether the sync that applies the resolution was triggered. When false, the next periodic reconcile applies it.

message
string
required