Move deal to milestone
Moves a deal to another milestone of its track.
POST https://cotlet.dev/api/v1/agile-crm/deals/{deal_id}/move
write
Changes the milestone and returns the deal with its new milestone. A milestone name the track does not have fails and the deal stays where it is. Moving a deal reaches no customer and is undone with one more call, so it does not wait for your OK.
Parameters
| Name | Type | Description |
|---|---|---|
| deal_id string required | string | Deal id from list_deals |
| milestone string required | string | Milestone name as the deal's track shows it |
Request
curl -X POST https://cotlet.dev/api/v1/agile-crm/deals/deal_8c41d2/move \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"milestone":"milestone"}' result = client.call("agile-crm", "move_deal", {"deal_id":"deal_8c41d2","milestone":"milestone"}) const result = await cotlet.call('agile-crm', 'move_deal', {"deal_id":"deal_8c41d2","milestone":"milestone"}); cotlet call agile-crm move_deal --data '{"deal_id":"deal_8c41d2","milestone":"milestone"}' Example response
{
"deal_id": "5655120934133760",
"name": "Ortega Print rollout",
"previous_milestone": "Proposal",
"milestone": "Negotiation",
"value": 9500
}