Update a deal

PATCH {{baseUrl}}/deals/:id

Updates the properties of a deal.

Request Body

{"title"=>"<string>", "owner_id"=>"<integer>", "person_id"=>"<integer>", "org_id"=>"<integer>", "pipeline_id"=>"<integer>", "stage_id"=>"<integer>", "value"=>"<number>", "currency"=>"<string>", "add_time"=>"<string>", "update_time"=>"<string>", "stage_change_time"=>"<string>", "is_deleted"=>"<boolean>", "status"=>"<string>", "probability"=>"<number>", "lost_reason"=>"<string>", "visible_to"=>"<integer>", "close_time"=>"<string>", "won_time"=>"<string>", "lost_time"=>"<string>", "expected_close_date"=>"<date>", "label_ids"=>["<integer>", "<integer>"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;data&quot;:{&quot;id&quot;:1,&quot;title&quot;:&quot;Deal Title&quot;,&quot;creator_user_id&quot;:1,&quot;owner_id&quot;:1,&quot;value&quot;:200,&quot;person_id&quot;:1,&quot;org_id&quot;:1,&quot;stage_id&quot;:1,&quot;pipeline_id&quot;:1,&quot;currency&quot;:&quot;USD&quot;,&quot;add_time&quot;:&quot;2021-01-01T00:00:00Z&quot;,&quot;update_time&quot;:&quot;2021-01-01T00:00:00Z&quot;,&quot;stage_change_time&quot;:&quot;2021-01-01T00:00:00Z&quot;,&quot;status&quot;:&quot;open&quot;,&quot;is_deleted&quot;:false,&quot;probability&quot;:90,&quot;lost_reason&quot;:&quot;Lost Reason&quot;,&quot;visible_to&quot;:7,&quot;close_time&quot;:&quot;2021-01-01T00:00:00Z&quot;,&quot;won_time&quot;:&quot;2021-01-01T00:00:00Z&quot;,&quot;lost_time&quot;:&quot;2021-01-01T00:00:00Z&quot;,&quot;local_won_date&quot;:&quot;2021-01-01&quot;,&quot;local_lost_date&quot;:&quot;2021-01-01&quot;,&quot;local_close_date&quot;:&quot;2021-01-01&quot;,&quot;expected_close_date&quot;:&quot;2021-01-01&quot;,&quot;label_ids&quot;:[1,2,3],&quot;origin&quot;:&quot;ManuallyCreated&quot;,&quot;origin_id&quot;:null,&quot;channel&quot;:52,&quot;channel_id&quot;:&quot;Jun23 Billboards&quot;,&quot;acv&quot;:120,&quot;arr&quot;:120,&quot;mrr&quot;:10,&quot;custom_fields&quot;:{}}}