Update instruction
PATCH/v2/instructions/:instruction_id
Update an existing instruction's template, metadata, and configuration. Updated templates may include Velocity variables such as \$tools or metadata references. Each update creates a new version, allowing agents to continue using existing versions until explicitly changed.
::info Version Management Agents referencing a specific version continue to use it until updated. Agents without a pinned version always use the latest. :::
Disable an instruction
This endpoint can also be used to disable an instruction without deleting it.
Disabling an instruction prevents it from being added to new agents, but agents already using it continue to operate normally.
Request
Responses
- 200
- 400
- 403
- 404
The instruction has been updated successfully.
Instruction update request was malformed or contains invalid content.
Permissions do not allow updating this instruction.
Instruction not found.