Skip to main content

Delete Custom Field

Delete a custom field.

Request

DELETE /custom-fields/{uuid}

Path Parameters

ParameterTypeDescription
uuidstringField's UUID

Example Request

curl -X DELETE "https://email.easy.tools/api/v1/custom-fields/field-uuid-123" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Response

Success Response (204 No Content)

No response body.

Error Responses

Not Found Error (404)

{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Custom field not found"
}
}

Referenced By Active Automation Error (409 Conflict)

Returned when the custom field is used as a trigger condition by one or more active automations. Pause or edit those automations before deleting the field.

{
"error": {
"code": "CUSTOM_FIELD_REFERENCED_BY_ACTIVE_AUTOMATION",
"message": "This custom field is used as a trigger condition by 2 active automation(s). Pause or edit them before deleting."
}
}