v1

latestOpenAPI 3.1.02026-08-06221222240.7 KB
Agents

Edit Instruction

Replace an existing instruction snippet with a revised version in the agent's published specs (used by the feedback flow to rewrite an existing instruction instead of only appending a new one).

patch/v1/agents/{agent_id}/instructions/edit

Path parameters

agent_idstring uuid required

Request body

existingInstructionstring required
revisedInstructionstring required
target'general' | 'followUp' | 'response' required

Response

Successful Response

{"stackTrail":"paths:/v1/agents/{agent_id}/instructions/edit:patch:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}