Microsoft SharePoint icon

Microsoft SharePoint

Interact with Microsoft SharePoint API

File → Update

AI-generated

Summary

Update a SharePoint file’s name, its contents, or both. Select the site and file, then optionally provide a new name and enable content changes to replace the file with binary data from an input property.

Inputs

  • Site (required) — Choose a site from the searchable list or enter its ID.
  • Parent Folder (required) — Choose a folder from the searchable list or enter its ID. The field is used for selection in the UI; the update request targets the selected file by its ID.
  • File (required) — Choose a file from the searchable list or enter its ID.
  • Updated File Name — Optional new name. If omitted, the existing name is retained.
  • Change File Content (required) — Enable this to replace the file contents.
  • Updated File Contents (required) — When content changes are enabled, enter the name of the incoming binary data property to use (for example, data).

Output shape

A single item containing the SharePoint API response for the file update.

The operation sends a PATCH request to update the file metadata. When content changes are enabled, it also sends a PUT request with the selected binary data and returns that request’s response in the item JSON. API errors are raised as node errors.

Links

Discussion