Confluence REST API DELETE LABEL getting message null for uri:

Troy Newcomb
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 20, 2019

Getting error while attempting to delete a label.

 

from what i can tell from the api docs and searching this should work.

curl --request DELETE --url 'https://server.local/rest/api/content/123/label/gtest' -b /tmp/cookie.cook

getting response of:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>404</status-code><message>null for uri: https://server.local/rest/api/content/123/label/gtest</message></status>

 

Able to view labels for a page via rest so i feel like i am understanding the syntax

curl -b cookie.txt https://server.local/rest/api/content/123

 

 

Able to add a label to a page via rest. this seems to work fine.

curl -X POST https://server.local/rest/api/content/43144590/label -b /tmp/cookie.cook -d '[ { "prefix": "global", "name": "gtest"}]' -H 'Content-Type: application/json' -H  'Accept: application/json'

 

Is there a specific permission on on certian rest api endpoints i ned to ask my server admin for?

 

 

1 answer

0 votes
srini nall January 17, 2025

Did you resolve the above issue? I am having this issue now.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events