This API possibility to transform string with python code.
Transformation API (1)
https://api.cdq.com/transformation/rest/
List of imported data transformation definitions.
Name of the Data Transformation Definition.
- Production
https://api.cdq.com/transformation/rest/datatransformationdefinitions
- cURL
- Java
- JavaScript
- Python
- Node.js
curl -i -X POST \
https://api.cdq.com/transformation/rest/datatransformationdefinitions \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"imports": [
{
"id": "c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4"
}
],
"name": "My DTD",
"type": {
"name": "BUSINESS_PARTNER",
"technicalKey": "BUSINESS_PARTNER"
},
"mappings": [
{
"sourceAttributes": [
"businessPartner.record"
],
"sourceSelections": [
{
"selectionType": "CONCATENATION",
"value": ","
}
],
"targetAttributes": [
"businessPartner.externalId"
],
"targetTransformations": [
{
"constantValue": "constant",
"targetAttributes": [
"businessPartner.externalId"
],
"transformationName": "CAPITALIZE",
"defaultValue": "default",
"transformationType": "CAPITALIZE"
}
],
"ignoredValues": [
"ignored value"
]
}
],
"reverseMappings": [
{
"sourceAttributes": [
"businessPartner.record"
],
"sourceSelections": [
{
"selectionType": "CONCATENATION",
"value": ","
}
],
"targetAttributes": [
"businessPartner.externalId"
],
"targetTransformations": [
{
"constantValue": "constant",
"targetAttributes": [
"businessPartner.externalId"
],
"transformationName": "CAPITALIZE",
"defaultValue": "default",
"transformationType": "CAPITALIZE"
}
],
"ignoredValues": [
"ignored value"
]
}
],
"valueMappings": [
{
"sourceConditions": [
{
"sourceValue": "AU",
"sourceAttribute": "$.identifications[*].country.code",
"sourceRegex": "^GR\\..{1,}"
}
],
"sourceValue": "AE1",
"targetValue": "AE",
"targetAttribute": "$.identifications[*].country.code",
"sourceAttribute": "$.identifications[*].country.code",
"disabled": "false"
}
],
"values": [
{
"sourceValue": "AE1",
"sourceAttribute": "identifications[*].indentificationType.code"
}
]
}'
OK
List of imported data transformation definitions.
Name of the Data Transformation Definition.
Unique identifier for a data transformation definition.
Uniquely identifying ID of the workspace.
User or Client UUID which modified the resource.
{ "imports": [ { … } ], "name": "My DTD", "type": { "name": "BUSINESS_PARTNER", "technicalKey": "BUSINESS_PARTNER" }, "mappings": [ { … } ], "reverseMappings": [ { … } ], "valueMappings": [ { … } ], "values": [ { … } ], "id": "c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4", "workspaceId": "c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4", "version": 1, "createdBy": "76248934691294444", "createdAt": "2025-10-07T05:40:51Z", "modifiedBy": "76248934691294444", "modifiedAt": "2025-10-07T05:40:51Z" }
Start after the given ID.
Filter for technicalKey type.
Enum Value | Description |
---|---|
BUSINESS_PARTNER | Data transformation definitions applied to business partner |
MESSAGE_DETAILS | Data transformation definitions applied to message details |
BANK_ACCOUNT | Data transformation definition used during bank account data import job. |
- Production
https://api.cdq.com/transformation/rest/datatransformationdefinitions
- cURL
- Java
- JavaScript
- Python
- Node.js
curl -i -X GET \
https://api.cdq.com/transformation/rest/datatransformationdefinitions \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
{ "startAfter": "5712566172571652", "nextStartAfter": "5712566172571652", "total": "67", "values": [ { … } ] }
- Production
https://api.cdq.com/transformation/rest/datatransformationdefinitions/{id}/reverse
- cURL
- Java
- JavaScript
- Python
- Node.js
curl -i -X GET \
https://api.cdq.com/transformation/rest/datatransformationdefinitions/c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4/reverse \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
OK
List of imported data transformation definitions.
Name of the Data Transformation Definition.
Unique identifier for a data transformation definition.
Uniquely identifying ID of the workspace.
User or Client UUID which modified the resource.
{ "imports": [ { … } ], "name": "My DTD", "type": { "name": "BUSINESS_PARTNER", "technicalKey": "BUSINESS_PARTNER" }, "mappings": [ { … } ], "reverseMappings": [ { … } ], "valueMappings": [ { … } ], "values": [ { … } ], "id": "c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4", "workspaceId": "c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4", "version": 1, "createdBy": "76248934691294444", "createdAt": "2025-10-07T05:40:51Z", "modifiedBy": "76248934691294444", "modifiedAt": "2025-10-07T05:40:51Z" }
- Production
https://api.cdq.com/transformation/rest/datatransformationdefinitions/{id}
- cURL
- Java
- JavaScript
- Python
- Node.js
curl -i -X GET \
https://api.cdq.com/transformation/rest/datatransformationdefinitions/c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4 \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
OK
List of imported data transformation definitions.
Name of the Data Transformation Definition.
Unique identifier for a data transformation definition.
Uniquely identifying ID of the workspace.
User or Client UUID which modified the resource.
{ "imports": [ { … } ], "name": "My DTD", "type": { "name": "BUSINESS_PARTNER", "technicalKey": "BUSINESS_PARTNER" }, "mappings": [ { … } ], "reverseMappings": [ { … } ], "valueMappings": [ { … } ], "values": [ { … } ], "id": "c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4", "workspaceId": "c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4", "version": 1, "createdBy": "76248934691294444", "createdAt": "2025-10-07T05:40:51Z", "modifiedBy": "76248934691294444", "modifiedAt": "2025-10-07T05:40:51Z" }
List of imported data transformation definitions.
Name of the Data Transformation Definition.
- Production
https://api.cdq.com/transformation/rest/datatransformationdefinitions/{id}
- cURL
- Java
- JavaScript
- Python
- Node.js
curl -i -X PUT \
https://api.cdq.com/transformation/rest/datatransformationdefinitions/c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4 \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"imports": [
{
"id": "c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4"
}
],
"name": "My DTD",
"type": {
"name": "BUSINESS_PARTNER",
"technicalKey": "BUSINESS_PARTNER"
},
"mappings": [
{
"sourceAttributes": [
"businessPartner.record"
],
"sourceSelections": [
{
"selectionType": "CONCATENATION",
"value": ","
}
],
"targetAttributes": [
"businessPartner.externalId"
],
"targetTransformations": [
{
"constantValue": "constant",
"targetAttributes": [
"businessPartner.externalId"
],
"transformationName": "CAPITALIZE",
"defaultValue": "default",
"transformationType": "CAPITALIZE"
}
],
"ignoredValues": [
"ignored value"
]
}
],
"reverseMappings": [
{
"sourceAttributes": [
"businessPartner.record"
],
"sourceSelections": [
{
"selectionType": "CONCATENATION",
"value": ","
}
],
"targetAttributes": [
"businessPartner.externalId"
],
"targetTransformations": [
{
"constantValue": "constant",
"targetAttributes": [
"businessPartner.externalId"
],
"transformationName": "CAPITALIZE",
"defaultValue": "default",
"transformationType": "CAPITALIZE"
}
],
"ignoredValues": [
"ignored value"
]
}
],
"valueMappings": [
{
"sourceConditions": [
{
"sourceValue": "AU",
"sourceAttribute": "$.identifications[*].country.code",
"sourceRegex": "^GR\\..{1,}"
}
],
"sourceValue": "AE1",
"targetValue": "AE",
"targetAttribute": "$.identifications[*].country.code",
"sourceAttribute": "$.identifications[*].country.code",
"disabled": "false"
}
],
"values": [
{
"sourceValue": "AE1",
"sourceAttribute": "identifications[*].indentificationType.code"
}
]
}'
OK
List of imported data transformation definitions.
Name of the Data Transformation Definition.
Unique identifier for a data transformation definition.
Uniquely identifying ID of the workspace.
User or Client UUID which modified the resource.
{ "imports": [ { … } ], "name": "My DTD", "type": { "name": "BUSINESS_PARTNER", "technicalKey": "BUSINESS_PARTNER" }, "mappings": [ { … } ], "reverseMappings": [ { … } ], "valueMappings": [ { … } ], "values": [ { … } ], "id": "c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4", "workspaceId": "c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4", "version": 1, "createdBy": "76248934691294444", "createdAt": "2025-10-07T05:40:51Z", "modifiedBy": "76248934691294444", "modifiedAt": "2025-10-07T05:40:51Z" }
- Production
https://api.cdq.com/transformation/rest/datatransformationdefinitions/{id}
- cURL
- Java
- JavaScript
- Python
- Node.js
curl -i -X DELETE \
https://api.cdq.com/transformation/rest/datatransformationdefinitions/c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4 \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
{ "id": "c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4" }
- Production
https://api.cdq.com/transformation/rest/datatransformationdefinitions/{id}/versions/{version}
- cURL
- Java
- JavaScript
- Python
- Node.js
curl -i -X GET \
https://api.cdq.com/transformation/rest/datatransformationdefinitions/c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4/versions/1 \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
OK
List of imported data transformation definitions.
Name of the Data Transformation Definition.
Unique identifier of Data Transformation Definition version.
Unique identifier for a Data Transformation Definition.
Version number of the configuration.
Uniquely identifying ID of the workspace.
{ "imports": [ { … } ], "name": "My DTD", "type": { "name": "BUSINESS_PARTNER", "technicalKey": "BUSINESS_PARTNER" }, "mappings": [ { … } ], "reverseMappings": [ { … } ], "valueMappings": [ { … } ], "values": [ { … } ], "id": "c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4", "dataTransformationDefinitionId": "17def3cf51b6-abf0-4f8e-9a20-cd83bab2", "version": 1, "workspaceId": "c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4", "createdBy": "76248934691294444", "createdAt": "2025-10-07T05:40:51Z" }