daux.io/docs/cms/01_API/10_Create.md
2013-06-21 10:49:05 -05:00

25 lines
497 B
Markdown

To create an object in a collection, issue a HTTP POST call with the object in the body of the POST.
POST /collections/:collection
##URL Parameters
`:collection` is the key of the collection in the config.
##Example
POST /collections/team
name = Justin
employment = full
bio = Node.js developer
address[city] = Bismarck
address[state] = ND
address[zip] = 58501
...
Note: 'team' is the key used in our example config at the top of this guide
##Returns
The object you just created.