OpenSequence
DocsAPI referenceSDKs and CLIReference
Sequences

Save a draft (optimistic lock)

PUT
/v1/sequences/{id}/versions/{vid}/draft

Authorization

projectKey
headerAuthorizationBearer <token>

A project API key (sk_live_…) with read, enroll or admin scope.

Path Parameters

id*string
Length1 <= length <= 128
vid*string
Length1 <= length <= 128

Request Body

application/json
  1. body
definition*
lock_version*integer
Range0 <= value <= 9007199254740991

Response Body

Default Response

application/json
  1. response
success*true
Value intrue
data*unknown
meta*
curl -X PUT 'http://localhost:8080/v1/sequences/string/versions/string/draft' \  -H 'Content-Type: application/json' \  -d '{  "definition": {    "property1": null,    "property2": null  },  "lock_version": 0}'
{  "success": true,  "data": null,  "meta": {    "request_id": "string",    "next_cursor": "string"  }}