Skip to main content

create()

Create a record.

const { data, error } = await kontenbase.service('posts').create({
name: 'Post 1',
notes: 'Hello Kontenbase',
})

Response

NameTypeDescription
res.dataobjectResponse for data
res.statusnumberResponse for status code
res.statusTextstringResponse for status message
res.errorobjectResponse for error occurred