OriginChainDB
Database endpoints

Write a transactional row

Buffers an insert-or-replace of one row in the transaction; it becomes visible to others only after commit.

POST /v1/tenants/{tenant}/tx/{tx_id}/rows/{schema}

Stage a row write for later commitShape checks happen now; constraints are checked at commit.
  1. Prepare a valid rowUse the transaction ID and registered table.
  2. Buffer insertion or replacementKeep the write inside the transaction.
  3. Finish with commit or rollbackOther transactions see the change only after commit.

Before you start

Use your database bearer token.

Connection setup

Begin a transaction and replace TX_ID with its returned tx_id. Finish the transaction with commit or rollback.

Path parameters

FieldTypeRequired
tenantstringRequired
tx_idstringRequired
schemastringRequired

Headers

FieldTypeRequiredDescription
x-oc-db-userstringOptionalActing database user (role, grant and row-policy checks). Send with x-oc-db-key.
x-oc-db-keystringOptionalAPI key of the x-oc-db-user user.

Request body

application/json

Limits and accepted values
  • The row as a JSON object keyed by column name, including its primary key.
  • Columns are user-defined by the table.
  • Shape and types are validated now (400);
  • constraints are enforced at commit.
FieldTypeRequiredDescription
FieldsobjectOptionalThe row as a JSON object keyed by column name, including its primary key. Columns are user-defined by the table. Shape and types are validated now (400); constraints are enforced at commit.

Read the result

buffered: true means the row passed shape/type validation and was staged. Constraints are checked at commit; this response alone does not confirm a committed write.

Response statuses

HTTP status reference
StatusWhat to do
200OK
400Correct the request before retrying.
401Check the credential and Authorization header.
402Check feature access or available credits.
403Check tenant access, roles and permissions.
404Check the resource ID and API route.
409Resolve the conflict before retrying.
413Split or reduce the request body.
415Send the required Content-Type.
422Correct the values or unsupported combination.
429Honor Retry-After when present; back off.
500Check the outcome before retrying a write.
501Check deployment support for this operation.
503Honor Retry-After when present; check write outcomes.
ยฉ 2026 Silicoyn Technologies Pvt Ltd