Add or Update Lead Stage
Add or Update Lead Stage
POST
[PlatformAddress]/api/1.0/crm?action=addOrUpdateLeadStage
Path Parameters
id
integer
The unique id of the lead stage (Leave empty if adding a new lead stage)
name
string
The name of the crm lead stage (Required when the ID parameter is missing)
colour
string
The colour for the stage will help to identify and group leads/opportunities
applyTo
strings
Whether lead stage applies to lead or opportunity (Required when the ID parameter is missing)
applyTo
Equal to one of the following values
1 = Opportunity
2 = Lead
Example Request
Add Lead Stage
Update Lead Stage
Returns
success
Whether or not the lead stage was added
id
The unique id of the lead stage
Throws
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
Updates the values for that lead stage (after you have provided an id in the parameters), or
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 updated