CrmDeal

Update Deal

PATCH
Update a deal

Path parameters

idstringRequired

Headers

x-revert-api-tokenstringRequired
Your official API key for accessing revert apis.
x-revert-t-idstringRequired
The unique customer id used when the customer linked their account.
x-api-versionstringOptional
Optional Revert API version you're using. If missing we default to the latest version of the API.

Request

This endpoint expects an object.
additional
anyRequired

Any fields that are not unified yet/non-unifiable come inside this json object.

amount
integerRequired
The deal amount mentioned in the CRM for this deal.
expectedCloseDate
anyRequired
Expected close date for this deal. (not supported by pipedrive search api)
isWon
booleanRequired

Is true if the deal is closed (won).

name
stringRequired
The name of the deal in a CRM.
probability
integerRequired
Probability of the deal getting closed, a decimal number between 0 to 1 (inclusive).
stage
stringRequired
Deal stage in the CRM.
associations
objectOptional
priority
stringOptional
The priority attached to this deal. (not supported by pipedrive)

Response

This endpoint returns an object
status
enum
Allowed values: okerror
message
string
result
any
PATCH
$curl -X PATCH https://api.revert.dev/crm/deals/%3Aid \
> -H "x-revert-api-token: string" \
> -H "x-revert-t-id: string" \
> -H "x-api-version: string" \
> -H "Content-Type: application/json" \
> -d '{
> "additional": {},
> "amount": 0,
> "expectedCloseDate": {},
> "isWon": true,
> "name": "string",
> "probability": 0,
> "stage": "string"
>}'
Response
1{
2 "status": "ok",
3 "message": "string",
4 "result": {}
5}