Skip to content

Records

Create, update, and manage entity records across standard and custom record types.

The Records API provides:

  • Record operations: Create, update, and delete records for any entity type
  • Schema discovery: Query available entity types and their field definitions
  • Custom record types: Define and manage custom record type schemas

Create or update records (upsert)

Request

🔐 Required role: RECD_C

📖 Data dictionary: Records and custom record types

Create or update records (upsert)

Records are created if they don't exist, or updated if matched by systemRef.

Partial Success Behavior:

  • Each record is processed independently
  • Successful records are persisted even if others fail
  • Check summary.failed and individual records[].status for failures
  • Failed records include error details in records[].error

Read-only and hidden custom fields: values sent for them are ignored and the stored values are kept.

Limits: Maximum 100 records per request.

Business Applications:

  • Bulk record import
  • Entity synchronization
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
Bodyapplication/jsonrequired
recordsArray of objectsrequired

Records

curl -i -X POST \
  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"
        },
        "attributes": {
          "name": "Acme Corporation",
          "email": "contact@acme.com"
        }
      }
    ]
  }'

Responses

Records processed 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" } }