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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"status":"\u003cnumber\u003e","success":"\u003cboolean\u003e","data":{"name":"\u003cstring\u003e","url":"\u003cstring\u003e","size":"\u003cnumber\u003e"}}