Hot answers tagged

3

HTTP POST: https://<org>.sharepoint.com/sites/dev/_api/web/lists/getByTitle('list title')/items(<item id>) Payload: { "__metadata": { "type": "SP.Data.ClientsListItem" // your might be different }, "OData__ModerationStatus": 0, "OData__ModerationComments": "Approved by <user name>" } To find out your list'...


2

Your REST URL should be: _spPageContextInfo.webServerRelativeUrl + _api/web/lists/getbytitle('test')/items


1

As told by Sergei Sergeev. We can change approval status of a file using Rest. 1. post request header. We need all these parameters in header. (if access token have fullControl as permission then we even don't need x-requestdigest in header) Accept: application/json;odata=verbose Authorization: Bearer <Your access token> Content-Type: application/...


1

Apparently the status of Update Document metadata using REST API is : nocontent: {"readyState":4,"responseText":"","status":204,"statusText":"No Content"} So this word shouldn't worry you just check and see if the field changed? Also you can use at least these two type of REST Endpoint for url for updation document metadata, which both of them return ...


1

The column names are case sensitive. Is the column "status" or "Status". Are you sure the ID of the item is "4"? Here's what I use that works (for AJAX), which except for the "Authorization" looks to be the same as your example: /sites/testSite/_api/web/lists/GetByTitle('Announcements')/Items(1) { "accept": "application/json;odata=verbose", "content-...


Only top voted, non community-wiki answers of a minimum length are eligible