How to fetch system defined term template with REST API

Alina Smahliuk 0 Reputation points
2024-11-12T15:46:27.9033333+00:00

Hi,

it seems that using this endpoint GET {endpoint}/datamap/api/atlas/v2/types/typedefs?api-version=2023-09-01&includeTermTemplate={includeTermTemplate} we can fetch only custom term templates, can we somehow to get also system defined term template with its fields.

And if one wants to import terms using Purview Portal, there is an option to load the csv file with templates. Is there any similar option for creating/updating terms with REST API?

Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
1,262 questions
{count} votes

1 answer

Sort by: Most helpful
  1. phemanth 11,980 Reputation points Microsoft Vendor
    2024-11-13T19:44:38.0466667+00:00

    @Alina Smahliuk

    Thanks for reaching out to Microsoft Q&A.

    To fetch system-defined term templates using the REST API, you might encounter limitations with the endpoint you mentioned, which primarily retrieves custom term templates. Unfortunately, as of now, there isn’t a direct API endpoint documented for fetching system-defined term templates alongside their fields.

    Possible Workarounds:

    1. Check Documentation: Sometimes, API capabilities are updated. It’s worth checking the latest Azure Purview REST API documentation for any new endpoints or parameters that might allow fetching system-defined templates.
    2. Use GraphQL: If available, consider using GraphQL queries, which can sometimes provide more flexibility in fetching specific data types, including system-defined templates.

    Importing Terms:

    Regarding importing terms via the Purview Portal, while you can upload CSV files for templates, the REST API does not currently support bulk creation or updates of terms directly through CSV uploads. You would typically need to create or update terms one at a time using the appropriate POST or PATCH requests.

    Hope this helps. Do let us know if you any further queries.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.