/api/media/file

Uploads file to BellaDati Media Gallery.

Resource Information

Request Parameters


Parameters

Detail

Type

Example

name

Name of the saved file

Textfile 1
fileFile used for uploadFileupload.pdf

Sample Request / Response

Using curl:

curl --location --request POST 'https://service.belladati.com/api/media/file' \
--header 'Authorization: OAuth oauth_consumer_key="myConsumer",oauth_token="8bc075ed67db",oauth_signature_method="PLAINTEXT",oauth_timestamp="1629713102",oauth_nonce="randomString",oauth_version="1.0",oauth_signature="mySignature"' \
--form 'name="file 1"' \
--form 'file=@"/Users/johndoe/Documents/file1.pdf"'

The response will return the ID of the saved file

  • No labels