Demander API - Product Attachments
This article is part of the REST Integration API documentation.
Documentation to consult, insert, update and delete product attachments.
Consultation
Section titled “Consultation”Lists a product’s attachments.
Rota: {host}/public/v1/anexos-do-produto?codProduto={codProduto}Método: GETReturn:
[ { "codIntegracao": "ANX001", "codProduto": "PROD-100", "tipoAnexo": "imagem", "titulo": "Foto principal", "descricao": "Imagem da frente do produto", "nomeArquivo": "imagem_frente.jpg", "urlExterna": null, "ordem": 1, "dataAlteracao": "2026-07-15 10:00:00" }]Insert or update
Section titled “Insert or update”POST upsert by key codIntegracao.
Rota: {host}/public/v1/anexos-do-produtoMétodo: POSTBody: form/data| Property | Type | Size | Mandatory | Description |
|---|---|---|---|---|
| codIntegracao | string | 15 | ✓ | Unique identifier of the attachment in the ERP. Upsert key. |
| codProduto | string | 50 | ✓ | Product code to which the attachment belongs. |
| codProdutoGrade | string | 30 | Product grade code (table 25). | |
| tipoAnexo | string | 20 | ✓ | Options: video, imagem, documento, url. |
| title | string | 255 | Title of the attachment (e.g.: Manual do Produto). |
|
| description | string | 2000 | Description of the content or purpose of the attachment. | |
| nomeArquivo | string | 255 | ✓ | Name of the file in the download, with extension. Optional when tipoAnexo is url. |
| metodoArmazenamento | int | ✓ | 1 — upload to Demander (arquivo or urlExterna for copying). 2 — external storage (requires urlExterna). |
|
| urlExterna | string | 255 | Public URL of the file. Mandatory if you do not send arquivo, or when metodoArmazenamento=2. Do not inform together with arquivo. |
|
| file | file | Multipart file. Used with metodoArmazenamento=1. Maximum 100 MB. Do not inform together with urlExterna. |
||
| order | int | Attachment display order. |
Return:
{ "mensagem": "Anexo do produto criado com sucesso.", "codIntegracao": "ANX001"}Delete
Section titled “Delete”Removes the attachment.
Rota: {host}/public/v1/anexos-do-produto?codIntegracao={codIntegracao}Método: DELETEReturn:
{ "mensagem": "Registro excluído com sucesso."}