Sari la conținut

Actualizează un atribut în magazin

POST
/api/v3/item/modify/stores/{storeId}/attributes/{attributeId}
curl --request POST \
--url https://prod.store-management.glovo.alb.app.onlineservice.io/api/v3/item/modify/stores/example/attributes/example \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "price_impact": 1.5, "available": true }'
storeId
required
string
attributeId
required
string
Media typeapplication/json

The payload for update

object
price_impact

Prețul noului atribut în magazin. Dacă valoarea nu este prezentă sau este nulă, nu va fi actualizat.

number format: double
Example
1.5
available

Flag-ul indică dacă atributul este disponibil în magazin. Dacă valoarea nu este prezentă sau este null, nu va fi actualizat.

boolean
Example
true

Atribut actualizat cu succes

Media typeapplication/json
object
id

Unique identifier of the attribute within a store

string
name

Attribute name

string
selected_by_default

Specifies if the attribute should be selected by default when customizing the product associated

boolean
price

Attribute price

string
available

Specifies if the product is available to be purchased

boolean
error
string
Example
{
"id": "side1",
"name": "French fries",
"selected_by_default": true,
"price": "1.5",
"available": true
}

Payload sau parametri invalizi

Media type*/*
object
id

Unique identifier of the attribute within a store

string
Example
side1
name

Attribute name

string
Example
French fries
selected_by_default

Specifies if the attribute should be selected by default when customizing the product associated

boolean
Example
true
price

Attribute price

string
Example
1.5
available

Specifies if the product is available to be purchased

boolean
Example
true
error
string

Neautorizat

Media type*/*
object
id

Unique identifier of the attribute within a store

string
Example
side1
name

Attribute name

string
Example
French fries
selected_by_default

Specifies if the attribute should be selected by default when customizing the product associated

boolean
Example
true
price

Attribute price

string
Example
1.5
available

Specifies if the product is available to be purchased

boolean
Example
true
error
string

Eroare internă a serverului

Media type*/*
object
id

Unique identifier of the attribute within a store

string
Example
side1
name

Attribute name

string
Example
French fries
selected_by_default

Specifies if the attribute should be selected by default when customizing the product associated

boolean
Example
true
price

Attribute price

string
Example
1.5
available

Specifies if the product is available to be purchased

boolean
Example
true
error
string