Update a digital product
PATCH
/digital_products/{id}Costs 2 rate-limit points · Rate limits
Update the settings or assets of an existing digital product. To replace the
asset list, provide a new asset_ids array: this fully replaces all currently
linked assets. Omit asset_ids to leave the asset list unchanged.
Path parameters
idstringRequiredThe digital product ID
Headers
X-Auth-TokenstringRequiredAPI key for authentication
Request body
digital_productobjectRequiredShow 8 child attributesHide child attributes
asset_idsarray of stringsReplacement list of asset IDs. Fully replaces the current asset list.
upsert_alwaysbooleanWhether to create a new copy of assets for each order.
custom_messagestringA custom message shown on the download page.
preorder_enabledbooleanWhether this digital product is a preorder.
preorder_launch_datestringWhen preorder content becomes available. Required when
preorder_enabledistrue.preorder_subjectstringEmail subject for the preorder notification.
preorder_headingstringHeading shown while in preorder.
preorder_descriptionstringDescription shown while in preorder.
Returns
Errors
404
Resource not found
422
Validation failed
PATCH/digital_products/{id}
curl -X PATCH "https://app.filemonk.io/api/v1/external/digital_products/{id}" \
-H "X-Auth-Token: $FILEMONK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"digital_product": {
"asset_ids": [
"3e84eb8d-e1d9-4e92-a4b2-a419c7f1122f"
],
"upsert_always": true,
"custom_message": "string",
"preorder_enabled": true,
"preorder_launch_date": "2026-01-15T09:30:00Z",
"preorder_subject": "string",
"preorder_heading": "string",
"preorder_description": "string"
}
}'const res = await fetch("https://app.filemonk.io/api/v1/external/digital_products/{id}", {
method: "PATCH",
headers: {
"X-Auth-Token": process.env.FILEMONK_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"digital_product": {
"asset_ids": [
"3e84eb8d-e1d9-4e92-a4b2-a419c7f1122f"
],
"upsert_always": true,
"custom_message": "string",
"preorder_enabled": true,
"preorder_launch_date": "2026-01-15T09:30:00Z",
"preorder_subject": "string",
"preorder_heading": "string",
"preorder_description": "string"
}
}),
});
const data = await res.json();import os
import requests
res = requests.patch(
"https://app.filemonk.io/api/v1/external/digital_products/{id}",
headers={"X-Auth-Token": os.environ["FILEMONK_API_KEY"]},
json={
"digital_product": {
"asset_ids": [
"3e84eb8d-e1d9-4e92-a4b2-a419c7f1122f"
],
"upsert_always": True,
"custom_message": "string",
"preorder_enabled": True,
"preorder_launch_date": "2026-01-15T09:30:00Z",
"preorder_subject": "string",
"preorder_heading": "string",
"preorder_description": "string"
}
},
)
data = res.json()require "net/http"
require "json"
uri = URI("https://app.filemonk.io/api/v1/external/digital_products/{id}")
req = Net::HTTP::Patch.new(uri, "X-Auth-Token" => ENV["FILEMONK_API_KEY"], "Content-Type" => "application/json")
req.body = {
digital_product: {
asset_ids: [
"3e84eb8d-e1d9-4e92-a4b2-a419c7f1122f"
],
upsert_always: true,
custom_message: "string",
preorder_enabled: true,
preorder_launch_date: "2026-01-15T09:30:00Z",
preorder_subject: "string",
preorder_heading: "string",
preorder_description: "string"
}
}.to_json
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |http| http.request(req) }
data = JSON.parse(res.body)Response
{
"digital_product": {
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"shopify_product_id": 8847261098265,
"shopify_variant_id": 46012345678921,
"assets": [
{
"id": "3e84eb8d-e1d9-4e92-a4b2-a419c7f1122f",
"type": "internal",
"name": "string",
"filename": "string",
"external_url": "https://example.com",
"content_type": "string",
"byte_size": 1,
"created_at": "2026-01-15T09:30:00Z"
}
],
"upsert_always": false,
"custom_message": "Thank you for your purchase!",
"preorder_enabled": false,
"preorder_launch_date": "2026-01-15T09:30:00Z",
"preorder_subject": "string",
"preorder_heading": "string",
"preorder_description": "string",
"created_at": "2026-01-15T09:30:00Z",
"updated_at": "2026-01-15T09:30:00Z"
}
}{
"error": "API key is required"
}{
"error": "Resource not found"
}No body
No body