Skip to main content
PUT
Updates an existing contract in your COR instance using its external ID. Performs the same validations as creation, including date validation in YYYY-MM-DD format, and updates only the provided fields. The currency ISO sent in the request must have a previously configured currency exchange in COR. If no exchange rate exists from the contract currency to the company base currency, contract update is rejected with status: 400, name: CORCustomError, and code: CTR006.

Path Parameters

string
required
External contract ID that was used when creating the contract

Request Body Requirements

object
required
string
Updated contract name
string
Updated contract type
string
Updated contract status
string
Updated start date in YYYY-MM-DD format
string
Updated end date in YYYY-MM-DD format
number
Updated contract value
string
Updated description

Known Errors

  • ZC001 — Entity is not associated (contract with the specified external ID not found)
  • ContractNotFoundError — No contract found with the specified external ID
  • ValidationError — Missing required metadata.source field
  • ValidationErrorInvalid start date format: <value> when start_date is not a valid YYYY-MM-DD date
  • ValidationErrorInvalid end date format: <value> when end_date is not a valid YYYY-MM-DD date
  • CTR006 (CORCustomError, 400) — Cannot save contract. Exchange rate not found for ${currency} to ${baseCurrency}. Please sync exchange rates first.