What is the API used for bulk tagging the data assets and please explain with an example

Dhanoordaran V 290 Reputation points
2025-05-15T10:20:03.3366667+00:00

How to perform the bulk tagging of data assets using API?

PFA image for reference of tag which I'm expecting:

User's image

We thought of below APIs for this purpose: label api or businessmetadata api or classification api or entity set label api or any other api?

Please explain which api to use along with an example.

Microsoft Security | Microsoft Purview

Answer accepted by question author
Anonymous
2025-05-16T11:41:00.7866667+00:00

@Dhanoordaran V
To apply tags (classifications) to multiple data assets such as ADLS Gen2 files or Synapse tables, the correct API to use is:

POST /api/atlas/v2/entity/bulk/classification

 

This API allows you to assign a classification (tag) to multiple entities using their GUIDs in a single request.

This API applies "classifications", not "labels". The /labels API often returns a 404 error if the label type or entity isn't supported. For Purview, Microsoft recommends using classifications for tagging purposes.

I hope this info helps,If you have any further query, please let me know I am happy to help.

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Prabir Maji 0 Reputation points
    2026-08-26T16:14:45.8233333+00:00

    any suggestion how I can do bulk tagging to multiple asset through Purview API and Python. Which API should I use? Is this API helps: {PurviewEndpoint}/datamap/api/atlas/v2/entity/bulk/setClassifications?

    Was this answer helpful?

    0 comments No comments

Your answer

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