Skip to main content
POST
Store the next contract version of a file dataset

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

X-Idempotency
string

Client-provided idempotency key that prevents a duplicate contract version

Path Parameters

fileDatasetId
string
required

Unique file dataset identifier.

Body

application/json

JSON request payload.

{key}
any

Response

Created

contract
any
required

The contract JSON the client sent. The stored bytes and sha256 are those received; an answer shows the same JSON without insignificant whitespace

createdAt
string<date-time>
required

When the version was stored, in UTC

Example:

"2026-01-01T00:00:00Z"

datasetId
string
required

Dataset the contract belongs to

Example:

"00000000-0000-0000-0000-000000000000"

sha256
string
required

Hex SHA-256 of the stored contract bytes

Example:

"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"

version
integer<int64>
required

Version number, from 1 and without gaps

Example:

1