downloadable

Description

Downloadables are items configured directly in Foxy for users to purchase and download. When creating a downloadable, you'll also send the file directly. Additionally, the downloadable must have a item_category_uri of an item_category which is configured for downloaded item delivery.

To create a downloadable, you need to POST a file with the value being the downloadble file you want to create. Here is an example using curl:

You can also update an existing downloadable file using the file property, but you may also need to include the X-HTTP-Method-Override: PATCH header since our server expects a PATCH or a PUT when updating an existing resource. Here's an example using curl: