Skip to main content

Add Classification

POST 

/sites/:siteId/classifications

Add Classification

Request

Path Parameters

    siteId stringrequired

    Site Identifier

Body

required

    classification

    object

    name string

    Name of Classification

    attributes

    object

    compositeKeys

    object[]

    List of Composite Keys

  • Array [

  • attributeKeys string[]
  • ]

  • required

    object[]

    List of Required Attributes

  • Array [

  • minNumberOfValues number

    The minimum number of attribute values

    maxNumberOfValues number

    The maximum number of attribute values

    attributeKey string
    defaultValue string

    Default value

    defaultValues string[]

    Default values

    allowedValues string[]

    Only valid string values

  • ]

  • optional

    object[]

    List of Optional Attribute

  • Array [

  • minNumberOfValues number

    The minimum number of attribute values

    maxNumberOfValues number

    The maximum number of attribute values

    attributeKey string
    allowedValues string[]

    Only valid string values

  • ]

  • allowAdditionalAttributes boolean
    Default value: true

Responses

200 OK

Response Headers

  • Access-Control-Allow-Origin

    string

  • Access-Control-Allow-Methods

    string

  • Access-Control-Allow-Headers

    string

Schema

    classificationId string

    Classification Identifier

Loading...