textprocessing_update_style_guide
Replaces an existing style guide of the calling user's company by ID. This is a full replacement, not a patch, of the style guide's own fields: name, content, status and default are all overwritten with what you pass, so an omitted status resets to Draft and an omitted default clears the default flag. Its variants are NOT affected by this call - manage them with create_style_guide_variant, update_style_guide_variant and delete_style_guide_variant. Call get_style_guide first, keep every value the user did not ask to change, and pass them all back here. It is the company default only when isDefault is true and its status is Published: setting isDefault true makes it the default in one step and clears whichever style guide was default before, while moving a default style guide to Draft clears its default. A company always has at most one default. This WRITES data: show the complete intended result and confirm it with the user before calling.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"name": "<name>",
"content": "<content>"
},
"name": "textprocessing_update_style_guide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the style guide to replace, as returned by list_style_guides. | |
| name | Yes | Name after the replacement. Required and must not be blank; surrounding whitespace is trimmed. | |
| status | No | Status after the replacement. Defaults to Draft when omitted. Only Published style guides are applied when processing text. See list_style_guide_statuses for the values. | Draft |
| content | Yes | The general style guide body after the replacement, in plain text. Required and must not be blank. This is the fallback applied when no language/domain variant matches; variants are managed separately and are not touched by this call. | |
| isDefault | No | Whether this becomes the company's default style guide after the replacement. Defaults to false, which clears the default flag if it was set. Only takes effect when status is Published - it is ignored for a Draft, so downgrading a default style guide to Draft clears its default. Setting it true makes this the default and clears whichever style guide was default before, so this is how you switch the default in one call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The style guide's ID, as the other TextUnited APIs expect it. | |
| name | No | Human-readable name of the style guide. | |
| status | No | Whether the style guide is a Draft or Published. Only Published style guides are used when processing text. | |
| content | No | The general style guide body: the writing rules themselves, in plain text. This is the fallback applied when no variant matches the language and domain being processed. | |
| default | No | True when this is the company's default style guide, applied when no specific one is chosen. | |
| variants | No | The language- and domain-specific variants of this style guide. Each lists which language and domain it applies to; a variant's own body is not included here - read it with get_style_guide_variant. |