Skip to main content
PATCH
Update completion conditions

Headers

X-API-Key
string | null

Path Parameters

pact_id
string<uuid>
required

The UUID of the active pact whose completion conditions to update, as returned by the submit or list endpoints.

Body

application/json

Request body for PATCH /pacts/{pact_id}/completion-conditions.

Only TX_COUNT, AMOUNT_SPENT, and AMOUNT_SPENT_USD conditions may be supplied. Thresholds can only be increased relative to the current value to avoid accidentally completing an active pact.

completion_conditions
CompletionCondition · object[]
required

New completion conditions (only tx_count / amount_spent / amount_spent_usd allowed).

Minimum array length: 1

Response

Successful Response

result
PactPublicRead · object
required

Public pact detail response without delegation internals.

success
boolean
default:true
suggestion
string
default:""
message
string
default:""
meta
PaginationMeta · object | null

Pagination metadata for list responses.

Supports both legacy offset-based and cursor-based pagination. Cursor fields (has_more, after, before) are populated for cursor-paginated endpoints. Legacy fields (offset, limit) are populated when the caller uses the deprecated offset parameter.