Skip to content

Update an attribute in the store

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

The new price of the attribute in the store. If the value is not present or is null, it will not be updated.

number format: double
Example
1.5
available

The flag indicates whether the attribute is available in the store. If the value is not present or is null, it will not be updated.

boolean
Example
true

Attribute updated successfully

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
}

Invalid payload or parameters

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

Unauthorized

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

Internal server error

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