Skip to content

Delete (inactivate) records

Request

🔐 Required role: RECD_C

📖 Data dictionary: Records and custom record types

Delete (inactivate) records

Soft-deletes records by marking them as inactive. A record that is not found is reported as failed inside the 200 response; the request itself does not answer 404. The systemRef field is required for all records in DELETE requests.

Partial Success Behavior:

  • Each record is processed independently
  • Successful deletions are persisted even if others fail
  • Records not found will have status FAILED with error code RECORD_NOT_FOUND
  • Check summary.failed and individual records[].status for failures

Limits: Maximum 100 records per request.

Business Applications:

  • Bulk inactivation
  • Record cleanup
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
Bodyapplication/jsonrequired
recordsArray of objectsrequired

Records

curl -i -X DELETE \
  https://api.sandbox.aiwyn.app/api/v1/records \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
  -H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "records": [
      {
        "type": "Client",
        "systemRef": {
          "system": "CCH",
          "reference": "C-12345"
        }
      },
      {
        "type": "Client",
        "systemRef": {
          "system": "aiwyn",
          "reference": "67890"
        }
      }
    ]
  }'

Responses

Records deleted successfully

Bodyapplication/json
dataobject
errorobject or null
metaobject
Response
{ "data": { "summary": {}, "records": [ … ] }, "error": {}, "meta": { "success": true, "message": "string", "timestamp": "2019-08-24T14:15:22Z", "version": "string" } }