Add or Update Lead Stage
post
[PlatformAddress]/api/1.0/crm?action=addOrUpdateLeadStage
Add or Update Lead Stage

applyTo

Equal to one of the following values
    1 = Opportunity
    2 = Lead

Example Request

Add Lead Stage

1
{
2
"name": "Referal Lead",
3
"appliesTo": 1,
4
}
Copied!

Update Lead Stage

1
{
2
"id": 755,
3
"colour": "#7ee546"
4
}
Copied!

Returns

Property
Description
success
Whether or not the lead stage was added
id
The unique id of the lead stage

Throws

Code
Description
Specific Code: 24320
The crm lead stage does not exist
Specific Code: 24321
The crm lead stage is not editable
Specific Code: 24322
An error has occurred
Specific Code: 24323
The request contains invalid data
Specific Code: 24324
The request contains invalid data
This call takes values for a lead stage, and either
    1.
    Updates the values for that lead stage (after you have provided an id in the parameters), or
    2.
    Adds the lead stage to the system (if the id parameter is missing) 1. The result of this call will contain the status of the result (either
    true or false) and the lead stage identifier of the updated or newly
    created lead stage.
Last modified 8d ago