Create new record.
POST
/api/records/v1/{name}
const url = 'https://example.com/api/records/v1/example';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '"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://example.com/api/records/v1/example \ --header 'Content-Type: application/json' \ --data '"example"'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”name
required
string
Query Parameters
Section titled “Query Parameters”redirect_uri
string | null
Redirect user to this address upon successful record creation. This only exists to support insertions via static HTML form actions.
We may want to have a different on-error redirect to better support the static HTML use-case.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Examplegenerated
exampleResponses
Section titled “Responses”Ids of successfully created records.
Media typeapplication/json
object
ids
required
Url-Safe base64 encoded ids of the newly created record.
Array<string>
Examplegenerated
{ "ids": [ "example" ]}