Chelabase
ManagementTables

Insert a row of all defaults

POST
/v1/databases/{id}/branches/{branch_id}/tables/{schema}/{table}/rows/default

Runs INSERT INTO <table> DEFAULT VALUES in one committed transaction (as the owner, or as role) and returns the inserted row as JSON. A table whose columns have no defaults fails with the constraint's error (constraint_violation).

Authorization

bearer
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Database id

Formatuuid
branch_id*string

Branch id

Formatuuid
schema*string

Schema name

table*string

Table name

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

database?string|null
role?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/databases/497f6eca-6276-4993-bfeb-53cbbbba6f08/branches/497f6eca-6276-4993-bfeb-53cbbbba6f08/tables/string/string/rows/default" \  -H "Content-Type: application/json" \  -d '{}'
{  "row": {}}