Content-Type
set to application/json
.
Typically you would use this method if you have a file stored in a cloud storage service such as Amazon S3.
Use the url
field in the body of the request to provide the URL to the file.
Content-Type
set to multipart/form-data
.
Use the file
field in the body of the request to upload the file.
Typically you would use this method if you have a file stored on a local machine or device.