Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Set the document-level default table style (w:defaultTableStyle in settings.xml).- Operation ID:
tables.setDefaultStyle - API member path:
editor.doc.tables.setDefaultStyle(...) - Mutates document:
yes - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
yes - Deterministic target resolution:
yes
Expected result
Returns a DocumentMutationResult; reports NO_OP if the default already matches.Input fields
| Field | Type | Required | Description |
|---|---|---|---|
styleId | string | yes |
Example request
Output fields
Variant 1 (success=true)
| Field | Type | Required | Description |
|---|---|---|---|
success | true | yes | Constant: true |
Variant 2 (success=false)
| Field | Type | Required | Description |
|---|---|---|---|
failure | object | yes | |
failure.code | enum | yes | "NO_OP", "INVALID_INPUT" |
failure.details | any | no | |
failure.message | string | yes | |
success | false | yes | Constant: false |
Example response
Pre-apply throws
CAPABILITY_UNAVAILABLEINVALID_INPUT
Non-applied failure codes
NO_OPINVALID_INPUT
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema
Raw success schema
Raw success schema
Raw failure schema
Raw failure schema

