Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Jcorbalan
New Member

Remove labels api

Hello,

We have the same issue with labels as in this post: How to remove Sensitivity Label - What permission/... - Microsoft Fabric Community but we are not sure if we are using the API correctly (we get a response code 401) as seen here: Admin - InformationProtection RemoveLabelsAsAdmin - REST API (Power BI Power BI REST APIs) | Microso...

We have many questions about that:
- Is it just a try page or we can use it to remove our labels?

- If so, what is the url we need to use to use it?
- Do we need to fill the header and parameter fields or is it enought to use the body field with the type and id?
Thanks!!

 

2 REPLIES 2
Jcorbalan
New Member

Thanks for your answer. 

If I use postman, how can I find the address to connect to the API?

Regards

v-yangliu-msft
Community Support
Community Support

Hi  @Jcorbalan ,

 

According to your requirement description, this documentation page supports directly doing "Try it" to try this rest API, you can click here and follow the request header and body of the example below to mimic and place your own label to do these operations.

vyangliumsft_0-1713240169112.png

vyangliumsft_1-1713240169115.png

Regarding the permissions needed, if you are logged in with an AAD account, then your AAD account will need these permissions

  • The user must have administrator rights (such as Office 365 Global Administrator or Power BI Service Administrator).
  • The admin user must have sufficient usage rights to delete labels.

There is a corresponding description in this part of the document

vyangliumsft_2-1713240190200.png

Also, if you want to use these APIs more formally and execute them in bulk, you can use postman to test and execute them as a professional job.

Postman API Platform | Sign Up for Free

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.