API Method: /api/action/update
Update a call-to-action item.
Parameters
Parameter | Description |
---|---|
action_id (required) | The ID of the call to action to be updated. |
name (required) | The name of the call-to-action. |
start_time (required) | The relative start time of the CTA. This can be `before`, `after` or any decimal number between 0 and 1, both included. |
end_time (required) | The relative end time of the CTA. This can be `before`, `after` or any decimal number between 0 and 1, both included. |
Further to this list, every type of of action has a list of required parameters.
Permission level
The minimum required permission level is:
write
Example XML Response
<response status="ok" permission_level="write"
message="The action was updated" cached="0"/>
Example JSON Response
{
"status": "ok",
"message":"The action was updated",
"permission_level":"write",
"cached":"0",
"action":{},
"p": "1",
"size": "1",
"site": { ... },
"endpoint": "/api/action/update"
}