Sending an HTTP request to SharePoint
1 min·
·
·
Will Wright
Power Automate
SharePoint
Flow
Table of Contents
SharePoint REST API - This article is part of a series.
This is my guide for patching SharePoint items using the SharePoint REST API. All code can be copied and pasted into the body. Method, Uri and Headers will need to be different depending on whether you’re creating or updating an item. All Methods, Uri and Headers are provided below.
You can get the sp.listitem code from _api/web/lists/GetByTitle('<ListName>')
Get ssplist from
https://<Tenant>.sharepoint.com/sites/<ListName>/_api/web/lists/getbytitle('<list title>')/fields?$filter=InternalName eq '<managed metadata name>'
Update Exisiting Item #
Method #
Patch
Uri #
_api/web/lists/getbytitle('<ListName>')/items('ItemId')
Headers #
content-type: application/json;odata=verbose
X-HTTP-Method: MERGE
IF_MATCH: *
Create New Item #
Method #
Post
Uri #
_api/web/lists/getbytitle('<ListName>')/items
Headers #
content-type: application/json;odata=verbose
accept: application/json;odata=verbose
X-RequestDigest: $("#__REQUESTDIGEST").val()
SharePoint REST API - This article is part of a series.
Related
Update Columns in SharePoint using REST API
4 mins·
·
Will Wright
Power Automate
SharePoint
Flow
Update Environment Variables
3 mins·
loading
·
loading
Will Wright
Power Automate
Dataverse
Canvas Apps
Environment Variables
Flow