[lightMode]
Attach Digital File
POST
/products/{product}/digital-files[updatedIn] 2 months ago
This endpoint allows you to add digital files to a specific digital product by passing the product
as a path parameter.
:::tip[Important]
- You can only attach digital files to digital products.
- You can only add one digital file per request.
:::
Request
[message.pathParameter]
product
integer
required
The Product ID. List of Product ID can be found here.
[message.bodyParameter]multipart/form-data
file
file
optional
The actual file to upload.
file_name
string
optional
The name of the file which will display to customers.
Request samples
[api.label.responses]
Attached Successfully(201)
Not Found(404)
Error Validation(422)
Attached Successfully
HTTP Code: 201
Content Type : JSONapplication/json
[updatedIn] 2 months ago