Create a taxonomy

post

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

with given payload. The field shortName must be unique and it will be auto-generated by the system if no value is provided. The system managed category properties such as synonyms, keywords and relatedCategories will be assigned to the taxonomy by default on creation.

Request

Supported Media Types
Query Parameters
Header Parameters
Body ()
Creates a taxonomy with the given information in the payload. The fields id, createdBy, createdDate, updatedBy, updatedDate, status, version, availableStates, publishedChannels, categoryProperties and links will be ignored even if given in the payload.
Root Schema : Taxonomy
Type: object
Taxonomy
Show Source
Nested Schema : availableStates
Type: array
List all states of the Taxonomy. This is an optional property and is only returned if requested in the fields parameter. It is ignored in post/put requests.
Show Source
Nested Schema : ItemSubResourceListCategoryPropertyDefinition
Type: object
Item SubResource.
Show Source
Nested Schema : date
Type: object
date
Show Source
Nested Schema : customProperties
Type: object
Additional Properties Allowed
Show Source
Custom properties of the Taxonomy. This consists of a name value pairs defined by the user. Single entries cannot be updated, the entire list of custom properties have to be provided to update entries.
Nested Schema : publishedChannels
Type: array
Read Only: true
Taxonomy published channels.
Show Source
Nested Schema : TaxonomyStatus
Type: object
TaxonomyStatus
Show Source
Nested Schema : jobs
Type: array
Show Source
Nested Schema : TaxonomyJobInfo
Type: object
TaxonomyJobInfo
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : CategoryPropertyDefinition
Type: object
Category Property Definition
Show Source
Nested Schema : defaultValues
Type: array
Default values for the property.
Show Source
Nested Schema : PropertySettingsBean
Type: object
Show Source
Nested Schema : PropertySettingsCaasBean
Type: object
Show Source
Nested Schema : customValidators
Type: array
Custom validators for the property value.
Show Source
Nested Schema : PropertySettingsEditorBean
Type: object
Show Source
Nested Schema : PropertySettingsValueCountRangeBean
Type: object
Show Source
Nested Schema : PropertySettingsValidatorBean
Type: object
Show Source
Nested Schema : options
Type: object
Additional Properties Allowed
Show Source
Validator details.
Nested Schema : additionalProperties
Type: object
Nested Schema : options
Type: object
Additional Properties Allowed
Show Source
Options of the property value.
Nested Schema : additionalProperties
Type: object
Nested Schema : ChannelInTaxonomy
Type: object
ChannelInTaxonomy
Show Source
Back to Top

Response

Supported Media Types

201 Response

Created.
Body ()
Root Schema : Taxonomy
Type: object
Taxonomy
Show Source
Nested Schema : availableStates
Type: array
List all states of the Taxonomy. This is an optional property and is only returned if requested in the fields parameter. It is ignored in post/put requests.
Show Source
Nested Schema : ItemSubResourceListCategoryPropertyDefinition
Type: object
Item SubResource.
Show Source
Nested Schema : date
Type: object
date
Show Source
Nested Schema : customProperties
Type: object
Additional Properties Allowed
Show Source
Custom properties of the Taxonomy. This consists of a name value pairs defined by the user. Single entries cannot be updated, the entire list of custom properties have to be provided to update entries.
Nested Schema : publishedChannels
Type: array
Read Only: true
Taxonomy published channels.
Show Source
Nested Schema : TaxonomyStatus
Type: object
TaxonomyStatus
Show Source
Nested Schema : jobs
Type: array
Show Source
Nested Schema : TaxonomyJobInfo
Type: object
TaxonomyJobInfo
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : CategoryPropertyDefinition
Type: object
Category Property Definition
Show Source
Nested Schema : defaultValues
Type: array
Default values for the property.
Show Source
Nested Schema : PropertySettingsBean
Type: object
Show Source
Nested Schema : PropertySettingsCaasBean
Type: object
Show Source
Nested Schema : customValidators
Type: array
Custom validators for the property value.
Show Source
Nested Schema : PropertySettingsEditorBean
Type: object
Show Source
Nested Schema : PropertySettingsValueCountRangeBean
Type: object
Show Source
Nested Schema : PropertySettingsValidatorBean
Type: object
Show Source
Nested Schema : options
Type: object
Additional Properties Allowed
Show Source
Validator details.
Nested Schema : additionalProperties
Type: object
Nested Schema : options
Type: object
Additional Properties Allowed
Show Source
Options of the property value.
Nested Schema : additionalProperties
Type: object
Nested Schema : ChannelInTaxonomy
Type: object
ChannelInTaxonomy
Show Source

400 Response

Bad request.

403 Response

Forbidden.

500 Response

Internal server error.
Back to Top

Examples

The following examples show how to create taxonomies by submitting a POST request on the REST resource using cURL:

curl -X POST -H 'Content-Type: application/json' -H 'X-Requested-With: XMLHttpRequest' 'https://host:port/content/management/api/v1.1/taxonomies'

Example 1:

This example shows how to create a taxonomy with a given name.

Note:

The shortName is generated from the first three characters excluding spaces.
/content/management/api/v1.1/taxonomies

Request Body

{
  "name": "New Taxonomy"
}

Example 2:

This example shows how to create a taxonomy with a given name and the generated short name Tax.

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

Request Body

{
  "name": "New Taxonomy",
  "shortName": "TAX"
}

Example 3:

This example shows how to create a taxonomy with a given name and a custom property.

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

Request Body

{
   "name": "New Taxonomy",
   "customProperties": {
         "property 1": "value 1"
        }
}

Example 4:

This example shows how to create a taxonomy with a given name, short name, and two custom properties.

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

Request Body

{
   "name": "New Taxonomy",
   "shortName": "SRT"
   "customProperties": {
          "property 1": "value 1",
          "property 2": "value 2"
          }
}
Back to Top