Atualizar coleção
curl --request PATCH \
--url https://apiv3.usecorvex.com.br/api/v1/categories/{categoryId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Store-Id: <x-store-id>' \
--data '
{
"name": "Camisetas",
"slug": "camisetas",
"description": "Coleção de camisetas.",
"parentId": null,
"image": "https://cdn.example.com/colecao-camisetas.png",
"position": 1,
"active": true
}
'const options = {
method: 'PATCH',
headers: {
'X-Store-Id': '<x-store-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Camisetas',
slug: 'camisetas',
description: 'Coleção de camisetas.',
parentId: null,
image: 'https://cdn.example.com/colecao-camisetas.png',
position: 1,
active: true
})
};
fetch('https://apiv3.usecorvex.com.br/api/v1/categories/{categoryId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apiv3.usecorvex.com.br/api/v1/categories/{categoryId}"
payload = {
"name": "Camisetas",
"slug": "camisetas",
"description": "Coleção de camisetas.",
"parentId": None,
"image": "https://cdn.example.com/colecao-camisetas.png",
"position": 1,
"active": True
}
headers = {
"X-Store-Id": "<x-store-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"category": {
"id": "44444444-4444-4444-8444-444444444444",
"storeId": "11111111-1111-4111-8111-111111111111",
"name": "Camisetas",
"slug": "camisetas",
"description": "Coleção de camisetas.",
"parentId": null,
"image": null,
"position": 1,
"active": true,
"productCount": 1,
"childrenCount": 0,
"createdAt": "2026-09-24T14:00:00.000Z",
"updatedAt": "2026-09-24T14:00:00.000Z"
}
}
}{
"success": false,
"error": {
"message": "Categoria pai não encontrada",
"code": "VALIDATION_ERROR"
},
"meta": {
"timestamp": "2026-09-24T14:00:00.000Z",
"status": 400
}
}{
"success": false,
"error": {
"message": "Esta rota exige uma API Key. Use Authorization: Bearer cvx_live_...",
"code": "AUTH_API_KEY_REQUIRED"
},
"meta": {
"timestamp": "2026-09-24T14:00:00.000Z",
"status": 401
}
}{
"success": false,
"error": {
"message": "Sua API Key não tem o escopo necessário para esta operação.",
"code": "AUTH_SCOPE_DENIED"
},
"meta": {
"timestamp": "2026-09-24T14:00:00.000Z",
"status": 403
}
}{
"success": false,
"error": {
"message": "Categoria não encontrada",
"code": "RESOURCE_NOT_FOUND"
},
"meta": {
"timestamp": "2026-09-24T14:00:00.000Z",
"status": 404
}
}{
"success": false,
"error": {
"message": "Já existe uma categoria com este slug nesta loja",
"code": "DUPLICATE_ENTRY"
},
"meta": {
"timestamp": "2026-09-24T14:00:00.000Z",
"status": 409
}
}{
"success": false,
"message": "Muitas requisições. Tente novamente em instantes.",
"error": "RATE_LIMITED",
"retryAfter": 12
}Coleções
Atualizar coleção
PATCH
/
api
/
v1
/
categories
/
{categoryId}
Atualizar coleção
curl --request PATCH \
--url https://apiv3.usecorvex.com.br/api/v1/categories/{categoryId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Store-Id: <x-store-id>' \
--data '
{
"name": "Camisetas",
"slug": "camisetas",
"description": "Coleção de camisetas.",
"parentId": null,
"image": "https://cdn.example.com/colecao-camisetas.png",
"position": 1,
"active": true
}
'const options = {
method: 'PATCH',
headers: {
'X-Store-Id': '<x-store-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Camisetas',
slug: 'camisetas',
description: 'Coleção de camisetas.',
parentId: null,
image: 'https://cdn.example.com/colecao-camisetas.png',
position: 1,
active: true
})
};
fetch('https://apiv3.usecorvex.com.br/api/v1/categories/{categoryId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apiv3.usecorvex.com.br/api/v1/categories/{categoryId}"
payload = {
"name": "Camisetas",
"slug": "camisetas",
"description": "Coleção de camisetas.",
"parentId": None,
"image": "https://cdn.example.com/colecao-camisetas.png",
"position": 1,
"active": True
}
headers = {
"X-Store-Id": "<x-store-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"category": {
"id": "44444444-4444-4444-8444-444444444444",
"storeId": "11111111-1111-4111-8111-111111111111",
"name": "Camisetas",
"slug": "camisetas",
"description": "Coleção de camisetas.",
"parentId": null,
"image": null,
"position": 1,
"active": true,
"productCount": 1,
"childrenCount": 0,
"createdAt": "2026-09-24T14:00:00.000Z",
"updatedAt": "2026-09-24T14:00:00.000Z"
}
}
}{
"success": false,
"error": {
"message": "Categoria pai não encontrada",
"code": "VALIDATION_ERROR"
},
"meta": {
"timestamp": "2026-09-24T14:00:00.000Z",
"status": 400
}
}{
"success": false,
"error": {
"message": "Esta rota exige uma API Key. Use Authorization: Bearer cvx_live_...",
"code": "AUTH_API_KEY_REQUIRED"
},
"meta": {
"timestamp": "2026-09-24T14:00:00.000Z",
"status": 401
}
}{
"success": false,
"error": {
"message": "Sua API Key não tem o escopo necessário para esta operação.",
"code": "AUTH_SCOPE_DENIED"
},
"meta": {
"timestamp": "2026-09-24T14:00:00.000Z",
"status": 403
}
}{
"success": false,
"error": {
"message": "Categoria não encontrada",
"code": "RESOURCE_NOT_FOUND"
},
"meta": {
"timestamp": "2026-09-24T14:00:00.000Z",
"status": 404
}
}{
"success": false,
"error": {
"message": "Já existe uma categoria com este slug nesta loja",
"code": "DUPLICATE_ENTRY"
},
"meta": {
"timestamp": "2026-09-24T14:00:00.000Z",
"status": 409
}
}{
"success": false,
"message": "Muitas requisições. Tente novamente em instantes.",
"error": "RATE_LIMITED",
"retryAfter": 12
}Authorizations
API Key no formato cvx_live_..., criada no painel Corvex. Não use JWT de sessão nem x-api-key.
Headers
UUID da loja. A chave precisa ter esta loja autorizada.
Path Parameters
Body
application/json
Nome da coleção.
Required string length:
1 - 255Opcional. Se omitir, a API gera a partir do nome.
Texto livre. null para limpar.
Coleção pai. null = raiz.
URL da imagem.
Ordem na listagem.
Required range:
x >= 0false oculta a coleção.
Response
Coleção atualizada.