Skip to navigation

Upload value model

Uploads a new value model version. Validates the content, creates a new version, archives the previous active version, and syncs to ClickHouse. This updates how value is calculated going forward — new signals are valued under the new model. It does NOT re-rate historical signals; run POST /api/v2/value-models/backfill to re-rate history as a separate, explicit action. Any unpublished draft saved in the Paid app is discarded. Send expectedActiveVersion to get a 409 instead of overwriting a version published since you read it.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Request

Body
contentobjectRequired

Full value model configuration: value types, formulas, events, overrides, and actions.

effectiveFromdatetimeOptional
effectiveTodatetimeOptional
expectedActiveVersionintegerOptional

Optimistic concurrency guard: the active version this upload is based on. When supplied and it does not match the live active version, the upload fails with 409 instead of overwriting a concurrent change.

Response

200
idstringformat: "uuid"
Value model version ID.
versioninteger
Monotonically increasing version number.
contentobject

Full value model configuration: value types, formulas, events, overrides, and actions.

createdAtdatetime
activatedAtdatetime or null
effectiveFromdatetime or null
effectiveTodatetime or null

Errors

400
Bad Request Error
409
Conflict Error
500
Internal Server Error