customXml.parts.patch
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.
mutates documentdry runidempotent
doc.customXml.parts.patch(…)Expected result
Returns a CustomXmlPartsMutationResult indicating success with the resolved target or a failure.
Inputs
targetid | partNamerequiredid
idstringrequiredpartName
partNamestringrequiredcontentstringconditionally requiredschemaRefsstring[]conditionally requiredResult
Output fields
true
successtruerequiredtargetid | partNamerequiredid
idstringrequiredpartName
partNamestringrequiredidstringfalse
successfalserequiredfailureobjectrequiredFields
codestringrequiredmessagestringrequireddetailsunknownFailures
Pre-apply throws
TARGET_NOT_FOUNDINVALID_TARGETINVALID_INPUT
1 more codes
CAPABILITY_UNAVAILABLE
Non-applied receipt codes
TARGET_NOT_FOUNDINVALID_INPUT
Raw schemas
Open the generated JSON artifact for the exact input, output, success, and failure schemas represented by this contract version.
View raw JSON schemas