Pular para o conteúdo

Criar tag

POST
/api/seller/external/v1/tag
curl --request POST \
"https://api.spelt.com.br/api/seller/external/v1/tag" \
--header "Authorization: Bearer splt_live_SUA_CHAVE" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"architecto\",
\"color\": \"architecto\",
\"description\": \"Eius et animi quos velit et.\"
}"

Cria uma tag na conta. O nome não se repete: se já existir, a resposta é 400.

Media typeapplication/json
object
name
required

Nome da tag. Exemplo: VIP

string
color

Cor em hexadecimal. Exemplo: #FF5733

string
description

Para que a tag serve.

string
Media typeapplication/json
object
data
object
id
string
name
string
slug
string
color
string
description
string | null
Example
{
"data": {
"id": "01JA0000000000000000000060",
"name": "VIP",
"slug": "vip",
"color": "#FF5733",
"description": null
}
}
Media typeapplication/json
object
message
string
Example
{
"message": "Já existe uma tag com este nome."
}
Media typeapplication/json
object
message
string
errors
object
name
Array<string>
Example
{
"message": "Erro de validação.",
"errors": {
"name": [
"O campo name é obrigatório."
]
}
}