Attach Digital File

POST {{baseUrl}}/products/:product/digital-files

This endpoint allows you to add digital files to a specific digital product by providing the ID of the product you want to attach these files to it in the product path parameter.

:::note - You can attach digital files only to digital products. - You can add only one digital file per request. :::

products.read_write- Products Read & Write

Request Body

[{"name"=>"file", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"file_name", "value"=>"<string>", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;status&quot;:&quot;\u003cnumber\u003e&quot;,&quot;success&quot;:&quot;\u003cboolean\u003e&quot;,&quot;data&quot;:{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;url&quot;:&quot;\u003cstring\u003e&quot;,&quot;size&quot;:&quot;\u003cnumber\u003e&quot;}}