Custom fields
Delete Custom Field
Soft-deletes a custom field (sets isActive: false).
DELETE /api/custom-fields/:id
Requires the admin role (or a global admin). Editors and read-only users receive 403.
Example (cURL)
curl -X DELETE "$BASE_URL/api/custom-fields/1" \
-H "Authorization: Bearer $TOKEN"Common errors
403 Forbiddenwhen your role is notadmin404 Not Foundwhen the field does not exist in your organization
Response
{ "success": true, "message": "Custom field deleted successfully" }