Update an existing deal in Pipedrive CRM
Updates an existing deal in Pipedrive with new information.
type: "io.kestra.plugin.pipedrive.deals.Update"Examples
Update deal value and stage
id: pipedrive_update_deal
namespace: company.team
tasks:
- id: update_deal
type: io.kestra.plugin.pipedrive.deals.Update
apiToken: "{{ secret('PIPEDRIVE_API_TOKEN') }}"
dealId: 123
value: 75000
stageId: 2
Mark deal as won
id: pipedrive_win_deal
namespace: company.team
tasks:
- id: win_deal
type: io.kestra.plugin.pipedrive.deals.Update
apiToken: "{{ secret('PIPEDRIVE_API_TOKEN') }}"
dealId: 123
status: "won"
Properties
apiToken *Requiredstring
Pipedrive API token
Your Pipedrive API token for authentication.
dealId *Requiredintegerstring
Deal ID
ID of the deal to update
apiUrl string
https://api.pipedrive.com/api/v2Pipedrive API URL
Base URL for the Pipedrive API. Override for testing purposes.
customFields object
Custom fields
Map of custom field keys and values to update
expectedCloseDate string
Expected close date
New expected close date in YYYY-MM-DD format
lostReason string
Lost reason
Reason for losing the deal (if status is 'lost')
probability numberstring
Probability
New deal success probability percentage (0-100)
stageId integerstring
Stage ID
New stage ID for the deal
status string
Status
New status for the deal. Valid values: 'open', 'won', 'lost'
title string
Deal title
New title for the deal
value numberstring
Deal value
New value for the deal
Outputs
dealId integer
Deal ID
updateTime string
Last update time
Timestamp when the deal was last updated