Update Digital Product
Update the settings or assets of an existing digital product.
Last updated
Path parameters
Section titled “Path parameters”-
id(string, path, required)The digital product’s unique identifier (UUID).
Request body
Section titled “Request body”-
digital_product(object, required)Digital product fields:
-
asset_ids(array)Replacement list of asset UUIDs. Fully replaces the current asset list — omit this field entirely to leave the asset list unchanged.
-
upsert_always(boolean)Whether to create a new copy of assets for each order.
-
custom_message(string)Custom message shown on the download page.
-
preorder_enabled(boolean)Whether this is a preorder product. Requires
preorder_launch_dateandcustom_messagewhentrue. -
preorder_launch_date(string)ISO 8601 datetime when preorder content becomes available. Must be at least 2 hours in the future.
-
preorder_subject(string)Email subject for the preorder notification.
-
preorder_heading(string)Heading shown on the download page while in preorder.
-
preorder_description(string)Description shown on the download page while in preorder.
-
Response
Section titled “Response”Returns the updated digital product object.
Example request
curl -X PATCH 'https://app.filemonk.io/api/v1/external/digital_products/b2c3d4e5-f6a7-8901-bcde-f12345678901' \ -H 'X-Auth-Token: fm_api_key_your_key_here' \ -H 'Content-Type: application/json' \ -d '{ "digital_product": { "asset_ids": [ "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "c3d4e5f6-a7b8-9012-cdef-123456789012" ] } }'curl -X PATCH 'https://app.filemonk.io/api/v1/external/digital_products/b2c3d4e5-f6a7-8901-bcde-f12345678901' \ -H 'X-Auth-Token: fm_api_key_your_key_here' \ -H 'Content-Type: application/json' \ -d '{ "digital_product": { "preorder_enabled": true, "preorder_launch_date": "2026-05-01T09:00:00Z", "custom_message": "Your download will be available on launch day!", "preorder_heading": "Coming Soon", "preorder_description": "Your files will be ready on May 1st." } }'const productId = 'b2c3d4e5-f6a7-8901-bcde-f12345678901';const response = await fetch( `https://app.filemonk.io/api/v1/external/digital_products/${productId}`, { method: 'PATCH', headers: { 'X-Auth-Token': 'fm_api_key_your_key_here', 'Content-Type': 'application/json' }, body: JSON.stringify({ digital_product: { asset_ids: [ 'a1b2c3d4-e5f6-7890-abcd-ef1234567890', 'c3d4e5f6-a7b8-9012-cdef-123456789012' ] } }) });const data = await response.json();product_id = 'b2c3d4e5-f6a7-8901-bcde-f12345678901'response = requests.patch( f'https://app.filemonk.io/api/v1/external/digital_products/{product_id}', headers={'X-Auth-Token': 'fm_api_key_your_key_here'}, json={ 'digital_product': { 'asset_ids': [ 'a1b2c3d4-e5f6-7890-abcd-ef1234567890', 'c3d4e5f6-a7b8-9012-cdef-123456789012' ] } })data = response.json()Example response
{ "digital_product": { "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901", "shopify_product_id": 8847261098265, "shopify_variant_id": null, "assets": [ { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "type": "external", "name": "Photoshop Brushes Pack", "filename": "brushes-pack-v2.zip", "external_url": "https://cdn.example.com/files/brushes-pack-v2.zip", "content_type": "application/zip", "byte_size": 0, "created_at": "2026-03-01T14:30:00Z" }, { "id": "c3d4e5f6-a7b8-9012-cdef-123456789012", "type": "external", "name": "Bonus Textures Pack", "filename": "bonus-textures.zip", "external_url": "https://cdn.example.com/files/bonus-textures.zip", "content_type": "application/zip", "byte_size": 0, "created_at": "2026-03-10T08:00:00Z" } ], "upsert_always": false, "custom_message": "Thanks for your purchase!", "preorder_enabled": false, "preorder_launch_date": null, "preorder_subject": null, "preorder_heading": null, "preorder_description": null, "created_at": "2026-03-05T10:00:00Z", "updated_at": "2026-04-08T10:00:00Z" }}{ "error": "Digital product not found"}{ "errors": ["Preorder launch date must be in the future"]}Thanks for letting us know.
Still stuck? Ask Quinn or chat with support