Skip to content

Deactivate a custom record type

Request

🔐 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
Path
namestringrequired

Name of the custom record type.

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'

Responses

Record type deactivated successfully

Bodyapplication/json
dataobject
errorobject or null
metaobject
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" } }