Headers
Body
application/json
The environment ID where the action class will be created
Name of the action class
Minimum length:
1Type of action class
Available options:
code, noCode Optional description of the action class
Required when type is 'code'. A unique identifier for the action. Not needed for 'noCode' type.
Minimum length:
1Configuration object required when type is 'noCode'. Defines the conditions for triggering the action. Not needed for 'code' type.
Example:
{
"elementSelector": {
"cssSelector": ".button-class",
"innerHtml": "Click me"
},
"type": "click",
"urlFilters": [
{
"rule": "contains",
"value": "https://www.google.com"
}
]
}Response
OK
The response is of type object.