Skip to main content

Update an Oliver agent (JSON Merge Patch).

PATCH/api/v1/oliver-agents/{oliver_agent_id}oliver:write

Changes the fields you send. config is a merge patch of the configuration: a key you set replaces that key, null deletes it, and only documented keys may change. An array link list (memory_topic_ids, sub_agent_ids, oliver_surface_ids, workflow_template_ids) replaces the readable links while retaining hidden references; one you leave out is kept. Hidden document context and annotations are retained. A built-in agent's slug and role are fixed. A progressive agent is 403. New links need the same source readers and object access as create. Effective allowed_tools changes need Configure Agent Tool Allowlist; newly added tool names need View Oliver Tools. Effective default changes need Configure Oliver Agent Defaults. Needs Edit Oliver Agent Configs; callers without View Oliver Agent Configs receive a write receipt.

Scopeoliver:write (sensitive)
AsynchronousNo
MCP toolupdate_oliver_agent
Portal permissionsedit_oliver_agent_configs

Parameters​

NameInTypeRequiredDescription
oliver_agent_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonOliverAgentPatchInput
application/merge-patch+jsonOliverAgentPatchInput

Responses​

StatusDescriptionBody
200Success.application/json OliverAgent or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409already_exists, conflictapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

OliverAgent​

FieldTypeRequiredDescription
configobjectRequiredThe configuration: format agent_config, format_version 1; body holds the documented keys; allowed_tools is omitted without View Oliver Tools.
created_atstring (date-time) or nullRequired
created_byUserRef or nullRequired
is_builtinbooleanRequiredTrue for an agent the release provides; its slug and role are fixed.
is_defaultbooleanRequiredTrue for the organisation's default agent.
max_turnsinteger or nullRequiredMost model turns a run may take; null for the system default.
memory_topic_idsarray of stringRequiredThe oliver_memory_topic_ids the agent reads.
modelstring or nullRequiredThe oliver_model_id the agent runs on.
namestringRequired
oliver_agent_idstringRequired
oliver_surface_idsarray of stringRequiredThe oliver_surface_ids the agent may open.
oliver_system_prompt_idstring or nullRequired
reasoning_effortstring or nullRequiredoff, low, medium, high, xhigh, max or auto; null for the model's default.
rolestring or nullRequiredsupervisor or worker.
slugstring or nullRequiredSet for a system agent every user sees and a supervisor can delegate to; null for a private agent.
sub_agent_idsarray of stringRequiredThe oliver_agent_ids this agent may delegate to; each needs a slug to be delegated to.
system_prompt_appendstring or nullRequiredText appended to the system prompt; with no system prompt it is the whole prompt.
thinking_displaystring or nullRequiredsummarized or omitted; null for the default.
updated_atstring (date-time) or nullRequired
workflow_template_idsarray of stringRequiredThe workflow_template_ids the agent may start; -1 means every template the user can access.

OliverAgentPatchInput​

FieldTypeRequiredDescription
configobject or nullOptional
created_atstring (date-time) or nullOptional
created_byUserRefInput or nullOptional
is_builtinboolean or nullOptional
is_defaultboolean or nullOptional
max_turnsinteger or nullOptional
memory_topic_idsarray of string or nullOptional
modelstring or nullOptional
namestring or nullOptional
oliver_agent_idstring or nullOptional
oliver_surface_idsarray of string or nullOptional
oliver_system_prompt_idstring or nullOptional
reasoning_effortstring or nullOptional
rolestring or nullOptional
slugstring or nullOptional
sub_agent_idsarray of string or nullOptional
system_prompt_appendstring or nullOptional
thinking_displaystring or nullOptional
updated_atstring (date-time) or nullOptional
workflow_template_idsarray of string or nullOptional

UserRef​

FieldTypeRequiredDescription
display_namestringRequired
kindstring: user, system, integration or stringRequired
user_idstring or nullRequired

UserRefInput​

FieldTypeRequiredDescription
display_namestringOptional
kindstring: user, system, integrationOptional
user_idstring or nullOptional