Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. $.ajax({
  2. url: _spPageContextInfo.webAbsoluteUrl + url,
  3. type: "PATCH",
  4. headers: {
  5. "accept": "application/json;odata=verbose",
  6. "__metadata": {"type": "SP.Data.CaseListItem"},
  7. "X-RequestDigest": $("#__REQUESTDIGEST").val(),
  8. "content-Type": "application/json;odata=verbose",
  9. "X-Http-Method": "PATCH",
  10. "If-Match": olditem.__metadata.etag
  11. },
  12. data: JSON.stringify(item),
  13. success: function (data) {
  14. console.log(data);
  15. },
  16. error: function (error) {
  17. console.log(JSON.stringify(error));
  18. }
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement