Skip to main content
PATCH
JavaScript

Authorizations

X-API-KEY
string
header
required

Server API Key

Headers

X-ACCOUNT-ID
string

Account ID — optional when authenticating with a user JWT (Bearer token); falls back to the user's first membership. Ignored for API-key auth.

X-ENVIRONMENT-ID
string

Environment ID — required when authenticating with a user JWT (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the key).

Path Parameters

id
string
required

The unique identifier of the entity

Required string length: 1 - 255

Body

application/json

Input for updating a contract and optionally re-linking its subscriptions.

name
string | null

New contract name

Maximum string length: 255
poNumber
string | null

New purchase-order number

Maximum string length: 255
activationStartDate
string<date-time>

New activation start date

activationEndDate
string<date-time>

New activation end date

subscriptionIds
string[]

When provided, replaces the set of subscriptions linked to the contract (subscription ref IDs)

When provided, replaces the set of subscriptions linked to the contract (subscription ref IDs)

Required string length: 1 - 255
Pattern: ^[a-zA-Z0-9][a-zA-Z0-9_|.-]*$
setupBilling
boolean

Enable billing on a provision-access-only contract by creating a billing contract in the connected billing provider. Only takes effect when true and the contract has no billing yet; omitting it leaves billing unchanged. Billing is never removed by an update.

Response

The updated contract.

Response object

data
Contract · object
required

A billing contract as reported by the connected billing provider.