/api/media/file
Uploads file to BellaDati Media Gallery.
Resource Information
Resource URL | |
HTTP Method | POST |
Request Parameters
Parameters | Detail | Type | Example |
---|---|---|---|
name | Name of the saved file | Text | file 1 |
file | File used for upload | File | upload.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
Overview
Content Tools