Lodol Docs

Microsoft SharePoint

API actions for the Microsoft SharePoint integration.

Microsoft SharePoint

Manage SharePoint lists and files through Microsoft Graph, including uploads and list automation.


Add list item

Add a new item to a SharePoint list.

Parameters

ParameterTypeRequiredDescription
site_idstringYesThe SharePoint site hostname (e.g., 'contoso.sharepoint.com').
list_idstringYesThe SharePoint list ID.
fieldsobjectYesObject containing field values for the new item. A default generic list only has a 'Title' column; custom columns must be added to the list before they can be used.

Response

{
  "fields": {},
  "id": "item123"
}

Create list

Create a new SharePoint list in a site.

Parameters

ParameterTypeRequiredDescription
site_idstringYesThe SharePoint site hostname (e.g., 'contoso.sharepoint.com').
list_namestringYesName for the list.
descriptionstringNoOptional list description.
templatestringNoOptional list template (genericList, documentLibrary, etc.).

Response

{
  "displayName": "New List",
  "id": "list123"
}

Delete list item

Delete an item from a SharePoint list.

Parameters

ParameterTypeRequiredDescription
site_idstringYesThe SharePoint site hostname (e.g., 'contoso.sharepoint.com').
list_idstringYesThe SharePoint list ID.
item_idstringYesThe item ID to delete.

Response

{
  "deleted": true
}

Get list items

Get items from a SharePoint list.

Parameters

ParameterTypeRequiredDescription
site_idstringYesThe SharePoint site hostname (e.g., 'contoso.sharepoint.com').
list_idstringYesThe SharePoint list ID.
topnumberNoOptional limit for the number of items to return.
filter_querystringNoOptional OData $filter expression.

Response

{
  "value": [
    {
      "id": "item1"
    }
  ]
}

Update list item

Update an existing item in a SharePoint list.

Parameters

ParameterTypeRequiredDescription
site_idstringYesThe SharePoint site hostname (e.g., 'contoso.sharepoint.com').
list_idstringYesThe SharePoint list ID.
item_idstringYesThe item ID to update.
fieldsobjectYesObject containing field values to update. A default generic list only has a 'Title' column; custom columns must exist on the list.

Response

{
  "fields": {},
  "id": "item123"
}

Upload file

Upload a file to a SharePoint document library.

Parameters

ParameterTypeRequiredDescription
site_idstringYesThe SharePoint site hostname (e.g., 'contoso.sharepoint.com').
file_pathstringYesUploaded file reference for the file to upload.
folder_pathstringNoOptional folder path inside the site drive.
conflict_behaviorstringNoHow to handle filename conflicts (rename, replace, or fail).

Response

{
  "id": "file123",
  "name": "file.txt",
  "webUrl": "https://..."
}

On this page