Skip to main content

Update an Oliver system prompt (JSON Merge Patch).

PATCH/api/v1/oliver-system-prompts/{oliver_system_prompt_id}oliver:write

A content change creates a new version. Built-in and archived prompts are refused. Callers without View Oliver System Prompts receive a write receipt, including for an empty patch.

Scopeoliver:write (sensitive)
AsynchronousNo
MCP toolupdate_oliver_system_prompt
Portal permissionsedit_oliver_system_prompts

Parameters​

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

Request body​

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

Responses​

StatusDescriptionBody
200Success.application/json OliverSystemPrompt 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
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​

OliverSystemPrompt​

FieldTypeRequiredDescription
archived_atstring (date-time) or nullRequiredWhen the prompt was archived (soft deleted); null while live.
char_countintegerRequired≥ -2147483648; ≤ 2147483647
contentstringRequiredThe content of the latest version.
created_atstring (date-time) or nullRequired
created_byUserRef or nullRequired
descriptionstring or nullRequired
is_builtinbooleanRequired
namestringRequired
oliver_system_prompt_idstringRequired
slugstringRequired
token_countintegerRequiredThe approximate size of the latest version in tokens, as the Portal's prompt list shows it. ≥ -2147483648; ≤ 2147483647
updated_atstring (date-time) or nullRequired
version_numberintegerRequiredThe latest version. ≥ -2147483648; ≤ 2147483647

OliverSystemPromptPatchInput​

FieldTypeRequiredDescription
archived_atstring (date-time) or nullOptional
change_notestring or nullOptionalA note recorded on the new version, with the content change; refused without one.
char_countinteger or nullOptional
contentstring or nullOptionalNew content: it creates the next version.
created_atstring (date-time) or nullOptional
created_byUserRefInput or nullOptional
descriptionstring or nullOptional
is_builtinboolean or nullOptional
namestring or nullOptional
oliver_system_prompt_idstring or nullOptional
slugstring or nullOptional
token_countinteger or nullOptional
updated_atstring (date-time) or nullOptional
version_numberinteger 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