POST

Add a category to a space

Adds a category the description of a given {@link Space} identified by spaceKey.

Example request URI to add space category 'testCategory' to space with space key TEST:

https://example.com/confluence/rest/api/space/TEST/category/testCategory

Request

Path parameters

spaceKey

string

Required
labelName

string

Required

Responses

a request has been successfully completed. A new label has been added or it already exist. No content is returned.

POST/rest/api/space/{spaceKey}/category/{labelName}
1 2 curl --request POST \ --url 'http://{baseurl}/confluence/rest/api/space/{spaceKey}/category/{labelName}'
DEL

Remove a category from a space

Removes a category from a space, identified by spaceKey.

Example request URI: https://example.com/confluence/rest/api/space/TEST/category/example-category

Request

Path parameters

spaceKey

string

Required
categoryName

string

Required

Responses

Returned if the category is removed successfully.

DEL/rest/api/space/{spaceKey}/category/{categoryName}
1 2 curl --request DELETE \ --url 'http://{baseurl}/confluence/rest/api/space/{spaceKey}/category/{categoryName}'

Rate this page: