Update opportunity
documentedUpdate an existing opportunity.
PUT /api/v2/opportunities/{opportunityId}Opportunitiesno 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.capsulecrm.com/api/v2/opportunities/{{$opportunityId}}" \
-X PUT \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"opportunity": {"name": "{{$title}}", "description": "{{$description}}", "owner": {"id": {{$owner_id}}}, "team": {"id": {{$team_id}}}, "tags": [ {"id": {{$tag_id}} , "_delete": false} ], "fields": [ {"id": {{$field_id}}, "value": "{{$field_value}}"}, {"definition": {"id": {{$field_definition_id}}}, "value": "{{$field_value2}}"} ] }}'