Skip to content

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

  • idstringRequired

    The digital product ID

Headers

  • X-Auth-TokenstringRequired

    API key for authentication

Request body

  • digital_productobjectRequired
    Show 8 child attributesHide child attributes
    • asset_idsarray of strings

      Replacement list of asset IDs. Fully replaces the current asset list.

    • upsert_alwaysboolean

      Whether to create a new copy of assets for each order.

    • custom_messagestring

      A custom message shown on the download page.

    • preorder_enabledboolean

      Whether this digital product is a preorder.

    • preorder_launch_datestring

      When preorder content becomes available. Required when preorder_enabled is true.

    • preorder_subjectstring

      Email subject for the preorder notification.

    • preorder_headingstring

      Heading shown while in preorder.

    • preorder_descriptionstring

      Description shown while in preorder.

Returns

The digital product object.

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"
    }
  }'
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"
  }
}