Add labels to content
POST {{baseUrl}}/api/content/:id/label
Adds labels to a piece of content. Does not modify the existing labels.
Notes:
- Labels can also be added when creating content (Create content).
- Labels can be updated when updating content (Update content). This will delete the existing labels and replace them with the labels in the request.
Permissions required: Permission to update the content.
Request Body
[{"prefix"=>"<string>", "name"=>"<string>"}, {"prefix"=>"<string>", "name"=>"<string>"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"results":[{"prefix":"Duis elit dolor officia","name":"non sunt","id":"nulla veniam","label":"deserunt Ut Excepteur magna"},{"prefix":"in consequat deserun","name":"officia cillum enim","id":"Lorem quis esse amet","label":"dolore esse"}],"start":-32316568,"limit":-3993073,"size":-78086889,"_links":{}}