deleteContractEvents
deleteContractEvents
Overview
Soft-deletes a Contract Event, replicating the legacy Contract_Event::deleteEvent() behaviour. The underlying row is never physically removed — status_flag is set to deleted and the record is excluded from GET /fm/contract/events (which already filters to status_flag = 'active').
This method requires the ContractEvents:Delete permission to be associated with your role.
Permissions
The permission for this api is stored in [gb_api_permissions]permission as ContractEvents:Delete.
Only roles with a stored link to this permission in [gb_role_api_permissions] can run this api.
HTTP Method
Use the HTTP Method DELETE for consuming this web service.
URL Examples
https://api.demo.catch-e.com/fm/contract/events/{contract_event_id}
https://api.{{environment}}.catch-e.com/fm/contract/events/{contract_event_id} https://api.test.catch-e.com/fm/contract/events/{contract_event_id} Path Parameters
Response Details
Success
204 No Content
No response body is returned.
Cascading effects on success:
Any attachment linked to the event (
gb_attachments) is soft-deleted in the same transaction. A missing attachment is skipped without error.For mail-class events (
FBTA,FBTD,RN,COC*), anygb_mailrows inpendingorfailedstates are soft-deleted, one audited update per composite key. Sent mail is never modified.Every changed field is written to
gb_audit, honouring theAudit-User-Idoverride header.The whole operation is atomic — any failure rolls back changes to the event, attachments, mail, and audit records together.
Error Response Details
{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Locked", "status": 423, "detail": "Locked" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Forbidden", "status": 403, "detail": "Forbidden" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unauthorized", "status": 401, "detail": "Unauthorized" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Not Acceptable", "status": 406, "detail": "Not Acceptable" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unsupported Media Type", "status": 415, "detail": "Not Acceptable" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "string", "status": 599, "detail": "string" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "string", "status": 599, "detail": "string" }