My version of Conflunce server is 7.15.1
Can create spaces with labels or at least add a label to a space later?
Couldn't find anything about adding labels while creating spaces in the documentation.
As for adding labels afterwards. as described here, I tried this API request, but I get 400 (Bad Request) in return.
curl --request POST \
-u 'user:password' \
--url 'https://wiki.mydomain.com/rest/api/content/12345/label' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"title": "my_label"
}'
I can't even figure out how to retrieve label from an existing space.
curl -D- \
-u 'username:password' \
-X GET \
-H "Content-Type: application/json" \
'https://wiki.mydomain.com/rest/api/content/12345/label'
In return I get 404 (not found) with message "No content found with id : ContentId{id=12345}","reason":"Not Found". I doubled and tripled checked, the id of the space is correct.