Mark lead as winner
documentedMark the lead as a winner and record related data.
POST /api/v2/leads/{lead_id}/winnerLeadsno 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://{{subdomain}}.myphoner.com/api/v2/leads/{{$lead_id}}/winner" \
-X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Token {{MYPHONER_API_KEY}}" \
-d '{"lead": {"call_back_in": "{{$call_back_in}}", "scheduled_for": "{{$scheduled_for}}", "comment": "{{$comment}}", "category": "{{$category}}"}}'