Links

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

{
"name": "Referal Lead",
"appliesTo": 1,
}

Update Lead Stage

{
"id": 755,
"colour": "#7ee546"
}

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. 1.
    Updates the values for that lead stage (after you have provided an id in the parameters), or
  2. 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.