Attach Digital File

POST {{baseUrl}}/products/:product/digital-files

You can 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.

OAuth Scopes


products.read_write

Request Body

{"file"=>"document.pdf", "file_name"=>"Great document"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{"status":201,"success":true,"data":{"name":"YDKLARAVEL","url":"https://drive.google.com/file/d/1f1PJKAGj_09LH7jZTi0X7rydbR_XGvnN/view?usp=sharing","size":297}}