Contents
When updating or deleting items within SharePoint lists via REST you must specify the Entity Tag (eTag) value that was returned with the item during the initial query. This enables SharePoint to determine if the item has changed since it was requested.
How to delete a list using REST API?
The following example shows how to delete a list. When referring to a lookup column inside a list using REST API, use the display name of the lookup column instead of the internal name. The following example shows how to retrieve all of a list’s items. The OData $skip query parameter doesn’t work when querying list items.
This enables SharePoint to determine if the item has changed since it was requested. Alternatively you can tell SharePoint to perform the operation regardless by specifying * as the eTag value. For example:
How to check the version of a list in SharePoint?
The SharePoint REST service, which follows the OData standard, uses Header ETags of SharePoint lists and list items. To check on an item’s version when you perform a PUT, MERGE, or DELETE request, specify an ETag in the If-Match HTTP request header.
How to use REST API in SharePoint 2010?
Create an HTTP request using the POST verb. Add an X-HTTP-Method header with a value of DELETE. Add an If-Match header with a value of the entity’s original ETag. Please follow List Items manipulation via REST API in SharePoint 2010 article for a more details.
When updating or deleting items within SharePoint lists via REST you must specify the Entity Tag (eTag) value that was returned with the item during the initial query. This enables SharePoint to determine if the item has changed since it was requested.
Can anyone explain or point me to a link with samples of doing Update, Delete using Jquery with the SharePoint 2010 Rest API?