Skip to main content
POST
Regenerate a contract

Authorizations

Authorization
string
header
required

OAuth 2.1 authorization code + PKCE (S256). Tokens are tenant-bound (company_id) and scoped. Discover endpoints via /.well-known/oauth-authorization-server.

Path Parameters

id
string
required

The id.

Body

application/json

Atomically update payment terms/requirements AND regenerate the contract PDF. At least one of paymentStructure or requirements must be provided.

paymentStructure
object

A payment structure. On PUT, the body is forwarded to the campaign update service verbatim (cpmRate >= 0 normalization + crosspostMaturityDays validation are reused from the canonical service). Permissive.

requirements
object

Contract / campaign delivery requirements. Passed through to the contract un-strictly (the route does not strictly validate the body); the listed fields mirror the MCP programRequirementsSchema cross-check (lib/mcp/tools/structure-schemas.ts:94).

sendNotification
boolean
default:true

Send the creator review-link notification (default true).

Response

Result of the atomic payment-terms update + PDF regeneration.

data
object
required