Attach Digital File
POST
/products/{product}/digital-filesThis 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
The Product ID. List of Product ID can be found here.
The actual file to upload.
The name of the file which will display to customers.
Request samples
[api.label.responses]
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
The name or title of a digital file associated with a product.
A web address or link that points to a specific digital file associated with a product.
Product digital file size.
{
"status": 201,
"success": true,
"data": {
"name": "YDKLARAVEL",
"url": "https://drive.google.com/file/d/1f1PJKAGj_09LH7jZTi0X7rydbR_XGvnN/view?usp=sharing",
"size": 297
}
}