Attach Digital File
POST {{baseUrl}}/products/:product/digital-files
This endpoint allows you to add digital files to a specific digital product by passing the product
as a 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"=>nil, "datatype"=>"null"}, {"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"}}