Pular para o conteúdo principal
POST
Add a new category

Autorizações

api_access_token
string
header
obrigatório

Token de acesso do usuário (Perfil → Token de acesso). Dá acesso conforme o papel do usuário e age em nome dele.

Parâmetros de caminho

account_id
string
obrigatório

The numeric ID of the account

id
string
obrigatório

The slug identifier of the portal

Corpo

application/json
name
string

The name of the category

Exemplo:

"Category Name"

description
string

A description for the category

Exemplo:

"Category description"

position
integer

Category position in the portal list to sort

Exemplo:

1

slug
string

The category slug used in the URL

Exemplo:

"category-name"

locale
string

The locale of the category

Exemplo:

"en"

icon
string

The icon of the category as a string (emoji)

Exemplo:

"📚"

parent_category_id
integer

To define parent category, e.g product documentation has multiple level features in sales category or in engineering category.

Exemplo:

1

associated_category_id
integer

To associate similar categories to each other, e.g same category of product documentation in different languages

Exemplo:

2

Resposta

Success

id
integer
description
string

The text content.

locale
string
name
string
slug
string
position
integer
portal_id
integer
account_id
integer
associated_category_id
integer

To associate similar categories to each other, e.g same category of product documentation in different languages

parent_category_id
integer

To define parent category, e.g product documentation has multiple level features in sales category or in engineering category.