Skip to main content
PATCH
Update pact policies

Headers

X-API-Key
string | null

Path Parameters

pact_id
string<uuid>
required

The UUID of the active pact whose policies to replace, as returned by the submit or list endpoints.

Body

application/json

Request body for PATCH /pacts/{pact_id}/policies.

Full replacement of the pact's delegation-scoped policies. Old policies are deleted and new ones are created atomically.

policies
InlinePolicyCreate · object[]
required

New policy list. Replaces all existing delegation policies.

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.