Guest User

UpdateItem

a guest
Nov 15th, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.42 KB | None | 0 0
  1. POST https://outlook.office365.com/EWS/Exchange.asmx HTTP/1.1
  2. Authorization: Bearer xxxxxx (omitted)
  3. Content-Type: text/xml; charset=utf-8
  4. Host: outlook.office365.com
  5. Content-Length: 1262
  6.  
  7. <?xml version="1.0" encoding="utf-8"?>
  8. <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  10. xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
  11. xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
  12.   <soap:Header>
  13.     <t:RequestServerVersion Version="Exchange2013" />
  14.   </soap:Header>
  15.   <soap:Body>
  16.     <UpdateItem MessageDisposition="SaveOnly" ConflictResolution="AutoResolve"
  17.    xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
  18.       <ItemChanges>
  19.         <t:ItemChange>
  20.           <t:ItemId Id = "AAMkAGI3NDEzZjRhLWU3ZjktNGViNy04MTI1LWFhOWRiZDRlY2QwNABGAAAAAADBaXFYA4KPQqsQBpmZF2+2BwAa6KJzOcvaRKcc5UfLbF5tAAAA4fK1AAACk4HLLuxASqDPNieBkIv8AANIKlICAAA=" ChangeKey="CQAAABYAAAACk4HLLuxASqDPNieBkIv8AANIb3mG"/>
  21.           <t:Updates>
  22.  
  23.             <t:SetItemField>
  24.               <t:FieldURI FieldURI = "item:Categories" />
  25.               <t:Message>
  26.                 <t:Categories>
  27.                   <t:String>Workout</t:String>
  28.                 </t:Categories>
  29.               </t:Message>
  30.             </t:SetItemField>
  31.           </t:Updates>
  32.         </t:ItemChange>
  33.       </ItemChanges>
  34.     </UpdateItem>
  35.   </soap:Body>
  36. </soap:Envelope>
Advertisement
Add Comment
Please, Sign In to add comment