ServicesTablesHTTP APIUnknown

Create_version

POST
/api/tables/{table_id}/versions

Record the caller-uploaded snapshot root identified by versionId, a UUIDv7. Multiple successors of one base are valid. Publish through the Catalog to make it visible.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Path Parameters

table_id*string

Stable identity of a Table.

Formatuuid

Request Body

application/json
  1. body
baseVersionId?|null
versionId*string
Formatuuid

Response Body

Success

application/json
  1. response
parentVersionId?|null
seqNo*|
versionId*string
Formatuuid
curl -X POST 'https://api.spiraldb.dev/api/tables/497f6eca-6276-4993-bfeb-53cbbbba6f08/versions' \  -H 'Content-Type: application/json' \  -d '{  "versionId": "14707576-2549-4848-82ed-f68f8a1b47c7"}'
{  "parentVersionId": "abf80970-9686-419e-bc00-5ddcccc33ba6",  "seqNo": "string",  "versionId": "14707576-2549-4848-82ed-f68f8a1b47c7"}