POST

Set Customization Choices


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Sets a customization's choices. Any and all existing choices will be overridden.

Note: A choice cannot be overridden if it is assigned to one or more products.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Stores - all permissions
Manage Products
Manage v3 catalog
Customization write in v3 catalog
Product write in v3 catalog
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/stores/v3/customizations/{customizationId}/set-choices

Path Params
customizationIdstringRequired

Customization ID.

Body Params
choicesArray <Choice>RequiredminItems 1maxItems 100

Choices to set.


fieldsArray <string>maxItems 100

Fields to include in the response.

Supported values: ASSIGNED_PRODUCTS_COUNT

Response Object
customizationCustomization

Updated customization.

Sets choices to an existing customization

Sets given choices to an existing customization instead of their current ones

Request
cURL
Response
JSON
Errors
400Invalid Argument

There are 5 errors with this status code.

428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?