I'm trying to connect to a REST API using HTTP Request. Ideally, GET and POST methods are working to read/write into a Sharepoint list via REST api. But there is one function that requires to edit an existing item that uses:
X-HTTP-Method: MERGE
If I use POST, it creates a new item but the requirement is to update. Under which parameter of HTTP Request can I pass
X-HTTP-Method?
Authorization: "Bearer " + accessToken
Accept: "application/json;odata=verbose"
Content-Type: "application/json"
X-HTTP-Method: "MERGE"
{
"__metadata": {
"type": "SP.Data.TestListItem"
},
"Status": "In Progress"
}