Skip to main content

Summary

Replace the content and/or schemaRefs of an existing Custom XML Data Storage Part. At least one of content or schemaRefs is required. v1 partName targeting is limited to Word-style customXml/itemN.xml paths.
  • Operation ID: customXml.parts.patch
  • API member path: editor.doc.customXml.parts.patch(...)
  • Mutates document: yes
  • Idempotency: idempotent
  • Supports tracked mode: no
  • Supports dry run: yes
  • Deterministic target resolution: yes

Expected result

Returns a CustomXmlPartsMutationResult indicating success with the resolved target or a failure.

Input fields

Variant 1 (required: content)

Variant 2 (required: schemaRefs)

Example request

Output fields

Variant 1 (success=true)

Variant 2 (success=false)

Example response

Pre-apply throws

  • TARGET_NOT_FOUND
  • INVALID_TARGET
  • INVALID_INPUT
  • CAPABILITY_UNAVAILABLE

Non-applied failure codes

  • TARGET_NOT_FOUND
  • INVALID_INPUT

Raw schemas