Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to remove attachment labels via API

Thomas Berger
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 5, 2016

The API documentation seems to only offer a POST method which "Adds a list of labels to the specified content./rest/api/content/{id}/label

https://docs.atlassian.com/atlassian-confluence/REST/latest/#d3e529

I am looking for a way to bulk remove labels from attachments of a given page.

1 answer

1 accepted

0 votes
Answer accepted
Thomas Berger
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 5, 2016

The 'DELETE' method actually works

$baseUrl/wiki/rest/api/content/{attachmentId}/label?name={labelName}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events