Skip to main content

Documentation Index

Fetch the complete documentation index at: https://superdoc-caio-pizzol-sd-3104-metadata-api.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

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)

FieldTypeRequiredDescription
contentstringyes
targetobject \objectyesOne of: object, object

Variant 2 (required: schemaRefs)

FieldTypeRequiredDescription
schemaRefsstring[]yes
targetobject \objectyesOne of: object, object

Example request

{
  "content": "example",
  "target": {
    "id": "id-001"
  }
}

Output fields

Variant 1 (success=true)

FieldTypeRequiredDescription
idstringno
successtrueyesConstant: true
targetobject \objectyesOne of: object, object

Variant 2 (success=false)

FieldTypeRequiredDescription
failureobjectyes
failure.codestringyes
failure.detailsanyno
failure.messagestringyes
successfalseyesConstant: false

Example response

{
  "id": "id-001",
  "success": true,
  "target": {
    "id": "id-001"
  }
}

Pre-apply throws

  • TARGET_NOT_FOUND
  • INVALID_TARGET
  • INVALID_INPUT
  • CAPABILITY_UNAVAILABLE

Non-applied failure codes

  • TARGET_NOT_FOUND
  • INVALID_INPUT

Raw schemas

{
  "additionalProperties": false,
  "anyOf": [
    {
      "required": [
        "content"
      ]
    },
    {
      "required": [
        "schemaRefs"
      ]
    }
  ],
  "properties": {
    "content": {
      "minLength": 1,
      "type": "string"
    },
    "schemaRefs": {
      "items": {
        "minLength": 1,
        "type": "string"
      },
      "type": "array"
    },
    "target": {
      "oneOf": [
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "id"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "partName": {
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "partName"
          ],
          "type": "object"
        }
      ]
    }
  },
  "required": [
    "target"
  ],
  "type": "object"
}
{
  "oneOf": [
    {
      "additionalProperties": false,
      "properties": {
        "id": {
          "minLength": 1,
          "type": "string"
        },
        "success": {
          "const": true
        },
        "target": {
          "oneOf": [
            {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "id"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "partName": {
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "partName"
              ],
              "type": "object"
            }
          ]
        }
      },
      "required": [
        "success",
        "target"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "failure": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "type": "string"
            },
            "details": {},
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "success": {
          "const": false
        }
      },
      "required": [
        "success",
        "failure"
      ],
      "type": "object"
    }
  ]
}
{
  "additionalProperties": false,
  "properties": {
    "id": {
      "minLength": 1,
      "type": "string"
    },
    "success": {
      "const": true
    },
    "target": {
      "oneOf": [
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "id"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "partName": {
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "partName"
          ],
          "type": "object"
        }
      ]
    }
  },
  "required": [
    "success",
    "target"
  ],
  "type": "object"
}
{
  "additionalProperties": false,
  "properties": {
    "failure": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "details": {},
        "message": {
          "type": "string"
        }
      },
      "required": [
        "code",
        "message"
      ],
      "type": "object"
    },
    "success": {
      "const": false
    }
  },
  "required": [
    "success",
    "failure"
  ],
  "type": "object"
}