API reference · SKU Priority

Update Product Priority

PUThttps://api.sandbox.cws.digital/searchSkuPriority

Description

Changes the priority level of a product that already has a priority in your store.

The product is identified in the body, as on creation — not by the record id.

How to identify the product

Send the three fields together: partCode, brand and composition. None of them identifies the product alone.

composition accepts UNITARY, PAIR, KIT, WARRANTY and SET, always in uppercase.

If any of the three is missing, or if the product is not found, the response is 404 with Sku não encontrado.

Request body

Content-Typeapplication/json
Edit the body with
FieldTypeRequiredDescriptionValue
priorityLevelintegerYes

New level, from 1 to 5.

partCodestringYes

Product code at the manufacturer. See How to identify the product.

brandstringYes

Product brand.

compositionstringYes

Product composition.

Allowed values:UNITARYPAIRKITWARRANTYSET

Responses

  • 401

    Missing, malformed or expired token.

Try it

Sandbox

Language

Credentials

Access token: saved in this tab and used on every endpoint.

Each token only reaches the partner's own data and that of the branches with an authorized link.

Don't have sandbox credentials yet? See how to request them

Request

cURL
curl --request PUT \
  --url 'https://api.sandbox.cws.digital/searchSkuPriority' \
  --header 'Authorization: Bearer <access_token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "priorityLevel": 3,
  "partCode": "TESTE-API-001",
  "brand": "Bosch",
  "composition": "UNITARY"
}'

Response

Click Try it to see the real response here, or pick a documented example: