addCrmClientStatusGroup
Creates a new CRM client status group or updates an existing one if group_id is provided. Status groups are used to visually organize client statuses in the panel sidebar.
Input parameters
| group_id | int | Group ID. Provide to update an existing group. Leave empty or omit when creating a new group. |
| name | varchar(15) | Group name. |
Output data
The method returns the data in JSON format.
| status | varchar(30) | SUCCESS - request executed correctly ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code |
| group_id | int | ID of the created or updated status group. |
Sample
Input data:Output data:
A sample request in PHP: