How to update glossary term attribute using rest api

pankaj 6 Reputation points
2022-09-26T07:18:47.797+00:00

Below shared the request body for updating glossary term attribute using rest api

Refer doc: https://learn.microsoft.com/en-us/rest/api/purview/catalogdataplane/glossary/update-glossary-term?tabs=HTTP

Request Body: -

{
"guid": "7866906d-79be-4df4-b34d-6353a7ecf616",
"qualifiedName": "Management Performance_Customer feedback@Taiwan Glossary ",
"name": "Management Performance_Customer feedback",
"shortDescription": "Example Short Description",
"lastModifiedTS": "1",
"abbreviation": "T1",
"status": "Approved",
"anchor": {
"glossaryGuid": "71ddb5cf-f6cc-4128-8de3-a5534b26ce1b",
"relationGuid": "3672fde8-801b-4cbf-83ce-673b2db4ff8b"
},
"attributes": {
"Data Products": {
"Data Set Provider": null,
"Uses Data Product": null,
"Data Product Valuation Metric": null,
"Data Product Description": null,
"Update Frequency": null,
"Data Valuation ": "$2",
"Used by Data Product": null,
"Data Product Valuation": "$10,000",
"Source of Data Product Valuation": null,
"URL": "www.google.com",
"Data Product Owner": null
}
}
}

Here is the error I am facing after hitting the API in postman:
244722-image.png

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.
930 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 37,896 Reputation points Microsoft Employee
    2022-09-27T07:39:56.983+00:00

    Hi @pankaj ,

    Thank you for posting query in Microsoft Q&A Platform.

    From error message it seems you are trying to update name of an existing term, which I is not allowed. You can try to update other details around it but name cannot be update. Hence ending up with this error.

    If your requirement is to update name only. Then instead of update API, you need to consider removing that glossary term and creating a new one with your new name.

    Hope this helps. Please let me know if any further queries.

    ---------------

    Please consider hitting Accept Answer button. Accepted answers help community as well.