Models

Apply Model Revision

Atomically make the exact reviewed source, inputs, dependencies and result current. Requires a successful test and unchanged base strategy. Idempotent; no generation, extra test or charge. Dependent refreshes follow publication and retain their normal metering.

post/v1/models/{model}/revisions/{revision_id}/apply

Request

  • Base URL: https://api.ensemble.markets (the document declares no server; this is the origin it was published from)
  • URL: https://api.ensemble.markets/v1/models/{model}/revisions/{revision_id}/apply
  • Auth: HTTP bearer

Path parameters

modelstring required

Owned model ID, slug, symbol or exact name

revision_idstring required

Revision ID returned by testing or listing model revisions

Request body

expected_base_revision_idstring nullable required

Approved revision against which the candidate was tested; null only for a model without approved source

Response

Successful Response

idstring required
model_idstring required
numberinteger required
status'queued' | 'running' | 'ready' | 'applied' | 'failed' required
base_revision_idstring nullable
draft_versioninteger nullable
promptstring required
descriptionstring
inputsobject required
inputs_schemaobject nullable
scriptstring nullable
script_hashstring nullable
build_idstring nullable
run_idstring nullable
labelstring nullable
data_as_ofstring nullable
result_availableboolean
errorstring nullable
timingobject nullable
usageobject nullable
created_atstring date-time required
applied_atstring date-time nullable
can_applyboolean
blocked_reasonstring nullable
newer_data_availableboolean
estimate_centsinteger nullable

Changes

No recorded changes to this operation across all 1 revision of this API.