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.
| Scope | oliver:write (sensitive) |
| Asynchronous | No |
| MCP tool | update_oliver_system_prompt |
| Portal permissions | edit_oliver_system_prompts |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
oliver_system_prompt_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | OliverSystemPromptPatchInput |
application/merge-patch+json | OliverSystemPromptPatchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json OliverSystemPrompt or object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
412 | precondition_failed | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
OliverSystemPrompt
| Field | Type | Required | Description |
|---|---|---|---|
archived_at | string (date-time) or null | Required | When the prompt was archived (soft deleted); null while live. |
char_count | integer | Required | ≥ -2147483648; ≤ 2147483647 |
content | string | Required | The content of the latest version. |
created_at | string (date-time) or null | Required | |
created_by | UserRef or null | Required | |
description | string or null | Required | |
is_builtin | boolean | Required | |
name | string | Required | |
oliver_system_prompt_id | string | Required | |
slug | string | Required | |
token_count | integer | Required | The approximate size of the latest version in tokens, as the Portal's prompt list shows it. ≥ -2147483648; ≤ 2147483647 |
updated_at | string (date-time) or null | Required | |
version_number | integer | Required | The latest version. ≥ -2147483648; ≤ 2147483647 |
OliverSystemPromptPatchInput
| Field | Type | Required | Description |
|---|---|---|---|
archived_at | string (date-time) or null | Optional | |
change_note | string or null | Optional | A note recorded on the new version, with the content change; refused without one. |
char_count | integer or null | Optional | |
content | string or null | Optional | New content: it creates the next version. |
created_at | string (date-time) or null | Optional | |
created_by | UserRefInput or null | Optional | |
description | string or null | Optional | |
is_builtin | boolean or null | Optional | |
name | string or null | Optional | |
oliver_system_prompt_id | string or null | Optional | |
slug | string or null | Optional | |
token_count | integer or null | Optional | |
updated_at | string (date-time) or null | Optional | |
version_number | integer or null | Optional |
UserRef
| Field | Type | Required | Description |
|---|---|---|---|
display_name | string | Required | |
kind | string: user, system, integration or string | Required | |
user_id | string or null | Required |
UserRefInput
| Field | Type | Required | Description |
|---|---|---|---|
display_name | string | Optional | |
kind | string: user, system, integration | Optional | |
user_id | string or null | Optional |