API reference
/- Update records (fails if not found)
Create or update records (upsert)
Delete (inactivate) records
List available record types
Get field schema for a record type
List all custom record types
Create a new custom record type
Get a custom record type by name
Update a custom record type
Deactivate a custom record type
Update records (fails if...
🔐 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
FAILEDwith error codeRECORD_NOT_FOUND - Check
summary.failedand individualrecords[].statusfor 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
- Sandbox (requires Cloudflare Access headers)https://api.sandbox.aiwyn.app/api/v1/records
- Staging (requires Cloudflare Access headers)https://api.staging.aiwyn.app/api/v1/records
- Production (your live firm data; no Cloudflare Access headers)https://api.aiwyn.ai/api/v1/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"
}
}
]
}'Response
{ "data": { "summary": {}, "records": [ … ] }, "error": {}, "meta": { "success": true, "message": "string", "timestamp": "2019-08-24T14:15:22Z", "version": "string" } }