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

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;results&quot;:[{&quot;prefix&quot;:&quot;Duis elit dolor officia&quot;,&quot;name&quot;:&quot;non sunt&quot;,&quot;id&quot;:&quot;nulla veniam&quot;,&quot;label&quot;:&quot;deserunt Ut Excepteur magna&quot;},{&quot;prefix&quot;:&quot;in consequat deserun&quot;,&quot;name&quot;:&quot;officia cillum enim&quot;,&quot;id&quot;:&quot;Lorem quis esse amet&quot;,&quot;label&quot;:&quot;dolore esse&quot;}],&quot;start&quot;:-32316568,&quot;limit&quot;:-3993073,&quot;size&quot;:-78086889,&quot;_links&quot;:{}}