Runs

Apply run outputs to project

Persists outputs from a succeeded saved-project run back into that saved project. This is the public API equivalent of saving the server-owned run result state after execution; it does not accept client-supplied output values. The request uses optimistic concurrency and fails if the project changed after the run was created.

post/api/v1/runs/{run_id}/apply-to-project

Request

  • Base URL: https://api.studio.kaitoi.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.studio.kaitoi.io/api/v1/runs/{run_id}/apply-to-project
  • Auth: HTTP bearer

Path parameters

run_idstring required

Headers

Idempotency-Keystring nullable
authorizationstring nullable

Request body

expectedVersioninteger required

Project version the run was created from. Applying outputs fails if the saved project changed after the run was created.

outputKeysstring[] nullable

Optional subset of run output keys to persist. Omit to apply all outputs recorded on the succeeded saved-project run.

Response

Project version and output keys that were applied.

runIdstring required
projectIdstring required
versioninteger required

New saved project version after applying outputs.

appliedOutputsinteger required

Number of run outputs applied to the project.

outputKeysstring[] required

Run output keys applied to the saved project.

Changes

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