I am using SharePoint Designer Workflow 2013 and would like to use the SharePoint Rest API to update some list item.
I know how to use the "Call HTTP request" action with GET method. But how to use the POST method?
Do I need to set the body as JSON?
UPDATE I try to implement the post rest api as in the blogs in the answers. I send the responseCode and responseDictionary as an email to see what are the results. See below:
ret api url: https://myCompany.sharepoint.com/sites/DMS-WF-Test-Infra/_api/web/lists/GetByTitle('TestKH4')/items(1)
entityType: {"type":"SP.Data.TestKH4ListItem"} requestBody: {"__metadata":{"type":"SP.Data.TestKH4ListItem"},"Title":"aaaaa"}
responseCode: BadRequest
responseDictionary: {"odata.error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":{"lang":"en-US","value":"The parameter __metadata does not exist in method GetById."}}}
What I am doing wrong?