curl --request PUT \
--url https://api.virtual.fit/vfr/manage/sites/{site_id}/products/{product_id}/enabled \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": false
}
'{
"product": {}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}API reference
Enable or disable a product
Change whether a synced product is available in the fitting room without deleting it.
PUT
https://api.virtual.fit
/
vfr
/
manage
/
sites
/
{site_id}
/
products
/
{product_id}
/
enabled
curl --request PUT \
--url https://api.virtual.fit/vfr/manage/sites/{site_id}/products/{product_id}/enabled \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": false
}
'{
"product": {}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Keep the virtual.fit API key on your server.
Path Parameters
Custom JavaScript site ID from virtual.fit.
Stable, case-sensitive identity that remains unchanged when the product's title, URL, options, variants, price, or media change. URL-encode it in the request path.
Maximum string length:
255Body
application/json
Whether the product can use the fitting room.
Response
Product state updated.
Updated fitting-room product projection.