Update deal
documentedUpdate a deal by ID.
PUT /v2/deals/{deal_id}Dealsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.moskitcrm.com/v2/deals/{{$deal_id}}" \
-X PUT \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "apikey: {{MOSKITCRM_API_KEY}}" \
-d "{\"name\": \"{{$title}}\", \"value\": \"{{$value}}\", \"currency\": \"{{$currency}}\", \"owner_id\": {{$owner_id}}, \"hot\": {{$hot}}, \"stage_id\": {{$stage_id}}, \"last_stage_change_at\": \"{{$last_stage_change_at}}\", \"added_at\": \"{{$added_at}}\", \"source_id\": {{$source_id}}, \"loss_reason_id\": {{$loss_reason_id}}, \"unqualified_reason_id\": {{$unqualified_reason_id}}, \"contact_id\": {{$contact_id}}, \"estimated_close_date\": \"{{$estimated_close_date}}\", \"customized_win_likelihood\": {{$customized_win_likelihood}}, \"tags\": [\"{{$tag1}}\", \"{{$tag2}}\"], \"custom_fields\": {\"website\": \"{{$website}}\"} }"