Search.../
  1. Home
  2. Getting Started
  3. Overview
Generate a test token to explore our APIs

Reset All Variant Data

Resets all variant information to default values (price = current product price; weight = current product weight; SKU = current product SKU; visibility = true).

Authorization

This endpoint requires an authorization header - pass the access token from the OAuth installation flow.

Permissions

This endpoint requires the Manage Products permission scope.

POST

https://www.wixapis.com/stores/v1/products/{id}/variants/resetToDefault

Path Params

NAME
TYPE
DESCRIPTION
id
Required

string

Product ID.

Response Object

Returns an empty object.

Status/Error Codes

The response will include an HTTP status code.

Was this helpful?

Request

curl

Copy Code
1curl -X POST \
2 'https://www.wixapis.com/stores/v1/products/1044e7e4-37d1-0705-c5b3-623baae212fd/variants/resetToDefault' \
3 --data-binary '{}' \
4 -H 'Content-Type: application/json' \
5 -H 'Authorization: <AUTH>'

Response

json

1
2{}