curl --request POST \
--url https://api.myscalev.com/v3/variants/{variant_id}/digital-product-files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file'{
"content_type": "<string>",
"id": 123,
"name": "<string>",
"size_in_bytes": 123,
"url": "<string>"
}Requires the product:update machine scope.
curl --request POST \
--url https://api.myscalev.com/v3/variants/{variant_id}/digital-product-files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file'{
"content_type": "<string>",
"id": 123,
"name": "<string>",
"size_in_bytes": 123,
"url": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
File upload
Digital product file created successfully