Creating a File from Base64

To create a new base64 string, send a POST request to the following URL:

https://api.appery.io/rest/1/db/files/

Example

cURL:

curl -X POST \
       -H "X-Appery-Database-Id: 526fdbd8e4b07c3286b537f1" \
       -H "X-Appery-Session-Token: 6fb9515d-82fd-43b3-9124-f0534dceca8e" \
       -H "Content-Type: application/json" \
       -d '{ "_id": "test_file.txt", "contentType": "text/plain", "content": "SGVsbG8gdGhlcmUh" }' \
       https://api.appery.io/rest/1/db/files/
{
 "_id": "d92537bd-dbb9-4283-9dc3-984dd75002c5.test_file.txt",
 "contentType": "text/plain",
 "owner": null,
 "_createdAt": "2021-03-03 10:02:29.318",
 "length": 12,
 "acl": null
}