2

I am trying to update custom list item using REST API.

I was successfully updated item but in response of request i am not getting updated record.

I want to store updated etag but I am getting 204 response code and no content message.

How can I get updated Record in response.?

1 Answer 1

3

SharePoint REST API does not return the updated item/object after updating it. You are right! It only returns status code 204 if the update request is successful.

So to get updated item/object, you have to make another GET request.

/_api/web/lists/getbytitle('list name')/items(item id)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.