Update agent instruction

Updates the agent's instruction and creates or updates the draft runtime
configuration. This is a required step before publishing — without it,
the agent has no draft config and POST /agents/{agent_id}/publish will fail.

Optionally pass integrated_actions to attach tool/action integrations.
expected_instruction_revision is optional for backward compatibility.
When omitted, the gateway reads the current agent revision before saving.
To detect edits since your own GET, supply that GET's instruction_revision
as expected_instruction_revision. A concurrent change returns 409;
the gateway does not retry or replace an explicitly supplied revision.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required
Body Params
string

Optional revision from GET agent. Omit for legacy compatibility; supply to detect concurrent edits.

string
required

The agent's instruction text. This defines the agent's persona,
scope, style, escalation rules, and any domain-specific guidance.

integrated_actions
array of objects

Actions to integrate with the agent.

integrated_actions
Responses

409

The agent changed since the supplied or gateway-read revision

428

An explicitly supplied revision is empty or null

502

The gateway could not read a valid agent revision from Mapping

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json