Editing the semantic type in sandbox status using the API
Define the type of your semantic type.
- The DICT type, based on an open or closed list of values.
- The REGEX type that compares your data against a preselected regular expression.
- The COMPOUND type, under which you can group several existing semantic types.
Procedure
Results
You can use the GET
https://tds.{region}.cloud.talend.com/semanticservice/categories?state=SANDBOX
operation to list the semantic types in sandbox status. The response includes your
semantic type with your modifications. For
example:
{
"id": "5f80848e51b6b16703a4318d",
"name": "CODICE_FISCALE_CREATED_VIA_API",
"label": "Codice Fiscale (created via API)",
"type": "REGEX",
"creator": "6be3b335-05c9-4a3b-92d6-c5821f398bac",
"creatorName": "John Doe",
"createdAt": 1602258062631,
"regEx": {
"mainCategory": "AlphaNumeric",
"validator": {
"patternString": "^[A-Z]{6}[0-9]{2}[A-Z][0-9]{2}[A-Z][0-9]{3}[A-Z]$",
"caseInsensitive": true,
"re2jCompliant": true,
"generexCompliant": true
}
},
"modifiedAt": 1602262635946,
"lastModifier": "6be3b335-05c9-4a3b-92d6-c5821f398bac",
"lastModifierName": "John Doe",
"completeness": false,
"validationMode": "SIMPLIFIED",
"state": "SANDBOX"
}