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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Remove Labels that are numeric or integers with REST API

I was trying to use the rest api delete label with query parameter to remove a label that is an integer but I keep getting 500 Internal Server Error. How do I remove a label that is a numeric value?

 

postman.JPG

 

1 answer

0 votes
Hana Kučerová Community Leader Aug 18, 2020

Hi @Sam Chan ,

please try this URL (+ DELETE):

https://yourinstance_confluence/rest/api/content/26083521/label/56789

I've just tested it and it works for me. 

I just tried that and got this response along with 500 internal server error again

{    "statusCode": 500,    "message": "com.atlassian.confluence.core.service.NotValidException: [ValidationError [messageKey=label.not.found, args=[]]]"}

The weird thing is that the URL works when the label is not a numeric number. I made a call with something like this below and it worked...it removed the confluence label

DELETE REQUEST https://your_confluence/rest/api/content/26083521/label/confluence  

 

My confluence server is running version 5.9.11

Hana Kučerová Community Leader Aug 18, 2020

 

According to the documentation, there could be problems with "/", but numbers are not mentioned.

Version 5.9.11 is quite old, it seems to me like a bug :-(...

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Announcing the waitlist for Jira Work Management

Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...

893 views 14 20
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you