Create Object

Creating object.

Creating new objects is done with a POST request.

https://api.appery.io/rest/1/db/collections/<collectionName>

If the creating was successful you’ll get a status code 200 OK and response, containing auto-generated _id for the new object and _createdAt timestamp, which specifies, when the object was created.

Example

curl -X POST
   -H "X-Appery-Database-Id: 544a5cdfe4b03d005b6233b9" 
   -H "Content-Type: application/json"
   -d "{'studentName':'Frank', 'studentId':110, 'marks':[1,5,6]}"
   https://api.appery.io/rest/1/db/collections/students
{
    "_id":"557edfcae4b0f840f33480ef",
    "_createdAt":"2015-06-15 14:23:06.698"
}