Skip to main content

Create Category

POST 

/categories

Use this endpoint to create a single category. If a category is successfully created, the response will include the category id.

Fields

NameRequired
namesyes
descriptionsno
shortDescriptionsno
languageyes
parentyes
sourceIdno
sourceonly when sourceId is provided

Request

Body

    descriptions

    object[]

  • Array [

  • language string
    value string
  • ]

  • language string

    name

    object[]

  • Array [

  • language string
    value string
  • ]

  • parent

    object

    id number

    shortDescriptions

    object[]

  • Array [

  • language string
    value string
  • ]

  • source string
    sourceId string

Responses

Create Category - 200

Response Headers

  • Alt-Svc

    string

  • Via

    string

  • alt-svc

    string

  • content-length

    string

  • date

    string

  • return-format

    string

  • server

    string

  • x-request-id

    string

Schema

    data

    object

    descriptions

    object[]

  • Array [

  • language string
    value string
  • ]

  • id number
    language string

    names

    object[]

  • Array [

  • language string
    value string
  • ]

  • parent

    object

    id number

    shortDescriptions

    object[]

  • Array [

  • language string
    value string
  • ]

  • source string
    sourceId string
    messages string[]
    total number
Loading...