Skip to main content
POST
Apply staged changes (or a roll back) in one transaction, as one config version

Authorizations

Authorization
string
header
required

Enter your API key (e.g. dai_sk_test_key_001)

Headers

Authorization
string
X-Workspace-Id
string | null

Path Parameters

agent_name
string
required

Cookies

decimal_session
string | null

Body

application/json

Staged changes, or a roll back. Exactly one of changes and rollback_to.

changes
Changes · object[] | null

Ops: {op: add_skill|remove_skill|set_skill_version, skill_id, version_number?}; {op: set_prompt_version, version_number (null = serve latest)}; and experiments: {op: start_holdout, skill_id, share?, detect_points?, score?: {name, source}, confirmed}, {op: start_prompt_split, version_number, share?, detect_points?, score?, confirmed}, {op: stop_experiment}.

rollback_to
integer | null

Apply this version's setup again, as a new version.

note
string | null

What changed (optional), shown on Versions.

Maximum string length: 500
base_version
integer | null

The version the review was made against; a different current version is a 409.

base_fingerprint
string | null

The setup fingerprint the review was made against (from preview); a 409 if it moved.

Response

Successful Response

The response is of type Response Apply Config Change Api V1 Agents Agent Name Setup Apply Post · object.