Skip to content

Update records (fails if not found)

Request

🔐 Required role: RECD_C

📖 Data dictionary: Records and custom record types

Update existing records only

Only updates existing records. A record whose systemRef 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 PUT requests.

Partial Success Behavior:

  • Each record is processed independently
  • Successful records 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

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:

  • Strict update workflows
  • Guaranteed existence updates
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
Bodyapplication/jsonrequired
recordsArray of objectsrequired

Records

curl -i -X PUT \
  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": {
          "email": "updated@acme.com",
          "phone": "555-1234"
        }
      }
    ]
  }'

Responses

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