Skip to main content
PATCH
/
listings
/
{id}
/
product
cURL
curl --request PATCH \
  --url https://api.example.com/listings/{id}/product \
  --header 'Content-Type: application/json' \
  --data '
{
  "productId": "<string>"
}
'
{
  "id": "e4b6d4e8-8e6d-41da-abdb-8fc358a9e7f1",
  "productId": "cffbca85-da89-4b2a-aecf-31422abcb34a",
  "title": "Celular Smartphone Top de Linha"
}

Path

id
string
required
UUID isolado do Anúncio.

Body

productId
string
required
UUID do produto mestre ao qual este anúncio irá amarrar estoque e precificação na governança do Hub.

Response

{
  "id": "e4b6d4e8-8e6d-41da-abdb-8fc358a9e7f1",
  "productId": "cffbca85-da89-4b2a-aecf-31422abcb34a",
  "title": "Celular Smartphone Top de Linha"
}

Path Parameters

id
string
required

Body

application/json
productId
string
required

ID of the internal product to link

Response

200 - undefined