Summary
Set the paragraph mark’s run properties (w:pPr/w:rPr), e.g. the font size or specVanish carried by the paragraph-end mark. Available on v2-backed sessions only; v1-backed sessions currently returnCAPABILITY_UNAVAILABLE.
- Operation ID:
format.paragraph.setMarkRunProps - API member path:
editor.doc.format.paragraph.setMarkRunProps(...) - Mutates document:
yes - Idempotency:
conditional - Supports tracked mode:
no - Supports dry run:
yes - Deterministic target resolution:
yes
Expected result
Returns a ParagraphMutationResult; reports NO_OP if the encoded mark run properties already match.Input fields
| Field | Type | Required | Description |
|---|---|---|---|
markRunProps | object | yes | |
markRunProps.baselineShift | number | no | |
markRunProps.bold | boolean | no | |
markRunProps.boldCs | boolean | no | |
markRunProps.border | object | no | |
markRunProps.border.color | object(model=“rgb”) | object(model=“theme”) | object(model=“auto”) | no | One of: object(model=“rgb”), object(model=“theme”), object(model=“auto”) |
markRunProps.border.frame | boolean | no | |
markRunProps.border.shadow | boolean | no | |
markRunProps.border.space | number | no | |
markRunProps.border.style | string | no | |
markRunProps.border.width | number | no | |
markRunProps.caps | boolean | no | |
markRunProps.characterScale | number | no | |
markRunProps.characterSpacing | number | no | |
markRunProps.color | object(model=“rgb”) | object(model=“theme”) | object(model=“auto”) | no | One of: object(model=“rgb”), object(model=“theme”), object(model=“auto”) |
markRunProps.cs | boolean | no | |
markRunProps.doubleStrikethrough | boolean | no | |
markRunProps.emboss | boolean | no | |
markRunProps.fitTextWidth | number | no | |
markRunProps.fontFamily | string | no | |
markRunProps.fontSize | number | no | |
markRunProps.fontSizeCs | number | no | |
markRunProps.fonts | object | no | |
markRunProps.fonts.ascii | string | no | |
markRunProps.fonts.asciiTheme | string | no | |
markRunProps.fonts.cs | string | no | |
markRunProps.fonts.csTheme | string | no | |
markRunProps.fonts.eastAsia | string | no | |
markRunProps.fonts.eastAsiaTheme | string | no | |
markRunProps.fonts.hAnsi | string | no | |
markRunProps.fonts.hAnsiTheme | string | no | |
markRunProps.fonts.hint | string | no | |
markRunProps.highlight | string | no | |
markRunProps.imprint | boolean | no | |
markRunProps.italic | boolean | no | |
markRunProps.italicCs | boolean | no | |
markRunProps.kern | number | no | |
markRunProps.lang | object | no | |
markRunProps.lang.bidi | string | no | |
markRunProps.lang.eastAsia | string | no | |
markRunProps.lang.val | string | no | |
markRunProps.outline | boolean | no | |
markRunProps.rtl | boolean | no | |
markRunProps.shading | object | no | |
markRunProps.shading.color | object(model=“rgb”) | object(model=“theme”) | object(model=“auto”) | no | One of: object(model=“rgb”), object(model=“theme”), object(model=“auto”) |
markRunProps.shading.fill | object(model=“rgb”) | object(model=“theme”) | object(model=“auto”) | no | One of: object(model=“rgb”), object(model=“theme”), object(model=“auto”) |
markRunProps.shading.pattern | string | no | |
markRunProps.shadow | boolean | no | |
markRunProps.smallCaps | boolean | no | |
markRunProps.specVanish | boolean | no | |
markRunProps.strikethrough | boolean | no | |
markRunProps.textEffect | string | no | |
markRunProps.underline | object | no | |
markRunProps.underline.color | object(model=“rgb”) | object(model=“theme”) | object(model=“auto”) | no | One of: object(model=“rgb”), object(model=“theme”), object(model=“auto”) |
markRunProps.underline.style | string | no | |
markRunProps.vanish | boolean | no | |
markRunProps.verticalAlign | enum | no | "baseline", "superscript", "subscript" |
markRunProps.webHidden | boolean | no | |
target | ParagraphAddress | HeadingAddress | ListItemAddress | yes | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
Example request
Output fields
Variant 1 (success=true)
| Field | Type | Required | Description |
|---|---|---|---|
resolution | object | yes | |
resolution.target | ParagraphAddress | HeadingAddress | ListItemAddress | yes | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
success | true | yes | Constant: true |
target | ParagraphAddress | HeadingAddress | ListItemAddress | yes | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
Variant 2 (success=false)
| Field | Type | Required | Description |
|---|---|---|---|
failure | object | yes | |
failure.code | enum | yes | "NO_OP", "CAPABILITY_UNAVAILABLE" |
failure.details | any | no | |
failure.message | string | yes | |
resolution | object | no | |
resolution.target | ParagraphAddress | HeadingAddress | ListItemAddress | no | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
success | false | yes | Constant: false |
Example response
Pre-apply throws
TARGET_NOT_FOUNDINVALID_TARGETCAPABILITY_UNAVAILABLE
Non-applied failure codes
NO_OPCAPABILITY_UNAVAILABLE
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

