Create records
POST
/api/v1/tables/{tableId}/records
const url = 'https://api.cloudtable.insurge.io/api/v1/tables/example/records';const options = { method: 'POST', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, body: '{"fields":{"additionalProperty":"example"},"records":[{"fields":{"additionalProperty":"example"}}],"upsertOn":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”tableId
required
string
Request Body
Section titled “Request Body”Media typeapplication/json
object
fields
object
key
additional properties
records
Array<object>
object
fields
required
object
key
additional properties
upsertOn
Array<string>
Examplegenerated
{ "fields": { "additionalProperty": "example" }, "records": [ { "fields": { "additionalProperty": "example" } } ], "upsertOn": [ "example" ]}Responses
Section titled “Responses”Created/upserted records
Media typeapplication/json
object
records
required
Array<object>
object
id
required
string
createdTime
string
fields
required
object
key
additional properties
Examplegenerated
{ "records": [ { "id": "example", "createdTime": "example", "fields": { "additionalProperty": "example" } } ]}Bad input
Unauthorized
Not found