Nuashonraigh — Táirgí
Athraigh táirgí, praghsanna agus sonraí foilseacháin atá ann cheana féin.
PATCH
/api/v1/products/{product_id}Iarratas cURL
curl --disable --globoff --fail-with-body --silent --show-error \
--proto '=https' --connect-timeout 5 --max-time 30 \
--request PATCH \
--url https://shop.onshopently.com/api/v1/products/example \
--header 'Authorization: Bearer EXAMPLE_ACCESS_TOKEN' \
--header 'Idempotency-Key: example-update_product_api_v1_products__product_id__patch' \
--header 'Content-Type: application/json' \
--data-raw '{"expected_version":1,"sku":"example"}'
Freagra
{
"data": {
"deleted": false,
"id": "example",
"version": 1
},
"meta": {
"request_id": "example"
}
}
Ceadanna riachtanacha
- Fíordheimhniú
- Comhartha rochtana
- Ar fáil ó
- STANDARD
- Cead na heochrach
- Cuir táirgí in eagar
catalog.product:update
Agus malairtí á n-athrú agat freisin
Má sheolann tú an réimse variant_value_ids, cuir leis an eochair:
Má sheolann tú an réimse variants_enabled, cuir leis an eochair: