Skip to content

Create records

POST
/api/v1/tables/{tableId}/records
curl --request POST \
--url https://api.cloudtable.insurge.io/api/v1/tables/example/records \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "fields": { "additionalProperty": "example" }, "records": [ { "fields": { "additionalProperty": "example" } } ], "upsertOn": [ "example" ] }'

Body: { fields } for one, or { records: [{ fields }] } for many. Pass upsertOn: [“Field Name”] to update matching rows instead of inserting. Fields are keyed by name; selects accept the option name, links accept record ids.

tableId
required
string
Media typeapplication/json
object
fields
object
key
additional properties
nullable
records
Array<object>
object
fields
required
object
key
additional properties
nullable
upsertOn
Array<string>
Examplegenerated
{
"fields": {
"additionalProperty": "example"
},
"records": [
{
"fields": {
"additionalProperty": "example"
}
}
],
"upsertOn": [
"example"
]
}

Created/upserted records

Media typeapplication/json
object
records
required
Array<object>
object
id
required
string
createdTime
string
fields
required
object
key
additional properties
nullable
Examplegenerated
{
"records": [
{
"id": "example",
"createdTime": "example",
"fields": {
"additionalProperty": "example"
}
}
]
}

Bad input

Unauthorized

Not found