Skip to main content

Delete Event

Soft-delete an event definition.

Endpoint

DELETE /events/{id}

Path Parameters

ParameterTypeDescription
idstringThe event ID
Events in use cannot be deleted

If any active automation flow is triggered by this event, the request fails with 409 conflict. Remove the trigger from those flows first, then delete the event.


Response

{
"message": "Event deleted"
}

Examples

curl -X DELETE "https://api.arsel.sa/v1/events/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a" \
-H "Authorization: Bearer be_your_api_key"

Error Responses

{
"status_code": 409,
"name": "conflict",
"message": "Event \"order.completed\" is used by 2 active flow(s). Remove the trigger from those flows first."
}