# Creation of parametric category definition

Creates a new parametric category definition for a given category and set of parameters.

The definition specifies which parameters are used to generate parametric category pages for the specified category.
You can specify 1 to 4 parameters. Each parameterCode must exist and must be unique within the request.
Only one definition with the same set of parameters can exist per category.

The "Advanced SEO" module must be active to use this endpoint.

Endpoint: POST /api/parametric-categories-definition
Version: 1.0.0
Security: shoptetAccessToken, shoptetPrivateApiToken

## Header parameters:

  - `Content-Type` (string, required)

## Request fields (application/json):

  - `data` (object, required)

  - `data.categoryGuid` (string, required)
    Unique identifier of the category for which the parametric category parent is being created

  - `data.parameters` (array, required)
    List of parameter codes that define the parametric category parent (1–4 parameters)

  - `data.parameters.parameterCode` (string, required)
    Code of the parameter

## Response 201 fields (application/json):

  - `data` (object,null, required)

  - `errors` (array,null, required)

  - `errors.errorCode` (string, required)
    Short text error identification

  - `errors.message` (string, required)
    Descriptive error message

  - `errors.instance` (string, required)
    Identification of the entity referenced

  - `metadata` (object, required)

  - `metadata.requestId` (string, required)
    Request identifier. Useful for logging/reporting purposes.

## Response 403 fields (application/json):

  - `data` (object,null)

  - `errors` (array,null)

  - `metadata` (object)

## Response 422 fields (application/json):

  - `data` (object,null)

  - `errors` (array,null)

  - `metadata` (object)


