API aberta · Produtos
Alterar fabricante
patch
/api/open/v1/manufacturers/{id}Em resumo
PATCH /api/open/v1/manufacturers/{id}- Precisa de chave
read_write. - Obrigatórios:
id,name. - Sucesso:
200.
AuthorizationstringheaderobrigatórioChave de API no formato Bearer ttw_live_<prefixo>_<segredo>, criada em Integrações → Chaves de API. Este endpoint precisa de chave read_write.
idstringobrigatórioId do registro (UUID).
Corpo
application/jsonnamestringobrigatórioNome.
1 a 120 caracteres
Resposta 200
application/jsonidstring<uuid>obrigatórioIdentificador único (UUID).
namestringobrigatórioNome.
productCountintegerobrigatórioQuantidade de produto.
-9007199254740991 a 9007199254740991
curl --request PATCH \
--url 'https://qa-tratow.ips.app.br/api/open/v1/manufacturers/{id}' \
--header 'Authorization: Bearer <chave>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Maria Lima"
}'{
"id": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",
"name": "Maria Lima",
"productCount": 1
}Os valores são ilustrativos.
