Hi @Pablo Calvo ,
Welcome to Microsoft Q&A forum and thanks for reaching out here.
If you looking for an API that returns list of all Term templates, then you can use Types_GetAllTermTemplateDef API and then you can extract each Term template name and pass it to next API as needed.
GET {Endpoint}/catalog/api/atlas/v2/types/typedefs?type=term_template
Sample API response looks like below:
{
"enumDefs": [],
"structDefs": [],
"classificationDefs": [],
"entityDefs": [],
"relationshipDefs": [],
"termTemplateDefs": [
{
"category": "TERM_TEMPLATE",
"guid": "6xxxxxxx-xxxxxxxx",
"createdBy": "xxxxxxx-xxxxxxxx",
"updatedBy": "xxxxxxx-xxxxxxxx",
"createTime": 1682376261552,
"updateTime": 1682376261552,
"version": 1,
"name": "CustomTermTemplate2",
"description": "My CustomTermTemplate2",
"typeVersion": "1.0",
"lastModifiedTS": "1",
"attributeDefs": [
{
"name": "MySampleAttribute2",
"typeName": "string",
"isOptional": true,
"cardinality": "SINGLE",
"valuesMinCount": 0,
"valuesMaxCount": 1,
"isUnique": false,
"isIndexable": false,
"includeInNotification": false,
"defaultValue": "SampleAttribute2",
"options": {
"isDisabled": "false"
}
}
]
},
{
"category": "TERM_TEMPLATE",
"guid": "xxxxx-xxx-xxxx",
"createdBy": "xxxxxxx-xxxxxxxx",
"updatedBy": "xxxxxxx-xxxxxxxx",
"createTime": 1682376211721,
"updateTime": 1682376211721,
"version": 1,
"name": "CustomTermTemplate1",
"description": "My CustomTermTemplate1",
"typeVersion": "1.0",
"lastModifiedTS": "1",
"attributeDefs": [
{
"name": "MySampleAttribute1",
"typeName": "string",
"isOptional": true,
"cardinality": "SINGLE",
"valuesMinCount": 0,
"valuesMaxCount": 1,
"isUnique": false,
"isIndexable": false,
"includeInNotification": false,
"defaultValue": "Sample1",
"description": "TestingAttributes1",
"options": {
"isDisabled": "false"
}
}
]
}
],
"businessMetadataDefs": []
}
Hope this helps.
Please don’t forget to Accept Answer
and Yes
for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.