/api/user/products/{id}/statusapplication/jsonapi_token| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
x-api-key | string | Sim | Token de autenticação API Key |
User-Agent | AtivoB2B/1.0 | Sim |
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
id | string | Sim | ID do produto a ser atualizado. |
Exemplo de ID: e653ca6c-479c-4aab-8935-6f542e97ead0
application/json){
"status": "INACTIVE"
}curl --location --request PUT '/api/user/products/e653ca6c-479c-4aab-8935-6f542e97ead0/status' \
--header 'x-api-key: {Token}' \
--header 'User-Agent: AtivoB2B/1.0' \
--header 'Content-Type: application/json' \
--data-raw '{
"status": "string"
}'{
"data": {
"id": "0",
"title": "Produto X",
"description": "desc",
"shippingType": "DIGITAL",
"status": "INACTIVE",
"unitPrice": 0,
"maxInstallments": 0,
"accessLink": "X",
"additionalInfo": "case",
"images": [
{
"id": "0",
"key": "0.jpg",
"url": "X"
}
],
"paymentMethod": {
"PIX": false,
"BOLETO": true,
"CREDIT_CARD": false
},
"sellerId": "0",
"uniqueProductLinkId": "0",
"createdAt": "2025-04-09T21:44:23.038Z",
"updatedAt": "2025-04-17T15:10:43.631Z",
"deletedAt": null
},
"message": "O status do produto foi atualizado com sucesso",
"status": 200,
"error": null
}