Update a collection's tags

PUT {{baseUrl}}/collections/{{collectionUid}}/tags

Updates a collection's associated tags. This endpoint replaces all existing tags with those you pass in the request body.

Note:

  • You can only add a maximum of five tags to a collection.
  • Tags must be between 2 and 64 characters long.

  • Tags must follow the ^[a-z][a-z0-9-]\\\\\*[a-z0-9]+$ pattern.

Request Body

{"tags"=>[{"slug"=>"{{tagName}}"}]}

RESPONSES

status: OK

{"tags":[{"slug":"needs-review"}]}