List Tags of an Item

get

/content/management/api/v1.1/items/{id}/tags

Lists all tags of a given item.

Request

Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : ItemSubResourceListTags
Type: object
Tags
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : Tag
Type: object
Tag.
Show Source

304 Response

Not modified.

400 Response

Bad request.

403 Response

Forbidden.

404 Response

Not found.

500 Response

Internal server error.
Back to Top

Examples

The following example shows how to list the tags of an item based on its ID by submitting a GET request using cURL.

curl -X GET -H 'Accept: application/json' 'https://host:port/content/management/api/v1.1/items/{id}/tags'

Example:

This provides a list of all tags of the item ID: CONT70DDEB1E83E54B6BB7BEBED43CEBC692.

/content/management/api/v1.1/items/CONT70DDEB1E83E54B6BB7BEBED43CEBC692/tags

Response Body

{
        "data": [
          {
            "name": "car"
          },
          {
            "name": "vehicle"
          }
        ],
        "links": [
          {
            "href": "https://<hostname>/content/management/api/v1.1/items/CORE70DDEB1E83E54B6BB7BEBED43CEBC692/tags",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          }
        ]
}
Back to Top