API reference
/- Deactivate a custom record type
Create or update records (upsert)
Update records (fails if not found)
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 recor...
🔐 Required role:
CUSTYP_C📖 Data dictionary: Records and custom record types
Deactivate a custom record type
Soft-deletes a custom record type by marking it as inactive. Existing data is preserved but the type will no longer appear in lists.
Business Applications:
- Remove custom record types
- Clean up unused definitions
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
- Sandbox (requires Cloudflare Access headers)https://api.sandbox.aiwyn.app/api/v1/records/custom/{name}
- Staging (requires Cloudflare Access headers)https://api.staging.aiwyn.app/api/v1/records/custom/{name}
- Production (your live firm data; no Cloudflare Access headers)https://api.aiwyn.ai/api/v1/records/custom/{name}
curl -i -X DELETE \
'https://api.sandbox.aiwyn.app/api/v1/records/custom/{name}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
-H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE'Response
{ "data": { "id": 0, "name": "string", "displayName": "string", "description": "string", "isCustom": true, "active": true, "fields": [ … ], "recordsUrl": "string", "schemaUrl": "string" }, "error": {}, "meta": { "success": true, "message": "string", "timestamp": "2019-08-24T14:15:22Z", "version": "string" } }