Read a category

get

/content/management/api/v1.1/taxonomies/{id}/categories/{categoryId}

Read a specific category by taxonomy id, category id and status. The status should be provided in the query parameter.

Request

Path Parameters
Query Parameters
  • Default search query expression.
  • Expand parameter provides the option of getting child resources (referenced items) inline with the category's response. Accepts a comma-separated list of field names or all. Field names are case-sensitive. When expand is specified as all (with all in lower case), all the fields of the requested category are expanded. When expand is not specified, the category response contains links to the referenced children. Expansion of this form is supported for one level only. When the expand parameter contains a nonexistent field as per category definition, the resource produces HTTP 400.

    Example : expand=children
    Returns children categories sorted by their respective position ascending. This sort order cannot be changed in this request.
    Example : expand=all
    Returns child resources (children) available for this category. Only the first 1000 children categories will be expanded.
  • This parameter is used to control the returned fields for a category. This parameter accepts a comma-separated list of field names or all. These fields will be returned for each category in the list. As all the field names are case-sensitive, users must provide the correct field names in the query. Each category has both standard fields (id, name, description, position, parentId) and additional fields (namePath, idPath, isSiteCategory, synonyms, keywords, relatedCategories, customProperties, roleName). When fields is specified as all (case-insensitive), all the standard and additional fields are returned. The standard fields are always returned in the response and cannot be filtered out. Users can only filter out the additional fields. This parameter is optional in the query and by default results shows only standard fields in the response. Any incorrect or invalid field name given in the query will result in an error.

    Example: ?fields=namePath
    This returns all standard fields along with the namedPath additional field for the category.
    Example: ?fields=all
    This will return all standard fields and all additional fields for the category.
  • This parameter accepts a query expression condition that matches the field values. Many query conditions can be joined using AND/OR operators and grouped with parentheses. The value of the query condition follows the format of {fieldName} {operator} "{fieldValue}". The only field names supported are status and version. If no value is provided for status it defaults to "promoted". The field version is currently ignored. The only value allowed in the operator is eq (Equals).

    When updating a category the query parameter should always be provided with status set to "draft" as the default status is "promoted" and a promoted category cannot be modified.

    Example:
    https://{cecsdomain}/content/management/api/v1.1/taxonomies/{id}/categories?q=(status eq "draft")
    Example:
    https://{cecsdomain}/content/management/api/v1.1/taxonomies/{id}/categories?q=(status eq "promoted")
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : CategoryInformation
Type: object
Category Information
Show Source
Nested Schema : ancestors
Type: array
The ancestors of the Category. First element represents the root category and the last element represents the immediate parent of the category.
Show Source
Nested Schema : CollectionPropertiesCategoryInCollection
Type: object
CollectionProperties.
Show Source
Nested Schema : customProperties
Type: object
Additional Properties Allowed
Show Source
The custom properties' values of the Category.
Nested Schema : keywords
Type: array
The keywords of the Category.
Show Source
Nested Schema : CategoryAncestorBean
Type: object
Show Source
Nested Schema : relatedCategories
Type: array
The related categories of the Category.
Show Source
Nested Schema : ItemSubResourceListItem
Type: object
Item SubResource.
Show Source
Nested Schema : synonyms
Type: array
The synonyms of the Category.
Show Source
Nested Schema : aggregationResults
Type: array
Aggregation results.
Show Source
Nested Schema : items
Type: array
Singular resources contained in the collection.
Show Source
Nested Schema : pinned
Type: array
Pinned items. Shows items pinned at the top of search list
Show Source
Nested Schema : AggregationResult
Type: object
Show Source
Nested Schema : CategoryInCollection
Type: object
Category in Collection Response
Show Source
Nested Schema : customProperties
Type: object
Additional Properties Allowed
Show Source
The custom properties' values of the Category.
Nested Schema : keywords
Type: array
The keywords of the Category.
Show Source
Nested Schema : relatedCategories
Type: array
The related categories of the Category.
Show Source
Nested Schema : synonyms
Type: array
The synonyms of the Category.
Show Source
Nested Schema : CustomPropertyValuesBean
Type: object
Show Source
Nested Schema : values
Type: array
The list of values of the custom property.
Show Source
Nested Schema : CustomPropertyValue
Type: object
Show Source
Nested Schema : RelatedCategory
Type: object
Related Category
Show Source
Nested Schema : nodes
Type: array
The path of the category.
Show Source
Nested Schema : RelatedTaxonomyBean
Type: object
Show Source
Nested Schema : CategoryNodeBean
Type: object
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : Item
Type: object
Discriminator: typeCategory
Item
Show Source
Nested Schema : ItemSubResourceListChangesInfo
Type: object
Item SubResource.
Show Source
Nested Schema : ItemSubResourceListChannelId
Type: object
Item SubResource.
Show Source
Nested Schema : ItemSubResourceListCollectionId
Type: object
Item SubResource.
Show Source
Nested Schema : ItemSubResourceConnectorFileInfo
Type: object
Item SubResource.
Show Source
Nested Schema : User
Type: object
User object
Show Source
Nested Schema : date
Type: object
date
Show Source
Nested Schema : fields
Type: object
Read Only: true
Additional Properties Allowed
Show Source
User-defined fields data. Map. All the user-defined fields required in the type definition must be provided under this property in PUT and POST request.
Nested Schema : ItemSubResourceLockInfo
Type: object
Item SubResource.
Show Source
Nested Schema : ItemMetadataInfo
Type: object
ItemMetadataInfo
Show Source
Nested Schema : ItemSubResourceListAction
Type: object
Item SubResource.
Show Source
Nested Schema : ItemSubResourceListPublishInfo
Type: object
Item SubResource.
Show Source
Nested Schema : ItemReferenceInfo
Type: object
ItemReferenceInfo
Show Source
Nested Schema : ItemSubResourceRelationships
Type: object
Item SubResource.
Show Source
Nested Schema : ItemSubResourceListSuggestedTaxonomyInfo
Type: object
Item SubResource.
Show Source
Nested Schema : ItemSubResourceListTag
Type: object
Item SubResource.
Show Source
Nested Schema : ItemSubResourceListTaxonomyInfo
Type: object
Item SubResource.
Show Source
Nested Schema : ItemSubResourceListVariationsInfo
Type: object
Item SubResource.
Show Source
Nested Schema : ItemSubResourceListVersionInfo
Type: object
Item SubResource.
Show Source
Nested Schema : VideoBean
Type: object
VideoBean
Show Source
Nested Schema : WorkflowField
Type: object
All mapped workflow fields
Show Source
Nested Schema : ItemSubResourceListWorkflowInfo
Type: object
Item SubResource.
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : ChangesInfo
Type: object
ChangesInfo
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : ChannelId
Type: object
ChannelId
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : CollectionId
Type: object
CollectionId
Show Source
Nested Schema : ConnectorFileInfo
Type: object
ConnectorFileInfo
Show Source
Nested Schema : additionalProperties
Type: object
Nested Schema : LockInfo
Type: object
LockInfo
Show Source
Nested Schema : EXIFMetadata
Type: object
EXIF Metadata
Show Source
Nested Schema : VideoTranscriptMetadata
Type: object
Video Transcription Metadata
Show Source
Nested Schema : aggregationResults
Type: array
Aggregation results.
Show Source
Nested Schema : items
Type: array
Singular resources contained in the collection.
Show Source
Nested Schema : pinned
Type: array
Pinned items. Shows items pinned at the top of search list
Show Source
Nested Schema : ItemExtractedExifBean
Type: object
ItemExtractedExifBean
Show Source
Nested Schema : aggregationResults
Type: array
Aggregation results.
Show Source
Nested Schema : items
Type: array
Singular resources contained in the collection.
Show Source
Nested Schema : pinned
Type: array
Pinned items. Shows items pinned at the top of search list
Show Source
Nested Schema : Videotranscript
Type: object
Video transcript
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : Action
Type: object
Action
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : PublishInfo
Type: object
PublishInfo
Show Source
Nested Schema : Relationships
Type: object
Relationships
Show Source
Nested Schema : referencedBy
Type: array
Referenced by ids
Show Source
Nested Schema : Siteplanreference
Type: object
Site plan reference
Show Source
Nested Schema : referencedBySites
Type: array
Referenced by sites
Show Source
Nested Schema : references
Type: array
Reference ids
Show Source
Nested Schema : References
Type: object
References
Show Source
Nested Schema : ReferencedBySites
Type: object
ReferencedBySites
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : SuggestedTaxonomyInfo
Type: object
SuggestedTaxonomyInfo
Show Source
Nested Schema : categories
Type: array
Categories in the Suggested Taxonomy the item belongs to.
Show Source
Nested Schema : ItemSuggestedCategoryInfo
Type: object
Show Source
Nested Schema : nodes
Type: array
Nodes in the category assigned to the item.
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : Tag
Type: object
Tag.
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 : data
Type: array
Show Source
Nested Schema : VariationsInfo
Type: object
Variations Info.
Show Source
Nested Schema : items
Type: array
Content item variations.
Show Source
Nested Schema : Language
Type: object
LanguageItem
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : VersionInfo
Type: object
VersionInfo
Show Source
Nested Schema : PlaybackBean
Type: object
PlaybackBean
Show Source
Nested Schema : ProcessingBean
Type: object
ProcessingBean
Show Source
  • Read Only: true
    The progress of the background process. The value of this field will be one of PENDING, SUCCEEDED or FAILED.
Nested Schema : StripBean
Type: object
StripBean
Show Source
Nested Schema : AdaptiveStreamsBean
Type: object
AdaptiveStreamsBean
Show Source
Nested Schema : StripFrameBean
Type: object
StripFrameBean
Show Source
Nested Schema : aggregationResults
Type: array
Aggregation results.
Show Source
Nested Schema : items
Type: array
Singular resources contained in the collection.
Show Source
Nested Schema : pinned
Type: array
Pinned items. Shows items pinned at the top of search list
Show Source
Nested Schema : WorkflowInfo
Type: object
WorkflowInfo.
Show Source
Nested Schema : data
Type: array
Show Source

400 Response

Bad request.

403 Response

Forbidden.

404 Response

Taxonomy not found. The requested resource not found.

500 Response

Internal server error.
Back to Top

Examples

The following examples show how to retrieve a specific taxonomy category by submission of a GET request using cURL:

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

Example 1:

Retrieves a category identified by the category ID B0A39B47122C4CE88A6CD52B90C15263 from the draft taxonomy with ID D7969D6CA0D144AEA9CCA88BA6D2CF81.

/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/B0A39B47122C4CE88A6CD52B90C15263?q=(status eq \"draft\")

Response Body

{
  "id": "B0A39B47122C4CE88A6CD52B90C15263",
  "name": "C4",
  "description": "",
  "parentId": "D7969D6CA0D144AEA9CCA88BA6D2CF81",
  "children": {
    "href": "https://<hostname>/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories?q=( parentId eq \"B0A39B47122C4CE88A6CD52B90C15263\" and  status eq \"draft\" )"
  },
  "links": [
    {
      "href": "https://<hostname>/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/B0A39B47122C4CE88A6CD52B90C15263?q=(status eq \"draft\")",
      "rel": "self",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "https://<hostname>/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/B0A39B47122C4CE88A6CD52B90C15263?q=(status eq \"draft\")",
      "rel": "canonical",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "https://<hostname>/content/management/api/v1.1/metadata-catalog/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/B0A39B47122C4CE88A6CD52B90C15263",
      "rel": "describedby",
      "method": "GET",
      "mediaType": "application/schema+json"
    }
  ],
  "status": "draft",
  "position": 3
} 

Example 2:

Shows how to retrieve a category and add the optional field namePath.

/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/B0A39B47122C4CE88A6CD52B90C15263?q=(status eq \"draft\")&fields=namePath

Response Body

{
  "id": "B0A39B47122C4CE88A6CD52B90C15263",
  "name": "C4",
  "description": "",
  "parentId": "D7969D6CA0D144AEA9CCA88BA6D2CF81",
  "namePath": "/C4",
  "children": {
    "href": "https://<hostname>/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories?fields=namePath&q=( parentId eq \"B0A39B47122C4CE88A6CD52B90C15263\" and  status eq \"draft\" )"
  },
  "links": [
    {
      "href": "https://<hostname>/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/B0A39B47122C4CE88A6CD52B90C15263?fields=namePath&q=(status eq \"draft\")",
      "rel": "self",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "https://<hostname>/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/B0A39B47122C4CE88A6CD52B90C15263?fields=namePath&q=(status eq \"draft\")",
      "rel": "canonical",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "https://<hostname>/content/management/api/v1.1/metadata-catalog/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/B0A39B47122C4CE88A6CD52B90C15263",
      "rel": "describedby",
      "method": "GET",
      "mediaType": "application/schema+json"
    }
  ],
  "status": "draft",
  "position": 3
}
 

Example 3:

Shows how to fetch the category and the optional fields namePath and idPath.

/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/B0A39B47122C4CE88A6CD52B90C15263?q=(status eq \"draft\")&fields=namePath,idPath

Response Body

{
  "id": "B0A39B47122C4CE88A6CD52B90C15263",
  "name": "C4",
  "description": "",
  "parentId": "D7969D6CA0D144AEA9CCA88BA6D2CF81",
  "namePath": "/C4",
  "idPath": "/B0A39B47122C4CE88A6CD52B90C15263",
  "children": {
    "href": "https://<hostname>/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories?fields=namePath,idPath&q=( parentId eq \"B0A39B47122C4CE88A6CD52B90C15263\" and  status eq \"draft\" )"
  },
  "links": [
    {
      "href": "https://<hostname>/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/B0A39B47122C4CE88A6CD52B90C15263?fields=namePath,idPath&q=(status eq \"draft\")",
      "rel": "self",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "https://<hostname>/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/B0A39B47122C4CE88A6CD52B90C15263?fields=namePath,idPath&q=(status eq \"draft\")",
      "rel": "canonical",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "https://<hostname>/content/management/api/v1.1/metadata-catalog/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/B0A39B47122C4CE88A6CD52B90C15263",
      "rel": "describedby",
      "method": "GET",
      "mediaType": "application/schema+json"
    }
  ],
  "status": "draft",
  "position": 3
}  

Example 4:

Shows how to retrieve the category and expand the field children. It expands inline a list of the category's direct children up to a maximum count of 10.

/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/35B41502F9A94113AC493C244794D2AC?q=(status eq \"draft\")&expand=children

Response Body

{
  "id": "35B41502F9A94113AC493C244794D2AC",
  "name": "C1",
  "description": "",
  "parentId": "D7969D6CA0D144AEA9CCA88BA6D2CF81",
  "children": {
    "hasMore": false,
    "offset": 0,
    "count": 3,
    "limit": 10,
    "items": [
      {
        "id": "C52EE14C1CB34A95ACC9CDC3CF8BE289",
        "name": "C1.1",
        "description": "",
        "status": "draft",
        "position": 0,
        "parentId": "35B41502F9A94113AC493C244794D2AC",
        "links": [
          {
            "href": "https://<hostname>/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/C52EE14C1CB34A95ACC9CDC3CF8BE289?q=( status eq \"draft\" )",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          }
        ]
      },
      {
        "id": "36C51840F39A436B8F64A6DC5BC4C3B7",
        "name": "C1.2",
        "description": "",
        "status": "draft",
        "position": 1,
        "parentId": "35B41502F9A94113AC493C244794D2AC",
        "links": [
          {
            "href": "https://<hostname>/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/36C51840F39A436B8F64A6DC5BC4C3B7?q=( status eq \"draft\" )",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          }
        ]
      },
      {
        "id": "D1C7F6E13A4A4AF4ABBF211635D6CB43",
        "name": "C1.3",
        "description": "",
        "status": "draft",
        "position": 2,
        "parentId": "35B41502F9A94113AC493C244794D2AC",
        "links": [
          {
            "href": "https://<hostname>/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/D1C7F6E13A4A4AF4ABBF211635D6CB43?q=( status eq \"draft\" )",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          }
        ]
      }
    ],
    "links": [
      {
        "href": "https://<hostname>/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories?q=( parentId eq \"35B41502F9A94113AC493C244794D2AC\" and  status eq \"draft\" )",
        "rel": "self",
        "method": "GET",
        "mediaType": "application/json"
      },
      {
        "href": "https://<hostname>/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories?q=( parentId eq \"35B41502F9A94113AC493C244794D2AC\" and  status eq \"draft\" )",
        "rel": "canonical",
        "method": "GET",
        "mediaType": "application/json"
      },
      {
        "href": "https://<hostname>/content/management/api/v1.1/metadata-catalog/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories",
        "rel": "describedby",
        "method": "GET",
        "mediaType": "application/schema+json"
      },
      {
        "href": "https://<hostname>/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories?offset=0&q=( parentId eq \"35B41502F9A94113AC493C244794D2AC\" and  status eq \"draft\" )",
        "rel": "first",
        "method": "GET",
        "mediaType": "application/json"
      },
      {
        "href": "https://<hostname>/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories?offset=0&q=( parentId eq \"35B41502F9A94113AC493C244794D2AC\" and  status eq \"draft\" )",
        "rel": "last",
        "method": "GET",
        "mediaType": "application/json"
      }
    ]
  },
  "links": [
    {
      "href": "https://<hostname>/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/35B41502F9A94113AC493C244794D2AC?q=(status eq \"draft\")&expand=children",
      "rel": "self",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "https://<hostname>/content/management/api/v1.1/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/35B41502F9A94113AC493C244794D2AC?q=(status eq \"draft\")&expand=children",
      "rel": "canonical",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "https://<hostname>/content/management/api/v1.1/metadata-catalog/taxonomies/D7969D6CA0D144AEA9CCA88BA6D2CF81/categories/35B41502F9A94113AC493C244794D2AC",
      "rel": "describedby",
      "method": "GET",
      "mediaType": "application/schema+json"
    }
  ],
  "status": "draft",
  "position": 0
}  

Example 5:

Retrieves the category identified by the category id 4136D8D1FD5C4241A3E08A42765D615C with default plus isSiteCategory fields from taxonomy with id AF6B75DBBCA244FC93166610EA2BA62A.

/content/management/api/v1.1/taxonomies/AF6B75DBBCA244FC93166610EA2BA62A/categories/4136D8D1FD5C4241A3E08A42765D615C?fields=isSiteCategory

Response Body

{
  "id": "4136D8D1FD5C4241A3E08A42765D615C",
  "name": "Site1_site_category",
  "description": "site category for site: Site1",
  "apiName": "sst-o-t-s",
  "position": 0,
  "parentId": "F54C934D081B4768B3A93A45C0E6955C",
  "isSiteCategory": true,
  "links": [
    {
      "href": "http://<hostname>/content/management/api/v1.1/taxonomies/AF6B75DBBCA244FC93166610EA2BA62A/categories/4136D8D1FD5C4241A3E08A42765D615C?fields=isSiteCategory",
      "rel": "self",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/taxonomies/AF6B75DBBCA244FC93166610EA2BA62A/categories/4136D8D1FD5C4241A3E08A42765D615C?fields=isSiteCategory",
      "rel": "canonical",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/metadata-catalog/taxonomies/AF6B75DBBCA244FC93166610EA2BA62A/categories/4136D8D1FD5C4241A3E08A42765D615C",
      "rel": "describedby",
      "method": "GET",
      "mediaType": "application/json"
    }
  ],
  "status": "promoted"
}
Back to Top