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.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
409The agent changed since the supplied or gateway-read revision
428An explicitly supplied revision is empty or null
502The gateway could not read a valid agent revision from Mapping

