POST /api/v1/tables/insert

Insert one or more rows into an existing table.

Resource Information

Request Content-Type application/json

Parameters

The body consist of one or more row object with the following properties:

database Name of the database.
table Name of the table to insert the row to.
data JSON Object containing the actual data to be inserted.

Example Request

    >> POST /api/v1/tables/insert HTTP/1.1
    >> Content-Type: application/json
    >> Content-Length: ...
    >>
    >> [
    >>   {
    >>     "database": "sensor_database",
    >>     "table": "my_sensor_table",
    >>     "data": {
    >>       "time": "2015-10-11T17:53:03Z",
    >>       "sensor_name": "temperature_outside",
    >>       "sensor_value": 8.634
    >>     }
    >>   },
    >>   {
    >>     "database": "sensor_database",
    >>     "table": "my_sensor_table",
    >>     "data": {
    >>       "time": "2015-10-11T17:53:04Z",
    >>       "sensor_name": "temperature_inside",
    >>       "sensor_value": 21.282
    >>     }
    >>   }
    >> ]

Example Response

    << HTTP/1.1 201 CREATED
    << Content-Length: 0