CookieStore.UpdateCookie

April 30, 2019

Description

Updates an existing cookie

Required cookie selection parameters

CookieID or CookieStoreName and CookieName

Optional cookie selection parameters

If using CookieID: (None)
If using CookieStoreName and CookieName: CookieDomain, CookiePath, AllMatches (to match and apply to multiple cookies)

Optional cookie update parameters

Cookie.Name, Cookie.Domain, Cookie.Value, Cookie.Expires, Cookie.HttpOnly, Cookie.Secure, Cookie.Path

Returns

The result of the operation including the CookieStoreID and CookieCount. If only one cookie was updated then the CookieID and the CookieName will also be included

If not using CookieID and multiple cookies match the parameters and “AllMatches=true” is not included in the parameters then an error will be returned

Example request url

https://api.mozenda.com/rest?WebServiceKey=C70E1F84-E12B-4e73-B199-2EE6D43AF44E&Service=Mozenda10&Operation=CookieStore.UpdateCookie&CookieStoreName=Lowes%20Cart&CookieName=SetFromApi&Cookie.Value=Updated%20from%20cookiestore.update%20api

Example response single cookie

<CookieStoreUpdateCookieResponse 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Result>Success</Result>
  <CookieStoreID>1006</CookieStoreID>
  <CookieCount>1</CookieCount>
  <CookieID>1427</CookieID>
  <CookieName>SetFromApi</CookieName>
</CookieStoreUpdateCookieResponse>

Example response multiple cookies

<CookieStoreUpdateCookieResponse 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Result>Success</Result>
  <CookieStoreID>1006</CookieStoreID>
  <CookieCount>2</CookieCount>
  <CookieName>SetFromApi</CookieName>
</CookieStoreUpdateCookieResponse>

Need more information?

We'd love to hear from you.

100% Privacy. You are that important to us. Privacy Policy