Hi,
Am I correct in that there does not appear to be a POST/PUT option to add/assign a label to a Confluence Space via the REST API?
Via the UI, a Confluence Administrator can visit the following URL to add one:
Click More Details
In Categories add existing or new labels as needed.
...but the only API calls appear to be:
GET labels for Space: https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-label/#api-spaces-id-labels-get
-and-
GET Space by Id: https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space/#api-spaces-id-get
--with the "include-labels" query parameter.
Hello Michael,
Thanks for asking this question! The API primarily supports retrieving labels with the GET method, as you mentioned in your post.
We do have an experimental API that you can use, noting these URLs can change over time: Add labels to a space
Finally, we are tracking interest via a feature request: CONFCLOUD-73279 Allow setting of Space labels (categories) using the Space REST API
You can add your vote and comment on the feature request with your feedback for the product team. If you want to be kept up to date on any progress, add yourself as a watcher.
I hope that helps, but if you have any questions, please let me know!
Shannon S | Atlassian Cloud Support
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.