post https://{teamSlug}.api.morphdb.io/v0/data-api/record/create
Creates a new record. Note that you create a database and a table in Widget Dashboard in advance.
Put the name of the field and the value to be sent in the values
array. The value must match the type specified for the field. fixedValue
is not supported in this API. Always request an empty array.
ex. ) sample table
id | name | product_type | price |
---|---|---|---|
1 | apple | fruits | 100 |
2 | grape | fruits | 200 |
3 | chocolate | snacks | 400 |
// request
{
"fixedValue": [],
"values": [
{
"key": "name",
"value": "banana",
},
{
"key": "product_type",
"value": "fruits",
},
{
"key": "price",
"value": "500",
}
]
}