List all Taxonomies and Categories of an Item

get

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

Lists all Taxonomies and Categories of a given item.

Request

Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : ItemSubResourceListTaxonomyId
Type: object
Taxonomies
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : TaxonomyInfo
Type: object
TaxonomyInfo
Show Source
Nested Schema : categories
Type: array
Categories in the Taxonomy the item belongs to.
Show Source
Nested Schema : ItemCategoryInfo
Type: object
Show Source
Nested Schema : nodes
Type: array
Nodes in the category assigned to the item.
Show Source
Nested Schema : CategoryNodeBean
Type: object
Show Source

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 get the taxonomy information of an item by submitting a GET request using cURL.

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

Example:

This reads the taxonomy information of the item ID: COREB423D3839C634CD485B76C696E58C41F.

/content/management/api/v1.1/items/COREB423D3839C634CD485B76C696E58C41F/taxonomies

Response Body

{
        "data": [
          {
            "id": "6A9A52CD216947E3875DC77576AB94BD",
            "name": "Taxonomy 1",
            "categories": [
              {
                "id": "EF4AD29B52E44BBB8DC3F3BC1673202B",
                "name": "C4"
              },
              {
                "id": "1B58D48E8FB048E09B7E0E2660313D89",
                "name": "C4.2"
              }
            ],
            "shortName": "TAX"
          }
        ],
        "links": [
          {
            "href": "https://<hostname>/content/management/api/v1.1/items/COREB423D3839C634CD485B76C696E58C41F/taxonomies",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          }
        ]
 }
Back to Top