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.

You can add one digital file only per request.

💡 Note

You can attach digital files to digital products only.

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;}}