Custom Data Types (CDT) Formation
The "Custom Data Types (CDT) Formation" folder within the API collection is a dedicated section that focuses on API requests and endpoints related to the getting CDTs information from formation.
This is a GET request endpoint that retrieves information about a specific CDT within the current formation. The endpoint requires the URL of the application, the name of the tenant, and the name of the instance. Additionally, the endpoint requires the name of the CDT to retrieve information for.
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveMachine-readable CDT name defined in Designer (e.g. my_custom_type)
CDT formation
^[a-z0-9\-_]+$truetrueBad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
GET /{tenantName}/{instanceName}/formations/current/cdts/{cdtName} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"title": "text",
"label": "text",
"version": 1,
"internal": true,
"readable": true,
"updatable": true,
"type": "SINGLE_RECORD",
"relation": "COMMON",
"fields": [
{
"name": "text",
"type": "TEXT",
"formula": "text",
"dictionary": {
"name": "text",
"field": "text"
},
"profileDataType": {
"name": "text",
"fields": [
"text"
]
},
"customDataType": {
"name": "text",
"fields": [
"text"
]
},
"customFieldType": "text",
"editable": true,
"searchable": true,
"bulkEdit": true,
"phi": true,
"disable": true,
"injectedSource": true,
"displayType": "CHECKBOX",
"valueType": "STRING",
"meta": {
"label": "text",
"minLength": 1,
"maxLength": 1,
"minValue": "text",
"maxValue": "text",
"fileTypes": [
"text"
],
"maxFiles": 1,
"maxTotalFileSize": 1,
"required": true,
"options": [
{
"label": "text",
"value": null,
"refCdtName": "text"
}
],
"multiple": true,
"patterns": [
"NUMBERS_ONLY"
]
},
"mask": {
"symbol": "*",
"startPosition": 1,
"endPosition": 1
},
"richTextEnabled": true
}
]
}This API endpoint allows you to retrieve information about the (CDTs) associated with the current formation in a specified tenant and instance. The GET request should be sent to the specified URL with the appropriate values for the {{tenantName}} and {{instanceName}} parameters. Upon successful execution of the request, the response will contain a list of the CDTs associated with the current formation, including their names and any other relevant metadata.
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveFilter CDTs related to a specific PDT name
Filter by exact CDT name(s)
Free-text search
trueList of CDT formations
^[a-z0-9\-_]+$truetrueBad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
GET /{tenantName}/{instanceName}/formations/current/cdts HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"title": "text",
"label": "text",
"version": 1,
"internal": true,
"readable": true,
"updatable": true,
"type": "SINGLE_RECORD",
"relation": "COMMON",
"fields": [
{
"name": "text",
"type": "TEXT",
"formula": "text",
"dictionary": {
"name": "text",
"field": "text"
},
"profileDataType": {
"name": "text",
"fields": [
"text"
]
},
"customDataType": {
"name": "text",
"fields": [
"text"
]
},
"customFieldType": "text",
"editable": true,
"searchable": true,
"bulkEdit": true,
"phi": true,
"disable": true,
"injectedSource": true,
"displayType": "CHECKBOX",
"valueType": "STRING",
"meta": {
"label": "text",
"minLength": 1,
"maxLength": 1,
"minValue": "text",
"maxValue": "text",
"fileTypes": [
"text"
],
"maxFiles": 1,
"maxTotalFileSize": 1,
"required": true,
"options": [
{
"label": "text",
"value": null,
"refCdtName": "text"
}
],
"multiple": true,
"patterns": [
"NUMBERS_ONLY"
]
},
"mask": {
"symbol": "*",
"startPosition": 1,
"endPosition": 1
},
"richTextEnabled": true
}
]
}
]Last updated
Was this helpful?