Skip to main content
PUT
https://integrations.projectcor.com
/
v2
/
integrations
/
contracts
/
{id}
curl --location --request PUT 'https://integrations.projectcor.com/v2/integrations/contracts/SF-CONTRACT-12345' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "metadata": {
    "source": "SALESFORCE"
  },
  "status": "completed",
  "end_date": "2025-06-30",
  "value": 60000
}'
{
  "id": 30001,
  "name": "Annual Service Agreement",
  "client_id": 25855,
  "type": "retainer",
  "status": "completed",
  "start_date": "2025-01-01",
  "end_date": "2025-06-30",
  "value": 60000,
  "company_id": 1234,
  "created_at": "2025-01-10T14:30:00Z",
  "updated_at": "2025-01-15T10:00:00Z"
}
Updates an existing contract in your COR instance using its external ID. Performs the same validations as creation and updates only the provided fields.

Path Parameters

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

Request Body Requirements

metadata
object
required
name
string
Updated contract name
type
string
Updated contract type
status
string
Updated contract status
start_date
string
Updated start date in YYYY-MM-DD format
end_date
string
Updated end date in YYYY-MM-DD format
value
number
Updated contract value
description
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
  • InvalidDateRangeError — The start_date is after the end_date
curl --location --request PUT 'https://integrations.projectcor.com/v2/integrations/contracts/SF-CONTRACT-12345' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "metadata": {
    "source": "SALESFORCE"
  },
  "status": "completed",
  "end_date": "2025-06-30",
  "value": 60000
}'
{
  "id": 30001,
  "name": "Annual Service Agreement",
  "client_id": 25855,
  "type": "retainer",
  "status": "completed",
  "start_date": "2025-01-01",
  "end_date": "2025-06-30",
  "value": 60000,
  "company_id": 1234,
  "created_at": "2025-01-10T14:30:00Z",
  "updated_at": "2025-01-15T10:00:00Z"
}