v1
latestOpenAPI 3.0.02026-07-24161215397.4 KBContracts
Update contract custom properties
Update custom properties on a contract. Only the properties field is accepted. Provided keys are added or updated; keys not included in the request are preserved.
Required scopes: flex.community.contracts.update
put/api/v2/organizations/{orgSlug}/contracts/{contractId}
Path parameters
contractIdstring required
contract id
orgSlugstring required
organization slug
Request body
Example request
{
"properties": {
"integrationRef": "deal-123",
"hubspotDealStage": "closed_won"
}
}Response
Example response
{
"notice": {
"months": 3
},
"properties": {
"customProperty1": "value1",
"customProperty2": "value2"
},
"_id": "6080186f490fcf6e0547ec57",
"number": "CON-3",
"company": "6080186f490fcf6e0547ec59",
"member": "6080186f490fcf6e0547ec57",
"location": "6080186f490fcf6e0547ec58",
"deal": {
"dealId": "deal-123",
"dealName": "Membership deal",
"crmLink": "https://crm.example.com/deals/deal-123"
},
"documentType": "membershipagreement",
"startDate": "2024-08-21T00:00:00.000Z",
"endDate": "2025-08-20T00:00:00.000Z",
"plans": [],
"oneOffPlans": [],
"resources": [],
"legalDocuments": [
"6080186f490fcf6e0547ec85",
"6080186f490fcf6e0547ec59"
],
"addendum": "<p> This is an example addendum to the contract. </p>",
"isRolling": true,
"signDate": "2024-08-21T16:00:00.000Z",
"signedBy": {
"_id": "6080186f490fcf6e0547ec50",
"displayName": "John Doe"
},
"activationErrors": [],
"termination": {
"date": "2024-08-21T00:00:00.000Z",
"reasonKey": "Example Reason Key",
"comments": "Example Comment"
},
"total": 150.5,
"baseTotal": 145.62,
"plansTotal": 120.81,
"oneOffsTotal": 15.522,
"resourcesTotal": 15.99,
"percentagePriceIncrease": 10,
"previousDepositHeld": 100,
"renewedContract": "6080186f490fcf6e0547ec57",
"renewalContract": "6080186f490fcf6e0547ec58",
"createdAt": "2024-08-21T16:00:00.000Z",
"createdBy": "6080186f490fcf6e0547ec50",
"modifiedAt": "2024-08-21T16:00:00.000Z",
"modifiedBy": "6080186f490fcf6e0547ec50"
}