Page 1 of 1

Collection remote update

Posted: Sun Feb 09, 2014 9:16 pm
by Lorenço Gonzaga

Can I use cURL command remotely, from my terminal(Mac) to update a json collection on my Appery database ? How I should proceed to update my json appery collection during 30min intervals without the need to open appery database console import option ?


Collection remote update

Posted: Sun Feb 09, 2014 10:40 pm
by Illya Stepanov

Hi Lorenço --

[quote:]
Can I use cURL command remotely, from my terminal(Mac) to update a json collection on my Appery database ?
[/quote]
Yes you can.

[quote:]
How I should proceed to update my json appery collection during 30min intervals without the need to open appery database console import option ?
[/quote]
Do you want to update or to import collection?
If you want to update - you can make it with JavaScript by executing the update collection service.


Collection remote update

Posted: Sun Feb 09, 2014 11:59 pm
by Lorenço Gonzaga

Hi Illya, thanks for the reply.

Any documentation that I could read to know the cURL command to remote update (from mac terminal) my Json collection in Appery database ?

Cheers


Collection remote update

Posted: Mon Feb 10, 2014 12:54 am
by Illya Stepanov

Here is the Object API that is used in Appery.io Database:
:: http://docs.appery.io/documentation/b...

-- and the particular object update with cURL command:
pre
curl -X PUT
-H "X-Appery-Database-Id: 526fdbd8e4b07c3286b537f1"
-H "Content-Type: application/json"
-d "{"priority":"High"}"
https://api.appery.io/rest/1/db/collections/todo/52710a7fe4b07c3286b54315
/pre
:: http://docs.appery.io/documentation/b...