ServicesProjectsHTTP APIPresentations

Save_presentation

PUT
/api/projects/{project_id}/presentation

Save shared presentation state with Catalog publish permission. An outdated revision returns Conflict.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Path Parameters

project_id*string

Request Body

application/json
  1. body

Compare-and-swap one presentation. Revision zero creates it; value must be a JSON object of at most one MiB.

key*string
revision*integer
Formatint32
Range-2147483648 <= value <= 2147483647
value*unknown

Response Body

Success

application/json
  1. response

The saved revision and document, or revision zero and no document when absent.

revision*integer
Formatint32
Range-2147483648 <= value <= 2147483647
value?unknown|null
curl -X PUT 'https://api.spiraldb.dev/api/projects/string/presentation' \  -H 'Content-Type: application/json' \  -d '{  "key": "string",  "revision": -2147483648,  "value": null}'
{  "revision": -2147483648,  "value": null}