Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Delete label

Deletes a labels to the specified content. The body is the json representation of the list. When calling this method through REST the label parameter doesn’t accept / characters in label names, because of security constraints. For this case please use the query parameter version of this method (/content/{id}/label?name={label})

DELETE/rest/api/content/{id}/label/{label}
Path parameters
idstringrequired

the id of the content to get the labels for

labelstringrequired

the name of the label to be removed from the content

Responses
204

returns no response on successful delete

400

Returned if trying to delete a label with "/" in the name.permission to the content.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
403

Returned if user has view permission, but no edit permission to the content.permission to the content.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
404

Returned if content or label doesn't exist, or calling user doesn't have view permission to the content.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Parameters
Request
curl -X DELETE 'http://example.com:7990/confluence/rest/api/content/string/label/string' \
  -H 'Accept: application/json'
Response
returns no response on successful delete

Was this page helpful?