Skip to main content
PATCH
Update contract

Authorizations

Authorization
string
header
required

API key from Settings → Security → API Keys. Pass as Authorization: Bearer YOUR_API_KEY.

Headers

Idempotency-Key
string
required

Unique key for safe retries on write requests (required, max 64 characters).

Maximum string length: 64

Path Parameters

id
string
required

Contract ID

Body

application/json
name
string
Required string length: 1 - 255
service
string | null
costEntityName
string | null
startDate
string
Pattern: ^\d{4}-\d{2}-\d{2}$
endDate
string
Pattern: ^\d{4}-\d{2}-\d{2}$
yearlySpend
object
yearlyUsage
object | null
commitmentPeriod
enum<string>
default:ANNUALLY
Available options:
MONTHLY,
QUARTERLY,
ANNUALLY
discountPercentage
number | null
default:25
Required range: 0 <= x <= 100
marketplacePercentage
number | null
default:0
Required range: 0 <= x <= 100
isCrossService
boolean
default:false
isUsageBased
boolean
default:false
costUnit
string | null
selectedAwsServices
string[]
selectedCostEntities
string[]
selectedBillingEntities
string[]
selectedMarketplaceEntities
string[]

Response

Update contract

data
object
required

JSON object