getAutomaticActionTriggersDataFormat
Returns data format specification for automatic action trigger conditions. Use this to understand what data should be provided in trigger_condition field when creating/updating automatic actions.
Input parameters
Output data:
A sample request in PHP:
| type | text | Type of automatic action |
| trigger_types | array | Array of trigger type IDs to get data format for |
| | - | int | Trigger type ID |
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 |
| triggers | array | Array of trigger data formats |
| | - trigger_type | int | Trigger type |
| | - trigger_name | text | Trigger name |
| | - data_format | array | Data format specification |
| | - examples | array | Example data values |
| | - required_conditions | array | Required condition types for this trigger |
Sample
Input data:Output data:
A sample request in PHP: