문제

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.?

도움이 되었습니까?

해결책

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)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top