Update an existing deal in the workspace.
API key for authentication
The ID of the group the deals belong to. Can be retrieved from the List groups endpoint.
40The name of a deal custom field that can be retrieved from the List group custom fields endpoint.
500The ID of the deal to update.
40The name of the deal.
1000"Project Alpha"
The companies associated with the deal.
20[
{
"id": "com_92346499-30bf-4278-ae8e-4aa3ae2ace2c"
}
]The people associated with the deal.
20[
{
"id": "per_5fa60242-0756-4e31-8cca-30c2c5ff1ac2"
}
]The custom field values associated with the deal. The format is the following:
{
"<customFieldName>": "<customFieldValue>"
}The format of the custom field value depends on the type of the custom field:
textField: string, eg: "Foo"numericField: number or numeric string, eg: 42 or "42"dateField: ISO 8601 string (YYYY-MM-DD), eg: "2021-01-01"singleSelect: string (option label), eg: "Active"multipleSelect: array of strings (option labels), eg: ["B2B", "B2C"]userField: array of objects with either id (workspace user id) or email (workspace user email) property, eg: [{"id": "usr_a23373bb-5296-4c59-b2e8-8f121707d562"}, {"email": "[email protected]"}]Passing a null value or an empty array will unset the custom field value.
{
"Status": "Active",
"Deal value": "42000",
"Close date": "2021-01-01",
"Assignee": [
{
"id": "usr_c3606e3b-0a92-4849-90e5-88a8d3f388d6"
},
{ "email": "[email protected]" }
]
}The updated deal in the workspace.
A deal in the workspace.
{
"id": "obj_183ed5cc-3182-45de-84d1-d520f2604810",
"name": "Project Alpha",
"companies": [
{
"id": "com_92346499-30bf-4278-ae8e-4aa3ae2ace2c",
"name": "Tech Corp"
}
],
"people": [
{
"id": "per_5fa60242-0756-4e31-8cca-30c2c5ff1ac2",
"fullName": "John Doe"
}
],
"createdAt": "2021-01-01T00:00:00.000Z",
"createdBy": {
"id": "usr_bc984b3f-0386-434d-82d7-a91eb6badd71",
"fullName": "John Doe",
"email": "[email protected]"
},
"customFieldValues": {
"Status": "Active",
"Deal value": "42000",
"Close date": "2021-01-01",
"Assignee": [
{
"id": "usr_c3606e3b-0a92-4849-90e5-88a8d3f388d6",
"fullName": "Jane Doe",
"email": "[email protected]"
}
]
}
}["This field is deprecated"]