Microsoft Word
microsoft_wordMicrosoft Word tools for finding, downloading, updating, and managing DOCX files in OneDrive and SharePoint through Microsoft Graph
Acciones disponibles (23)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Add CommentMICROSOFT_WORD_ADD_COMMENTAcciónAdd a Word comment to one exact paragraph selected by text or a READ_DOCX locator.
MICROSOFT_WORD_ADD_COMMENTAcciónAdd a Word comment to one exact paragraph selected by text or a READ_DOCX locator.
Parámetros de entrada
authorstringObligatorioComment author.
commentstringObligatorioComment text.
item_idstringObligatorioDOCX item ID.
drive_idstringObligatorioDrive ID.
initialsstringOptional author initials.
anchor_textstringExact text of one document paragraph to comment.
expected_etagstringOptional exact eTag concurrency guard; required when paragraph_locator selects an eTag-bound target.
upload_strategystringenumUpload mode.
autodirectresumableparagraph_locatorstringREAD_DOCX paragraph locator; use instead of anchor_text.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Append ContentMICROSOFT_WORD_APPEND_CONTENTAcciónAppend plain text or supported Markdown paragraphs, headings, formatted runs, lists, rectangular tables, safe http/https/mailto links, and Courier New inline or fenced code to a DOCX body.
MICROSOFT_WORD_APPEND_CONTENTAcciónAppend plain text or supported Markdown paragraphs, headings, formatted runs, lists, rectangular tables, safe http/https/mailto links, and Courier New inline or fenced code to a DOCX body.
Parámetros de entrada
formatstringenumContent format; Markdown supports safe links and Courier New code text.
markdownplaincontentstringObligatorioPlain text or supported Markdown to append. Markdown preserves safe http, https, and mailto links; inline and fenced code use Courier New.
item_idstringObligatorioDOCX item ID.
drive_idstringObligatorioDrive ID.
expected_etagstringOptional exact eTag concurrency guard.
upload_strategystringenumUpload mode.
autodirectresumable
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Copy DOCXMICROSOFT_WORD_COPY_DOCXAcciónCopy a verified DOCX to a OneDrive or SharePoint folder, wait boundedly for the asynchronous operation, and return verified destination metadata. If waiting times out, the server-side copy may continue; inspect the destination before retrying to avoid creating another copy.
MICROSOFT_WORD_COPY_DOCXAcciónCopy a verified DOCX to a OneDrive or SharePoint folder, wait boundedly for the asynchronous operation, and return verified destination metadata. If waiting times out, the server-side copy may continue; inspect the destination before retrying to avoid creating another copy.
Parámetros de entrada
new_namestringNew filename ending in .docx; omit to keep the source filename. Cannot be combined with include_all_version_history because Graph can ignore version-history copying when a new name is supplied.
source_item_idstringObligatorioSource DOCX driveItem ID.
source_drive_idstringObligatorioDrive containing the source DOCX.
destination_drive_idstringObligatorioDrive where the copied DOCX will be created.
wait_timeout_secondsnumberMaximum time to wait for Microsoft to report completion. A timeout is ambiguous because the server-side copy can continue.
destination_folder_idstringObligatorioDestination folder driveItem ID.
include_all_version_historybooleanCopy all source versions instead of only the latest version. Requires new_name to be omitted because Graph can ignore version-history copying when a new name is supplied.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create DOCXMICROSOFT_WORD_CREATE_DOCXAcciónCreate a safe DOCX containing styled paragraphs and formatted runs, bullet or decimal lists, rectangular tables, or constrained HTML/Markdown source with safe external links and inline or fenced code rendered in Courier New, plus validated inline PNG/JPEG images, page breaks, and default/first/even headers and footers. Literal content is escaped and raw XML or image URLs are never accepted. The create-only default fails on a filename conflict. overwrite_existing remains available for backward compatibility; prefer UPSERT_DOCX when replacement is intended.
MICROSOFT_WORD_CREATE_DOCXAcciónCreate a safe DOCX containing styled paragraphs and formatted runs, bullet or decimal lists, rectangular tables, or constrained HTML/Markdown source with safe external links and inline or fenced code rendered in Courier New, plus validated inline PNG/JPEG images, page breaks, and default/first/even headers and footers. Literal content is escaped and raw XML or image URLs are never accepted. The create-only default fails on a filename conflict. overwrite_existing remains available for backward compatibility; prefer UPSERT_DOCX when replacement is intended.
Parámetros de entrada
blocksarrayOrdered paragraph, table, inline-image, and page-break blocks. Legacy objects containing only text and style remain valid paragraphs.
sourceanyConstrained HTML or Markdown source. Provide exactly one of source or blocks; parsed content is converted to the same validated block model.
footersobjectOptional default, first, and even footer paragraphs.
headersobjectOptional default, first, and even header paragraphs.
drive_idstringObligatorioDestination OneDrive or SharePoint document-library drive ID.
filenamestringObligatorioDestination filename ending in .docx. Path separators are rejected.
upload_strategystringenumUpload mode. Keep the recommended auto setting to use direct upload through 10 MiB and resilient resumable upload above it. Force direct only when resumability is unwanted, or resumable when interruption recovery is required for a smaller document.
autodirectresumableparent_folder_idstringObligatorioDestination folder driveItem ID.
overwrite_existingbooleanDeprecated compatibility field. When true, replace a same-name item; prefer UPSERT_DOCX for that intent. The safe false default creates only and fails on a name conflict.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create DOCX sharing linkMICROSOFT_WORD_CREATE_DOCX_SHARING_LINKAcciónCreate a view, edit, or embed sharing link for a verified DOCX. Returns Graph's capability-bearing URL; treat it as a secret. Sharing can change the document eTag, so call READ_DOCX again before editing. Setting retain_inherited_permissions=false removes all existing permissions when the item is shared for the first time.
MICROSOFT_WORD_CREATE_DOCX_SHARING_LINKAcciónCreate a view, edit, or embed sharing link for a verified DOCX. Returns Graph's capability-bearing URL; treat it as a secret. Sharing can change the document eTag, so call READ_DOCX again before editing. Setting retain_inherited_permissions=false removes all existing permissions when the item is shared for the first time.
Parámetros de entrada
item_idstringObligatorioDOCX driveItem ID.
drive_idstringObligatorioDrive containing the DOCX to share.
link_typestringenumLink behavior: read-only view, read-write edit, or embeddable embed. Defaults to view.
vieweditembedlink_scopestringenumOptional audience: anonymous, organization, or specified users. When omitted, Graph uses the organization's default link scope.
anonymousorganizationuserssharing_passcodestringOptional password sent to Graph for this link. Availability depends on tenant sharing policy and plan; personal OneDrive may require a Microsoft 365 Personal or Family paid plan.
expiration_datetimestringOptional link expiration timestamp in ISO 8601 format. On personal OneDrive, this capability may require a Microsoft 365 Personal or Family paid plan.
retain_inherited_permissionsbooleanWhether to retain inherited permissions when sharing the item for the first time. Setting false removes all existing permissions, which is destructive; omit to use Graph's default behavior.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete DOCXMICROSOFT_WORD_DELETE_DOCXAcciónMove one DOCX to the provider recycle bin only when its current eTag matches. This action does not bypass shared locks or checked-out state. A successful result does not guarantee permanent erasure.
MICROSOFT_WORD_DELETE_DOCXAcciónMove one DOCX to the provider recycle bin only when its current eTag matches. This action does not bypass shared locks or checked-out state. A successful result does not guarantee permanent erasure.
Parámetros de entrada
item_idstringObligatorioDOCX driveItem ID to move to the provider recycle bin.
drive_idstringObligatorioDrive containing the DOCX.
expected_etagstringObligatorioCurrent driveItem eTag; deletion fails if the item changed.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Edit DOCXMICROSOFT_WORD_EDIT_DOCXAcciónAtomically edit literal text, paragraphs, independent Latin/non-complex and complex-script run formatting, lists, rectangular tables including plain cells and rows outside merged regions, uploaded inline PNG/JPEG images, semantic comments, tracked text changes, revision acceptance or rejection, safe external hyperlinks, paired footnotes, section headers or footers, and explicit page breaks in a DOCX. Targets are semantic locators from READ_DOCX and remain valid only for its eTag. The complete package is validated before one guarded replacement upload.
MICROSOFT_WORD_EDIT_DOCXAcciónAtomically edit literal text, paragraphs, independent Latin/non-complex and complex-script run formatting, lists, rectangular tables including plain cells and rows outside merged regions, uploaded inline PNG/JPEG images, semantic comments, tracked text changes, revision acceptance or rejection, safe external hyperlinks, paired footnotes, section headers or footers, and explicit page breaks in a DOCX. Targets are semantic locators from READ_DOCX and remain valid only for its eTag. The complete package is validated before one guarded replacement upload.
Parámetros de entrada
item_idstringObligatorioDOCX driveItem ID.
drive_idstringObligatorioOneDrive or SharePoint document-library drive ID.
operationsarrayObligatorioOrdered, eTag-bound semantic edits. Every operation must change content and succeed atomically. Text is limited to 1,000,000 characters; at most 20 uploaded images, 10 MiB each and 25 MiB total, may be inserted.
expected_etagstringObligatorioExact eTag returned by READ_DOCX; the edit fails if the document changed.
upload_strategystringenumUpload mode. Keep the recommended auto setting to use direct upload through 10 MiB and resilient resumable upload above it. Force direct only when resumability is unwanted, or resumable when interruption recovery is required for a smaller document.
autodirectresumable
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Export DOCX to PDFMICROSOFT_WORD_EXPORT_DOCXAcciónConvert a DOCX of at most 2 MB to PDF through Microsoft Graph and return a temporary file reference. The provider's preauthenticated redirect URL is followed internally and is never returned.
MICROSOFT_WORD_EXPORT_DOCXAcciónConvert a DOCX of at most 2 MB to PDF through Microsoft Graph and return a temporary file reference. The provider's preauthenticated redirect URL is followed internally and is never returned.
Parámetros de entrada
item_idstringObligatorioDOCX driveItem ID.
drive_idstringObligatorioDrive containing the DOCX to export.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Fill TemplateMICROSOFT_WORD_FILL_TEMPLATEAcciónFill run-spanning placeholders in main-document paragraphs of a validated DOCX template snapshot, then create and return a new document. Strict mode creates only after every requested placeholder is found; non-strict mode can create a partial fill and reports found, filled, and unfilled keys. If post-upload validation fails, the error identifies the retained destination item and gives guarded cleanup guidance.
MICROSOFT_WORD_FILL_TEMPLATEAcciónFill run-spanning placeholders in main-document paragraphs of a validated DOCX template snapshot, then create and return a new document. Strict mode creates only after every requested placeholder is found; non-strict mode can create a partial fill and reports found, filled, and unfilled keys. If post-upload validation fails, the error identifies the retained destination item and gives guarded cleanup guidance.
Parámetros de entrada
valuesobjectObligatorioPlaceholder keys mapped to literal values. Keys contain 1 to 255 characters and cannot contain braces. The original main document may contain at most 100 unique placeholders under the same key grammar.
file_namestringObligatorioNew .docx filename.
expected_etagstringOptional exact template eTag guard before destination creation.
fail_on_missingbooleanWhen true, fail before destination creation if any requested main-document placeholder is absent. When false, create a partial fill and report absent requested keys by comparing the requested values keys with placeholders_filled.
upload_strategystringenumFilled-copy upload mode.
autodirectresumabletemplate_item_idstringObligatorioTemplate DOCX item ID.
placeholder_stylestringenumPlaceholder delimiter style.
{{key}}{key}template_drive_idstringObligatorioDrive containing the template and destination folder.
wait_timeout_secondsnumberDeprecated compatibility field; filling no longer performs an async copy.
destination_folder_idstringObligatorioDestination folder in template_drive_id.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Find DOCX filesMICROSOFT_WORD_FIND_DOCX_FILESAcciónBrowse one folder or search a drive for DOCX files. Browse pages also return folders for navigation. Search results can be eventually consistent; use a direct read action when authoritative current state is required.
MICROSOFT_WORD_FIND_DOCX_FILESAcciónBrowse one folder or search a drive for DOCX files. Browse pages also return folders for navigation. Search results can be eventually consistent; use a direct read action when authoritative current state is required.
Parámetros de entrada
modestringObligatorioenumBrowse one folder's immediate children or search the entire drive.
browsesearchquerystringFilename, metadata, or content search text; required in search mode.
cursorstringOpaque cursor returned by the prior page; omit for the first page.
drive_idstringObligatorioOneDrive or SharePoint document-library drive ID.
page_sizeintegerMaximum upstream items to inspect on this page (1-200). Filtering can yield fewer returned items.
folder_item_idstringFolder driveItem ID; required in browse mode. Use the actual root item ID, not the word root.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Find SharePoint sitesMICROSOFT_WORD_FIND_SHAREPOINT_SITESAcciónFind accessible SharePoint sites by keyword, or resolve one known hostname and site path to its site ID.
MICROSOFT_WORD_FIND_SHAREPOINT_SITESAcciónFind accessible SharePoint sites by keyword, or resolve one known hostname and site path to its site ID.
Parámetros de entrada
querystringFree-text site keyword query; required only when lookup_mode is search. This searches matching sites and does not enumerate every accessible site.
cursorstringOpaque cursor returned by a prior search page; omit for the first page and for path lookup.
hostnamestringSharePoint hostname such as tenant.sharepoint.com; required only for path lookup.
page_sizeintegerMaximum sites to return on this search page (1-100); ignored for path lookup.
site_pathstringServer-relative site path without the hostname, such as sites/Legal; required only for path lookup.
lookup_modestringObligatorioenumUse search for a keyword query or path when the SharePoint hostname and site-relative path are known.
searchpath
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Microsoft Word account contextMICROSOFT_WORD_GET_ACCOUNT_CONTEXTAcciónReturn the signed-in Microsoft identity and primary OneDrive identifiers needed to start OneDrive DOCX work. Microsoft Graph documents that GET /me/drive automatically provisions OneDrive when the delegated user is licensed but does not yet have a drive.
MICROSOFT_WORD_GET_ACCOUNT_CONTEXTAcciónReturn the signed-in Microsoft identity and primary OneDrive identifiers needed to start OneDrive DOCX work. Microsoft Graph documents that GET /me/drive automatically provisions OneDrive when the delegated user is licensed but does not yet have a drive.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Invite DOCX recipientsMICROSOFT_WORD_INVITE_DOCX_RECIPIENTSAcciónGrant read or write access to required named recipients. send_invitation and require_sign_in are required; emailing an invitation is an irreversible external side effect. Partial success is reported per recipient. Sharing can change the document eTag, so call READ_DOCX again before editing. Setting retain_inherited_permissions=false removes all existing permissions when the item is shared for the first time.
MICROSOFT_WORD_INVITE_DOCX_RECIPIENTSAcciónGrant read or write access to required named recipients. send_invitation and require_sign_in are required; emailing an invitation is an irreversible external side effect. Partial success is reported per recipient. Sharing can change the document eTag, so call READ_DOCX again before editing. Setting retain_inherited_permissions=false removes all existing permissions when the item is shared for the first time.
Parámetros de entrada
rolesstring[]ObligatorioRequired read and/or write roles to grant.
item_idstringObligatorioDOCX driveItem ID.
messagestringOptional plain-text invite message, up to 2,000 characters.
drive_idstringObligatorioDrive containing the DOCX to share.
recipientsobject[]ObligatorioRequired recipients, each identified by exactly one email, alias, or directory objectId.
require_sign_inbooleanObligatorioRequired: whether recipients must sign in to access the DOCX.
send_invitationbooleanObligatorioRequired: whether Graph should email the sharing invitation.
sharing_passcodestringOptional password sent to Graph for this sharing permission. Availability depends on tenant sharing policy and plan; personal OneDrive may require a Microsoft 365 Personal or Family paid plan.
expiration_datetimestringOptional sharing permission expiration timestamp in ISO 8601 format. On personal OneDrive, this capability may require a Microsoft 365 Personal or Family paid plan.
retain_inherited_permissionsbooleanWhether to retain inherited permissions when sharing the item for the first time. Setting false removes all existing permissions, which is destructive; omit to use Graph's default behavior.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List DOCX versionsMICROSOFT_WORD_LIST_DOCX_VERSIONSAcciónValidate the selected drive item as a DOCX, then return one page of retained versions in Microsoft Graph's newest-first order. Provider download URLs and raw identity objects are omitted.
MICROSOFT_WORD_LIST_DOCX_VERSIONSAcciónValidate the selected drive item as a DOCX, then return one page of retained versions in Microsoft Graph's newest-first order. Provider download URLs and raw identity objects are omitted.
Parámetros de entrada
cursorstringOpaque cursor returned by the prior page. Omit it for the first page and pass it back unchanged to continue.
item_idstringObligatorioDOCX driveItem ID.
drive_idstringObligatorioDrive containing the DOCX.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List OneDrive drivesMICROSOFT_WORD_LIST_ONEDRIVESAcciónReturn one page of drives available to the signed-in user as the Microsoft Word toolkit's OneDrive-drive selector for DOCX workflows. Unlike GET_ACCOUNT_CONTEXT, this lists drives without returning identity context or selecting only the primary drive. Use LIST_SHAREPOINT_LIBRARIES for a specific SharePoint site's document libraries; general OneDrive file automation may use ONE_DRIVE_LIST_DRIVES instead.
MICROSOFT_WORD_LIST_ONEDRIVESAcciónReturn one page of drives available to the signed-in user as the Microsoft Word toolkit's OneDrive-drive selector for DOCX workflows. Unlike GET_ACCOUNT_CONTEXT, this lists drives without returning identity context or selecting only the primary drive. Use LIST_SHAREPOINT_LIBRARIES for a specific SharePoint site's document libraries; general OneDrive file automation may use ONE_DRIVE_LIST_DRIVES instead.
Parámetros de entrada
cursorstringOpaque cursor returned by the prior page. Omit it for the first page and pass it back unchanged to continue.
page_sizeintegerMaximum OneDrive drives to return on this page (1-200).
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List SharePoint document librariesMICROSOFT_WORD_LIST_SHAREPOINT_LIBRARIESAcciónReturn one page of document libraries and available root folder item IDs for a SharePoint site ID.
MICROSOFT_WORD_LIST_SHAREPOINT_LIBRARIESAcciónReturn one page of document libraries and available root folder item IDs for a SharePoint site ID.
Parámetros de entrada
cursorstringOpaque cursor returned by the prior page. Omit it for the first page and pass it back unchanged to continue.
site_idstringObligatorioSharePoint site ID returned by FIND_SHAREPOINT_SITES.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Move or rename DOCXMICROSOFT_WORD_MOVE_OR_RENAME_DOCXAcciónRename a DOCX, move it within the same drive, or do both, guarded by its current eTag. At least one of new_name or destination_folder_id is required.
MICROSOFT_WORD_MOVE_OR_RENAME_DOCXAcciónRename a DOCX, move it within the same drive, or do both, guarded by its current eTag. At least one of new_name or destination_folder_id is required.
Parámetros de entrada
item_idstringObligatorioDOCX driveItem ID.
drive_idstringObligatorioDrive containing the DOCX.
new_namestringNew filename ending in .docx. At least one of new_name or destination_folder_id is required.
expected_etagstringObligatorioCurrent driveItem eTag; the update fails if the item changed.
destination_folder_idstringDestination folder driveItem ID in the same drive. At least one of new_name or destination_folder_id is required.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Read DOCXMICROSOFT_WORD_READ_DOCXAcciónSafely inspect a DOCX as bounded rich OOXML: paragraphs and editable text segments, directly formatted runs, tables and merged-cell metadata, internal images, hyperlinks with withheld targets, paired footnotes, semantic comment threads, pending revisions, page breaks, sections with header/footer references, and the style catalog. Existing image framing is inspected without pixel decoding and image records share a 100-megapixel aggregate safety bound. Returns the current eTag required by every locator and never exposes download URLs, external relationship targets, or document bytes.
MICROSOFT_WORD_READ_DOCXAcciónSafely inspect a DOCX as bounded rich OOXML: paragraphs and editable text segments, directly formatted runs, tables and merged-cell metadata, internal images, hyperlinks with withheld targets, paired footnotes, semantic comment threads, pending revisions, page breaks, sections with header/footer references, and the style catalog. Existing image framing is inspected without pixel decoding and image records share a 100-megapixel aggregate safety bound. Returns the current eTag required by every locator and never exposes download URLs, external relationship targets, or document bytes.
Parámetros de entrada
partsstring[]OOXML text-bearing parts to read. Document includes body paragraphs, table cells, and text boxes in the main document part.
item_idstringObligatorioDOCX driveItem ID.
drive_idstringObligatorioOneDrive or SharePoint document-library drive ID.
max_charactersintegerMaximum text characters to return across all selected parts (1000-500000).
max_paragraphsintegerMaximum paragraphs to return across all selected parts (1-2000).
max_structural_elementsintegerMaximum paragraphs, runs, tables, rows, cells, images, page breaks, sections, and section references returned across selected parts in package order (1-20000).
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Replace TextMICROSOFT_WORD_REPLACE_TEXTAcciónReplace literal text across Word run boundaries in a DOCX, optionally as tracked revisions. Uses an optional eTag guard and retries one definite stale unpinned write.
MICROSOFT_WORD_REPLACE_TEXTAcciónReplace literal text across Word run boundaries in a DOCX, optionally as tracked revisions. Uses an optional eTag guard and retries one definite stale unpinned write.
Parámetros de entrada
findstringObligatorioLiteral text to find.
authorstringRevision author when tracking changes.
item_idstringObligatorioDOCX item ID.
replacestringObligatorioLiteral replacement text.
drive_idstringObligatorioDrive ID.
match_casebooleanUse case-sensitive matching.
occurrencestringenumReplace the first or all matches.
firstallexpected_etagstringOptional exact eTag concurrency guard.
track_changesbooleanRecord replacements as revisions.
upload_strategystringenumUpload mode.
autodirectresumable
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Resolve Tracked ChangesMICROSOFT_WORD_RESOLVE_TRACKED_CHANGESAcciónAccept or reject all pending tracked revisions, or selected revision locators returned by READ_DOCX.
MICROSOFT_WORD_RESOLVE_TRACKED_CHANGESAcciónAccept or reject all pending tracked revisions, or selected revision locators returned by READ_DOCX.
Parámetros de entrada
modestringObligatorioenumAccept or reject all revisions, or selected READ_DOCX revision locators.
accept_allreject_allacceptrejectitem_idstringObligatorioDOCX item ID.
drive_idstringObligatorioDrive ID.
expected_etagstringOptional exact eTag concurrency guard; required for accept or reject with eTag-bound revision locators.
upload_strategystringenumUpload mode.
autodirectresumablerevision_locatorsstring[]Required unique revision locators for accept or reject.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Restore DOCX versionMICROSOFT_WORD_RESTORE_DOCX_VERSIONAcciónRestore a retained DOCX version as a new current version, preserving version history, then observe the item's current metadata in a post-operation read. That metadata does not independently prove which version supplied the current content. A required eTag check rejects already-stale callers before mutation, but Graph does not document an atomic If-Match precondition for this operation.
MICROSOFT_WORD_RESTORE_DOCX_VERSIONAcciónRestore a retained DOCX version as a new current version, preserving version history, then observe the item's current metadata in a post-operation read. That metadata does not independently prove which version supplied the current content. A required eTag check rejects already-stale callers before mutation, but Graph does not document an atomic If-Match precondition for this operation.
Parámetros de entrada
item_idstringObligatorioDOCX driveItem ID.
drive_idstringObligatorioDrive containing the DOCX.
version_idstringObligatorioVersion ID returned by LIST_DOCX_VERSIONS.
expected_etagstringObligatorioExact current eTag returned by READ_DOCX. The restore is rejected before the request if the document has already changed.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Share DOCXMICROSOFT_WORD_SHARE_DOCXAcciónBackward-compatible wrapper for sharing a verified DOCX. Prefer CREATE_DOCX_SHARING_LINK for links and INVITE_DOCX_RECIPIENTS for named recipients. mode defaults to create_link. Invite mode requires recipients, roles, send_invitation, and require_sign_in. create_link returns Graph's intended sharing capability URL so it can be delivered to the intended audience; treat that URL as a secret. Other capability tokens, raw identity data, and raw provider error details are omitted; a bounded provider reason may be returned for a failed request. Partial invite success is reported per recipient. Sharing can change the document eTag and invalidate READ_DOCX locators; call READ_DOCX again before editing. Password protection depends on tenant sharing policy and plan; personal OneDrive may require Microsoft 365 Personal or Family. Setting retain_inherited_permissions=false removes all existing permissions when the item is shared for the first time.
MICROSOFT_WORD_SHARE_DOCXAcciónBackward-compatible wrapper for sharing a verified DOCX. Prefer CREATE_DOCX_SHARING_LINK for links and INVITE_DOCX_RECIPIENTS for named recipients. mode defaults to create_link. Invite mode requires recipients, roles, send_invitation, and require_sign_in. create_link returns Graph's intended sharing capability URL so it can be delivered to the intended audience; treat that URL as a secret. Other capability tokens, raw identity data, and raw provider error details are omitted; a bounded provider reason may be returned for a failed request. Partial invite success is reported per recipient. Sharing can change the document eTag and invalidate READ_DOCX locators; call READ_DOCX again before editing. Password protection depends on tenant sharing policy and plan; personal OneDrive may require Microsoft 365 Personal or Family. Setting retain_inherited_permissions=false removes all existing permissions when the item is shared for the first time.
Parámetros de entrada
modestringenumUse create_link for a view, edit, or embed link or invite for named recipients. Defaults to create_link.
create_linkinviterolesstring[]Required for invite mode: read and/or write roles to grant.
item_idstringObligatorioDOCX driveItem ID.
messagestringOptional plain-text invite message, up to 2,000 characters.
drive_idstringObligatorioDrive containing the DOCX to share.
link_typestringenumFor create_link, create a read-only view, read-write edit, or embeddable embed link. Defaults to view. Omit this field in invite mode.
vieweditembedlink_scopestringenumOptional create_link audience: anonymous, organization, or specified users. Use invite mode to grant named recipients directly. When omitted, Graph uses the organization's default link scope.
anonymousorganizationusersrecipientsobject[]Required for invite mode: recipients identified by exactly one email, alias, or directory objectId.
require_sign_inbooleanRequired for invite mode: whether recipients must sign in.
send_invitationbooleanRequired for invite mode: whether Graph should email the invitation.
sharing_passcodestringOptional password sent to Graph for this sharing permission. Availability depends on tenant sharing policy and plan; personal OneDrive may require a Microsoft 365 Personal or Family paid plan.
expiration_datetimestringOptional sharing permission expiration timestamp in ISO 8601 format. On personal OneDrive, this capability may require a Microsoft 365 Personal or Family paid plan.
retain_inherited_permissionsbooleanWhether to retain inherited permissions when sharing the item for the first time. Setting false removes all existing permissions, which is destructive; omit to use Graph's default behavior.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Upsert DOCXMICROSOFT_WORD_UPSERT_DOCXAcciónCreate or replace a same-name DOCX containing the same validated content supported by CREATE_DOCX. Replacement is always enabled; use CREATE_DOCX for create-only conflict behavior.
MICROSOFT_WORD_UPSERT_DOCXAcciónCreate or replace a same-name DOCX containing the same validated content supported by CREATE_DOCX. Replacement is always enabled; use CREATE_DOCX for create-only conflict behavior.
Parámetros de entrada
blocksarrayOrdered paragraph, table, inline-image, and page-break blocks. Legacy objects containing only text and style remain valid paragraphs.
sourceanyConstrained HTML or Markdown source. Provide exactly one of source or blocks; parsed content is converted to the same validated block model.
footersobjectOptional default, first, and even footer paragraphs.
headersobjectOptional default, first, and even header paragraphs.
drive_idstringObligatorioDestination OneDrive or SharePoint document-library drive ID.
filenamestringObligatorioDestination filename ending in .docx. Path separators are rejected.
upload_strategystringenumUpload mode. Keep the recommended auto setting to use direct upload through 10 MiB and resilient resumable upload above it. Force direct only when resumability is unwanted, or resumable when interruption recovery is required for a smaller document.
autodirectresumableparent_folder_idstringObligatorioDestination folder driveItem ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not