1. Home
  2. Knowledge Base
  3. WooCommerce Product Options
  4. Developer Documentation

How does WooCommerce Product Options work with the REST API?

WooCommerce Product Options uses the REST API to modify the product options and groups. There are 3 routes under the wc-product-options/v1 namespace that you can use:

file-upload:

This is used to upload files for the 'File Upload' filter type on the front end. You can pass these two parameters to this route in a 'POST' request:

  • option_id (int)
  • file (binary)

groups:

You can retrieve, create, update, delete, reorder, or duplicate the groups. For more information about the parameters and the requests, see the src/Rest/Routes/Group.php file.

options:

You can retrieve, create, delete, update, or reorder the options. For more information about the parameters and the requests, see the src/Rest/Routes/Option.php file.

Related Articles

If searching the knowledge base hasn't answered your question, please contact support.