Delete Action
Remove an action from an alias.
DELETE
/domains/:domain_name/aliases/:alias_id/actions/:action_id
Example:
/domains/example.com/aliases/alias_01k3tgwp77f5jak53bw6ghd3ae/actions/action_01k3tgwp78fjba2yw6tp1jb1kj
The alias must have at least one action. If you try to remove the last action, the API returns 422 with error "must have at least 1 action". On success the response is 204 No Content with an empty body.
Path Parameters
domain_name
string
required
The domain name that owns the alias.
alias_id
string
required
The ID of the alias that contains the action.
action_id
string
required
The ID of the action to remove.
Example
curl -X DELETE https://api.mailcast.io/v1/domains/:domain_name/aliases/:alias_id/actions/:action_id \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Response
204