CookieStore.AddCookie

April 30, 2019

Description

Adds a new cookie to an existing cookie store

Required parameters

CookieStoreID or CookieStoreName, Cookie.Name, Cookie.Domain

Optional Parameters

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

Note: Date format is yyyy-MM-dd or yyyy-MM-dd hh:mm:ss or in the HTTP-date timestamp format, e.g. Wed, 30 Aug 2019 00:00:00 GMT

Returns

The result of the operation and the cookie that was added to the store if successful

Example request url

https://api.mozenda.com/rest?WebServiceKey=C70E1F84-E12B-4e73-B199-2EE6D43AF44E&Service=Mozenda10&Operation=CookieStore.AddCookie&CookieStoreName=Lowes%20Cart&Cookie.Name=SetFromApi&Cookie.Domain=.mozenda.com&Cookie.Value=Test%20value%20from%20api

Example response

<CookieStoreAddCookieResponse 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Result>Success</Result>
  <CookieStoreID>1006</CookieStoreID>
  <CookieID>1422</CookieID>
  <CookieName>SetFromApi</CookieName>
  <CookieDomain>.mozenda.com</CookieDomain>
  <CookiePath/>
</CookieStoreAddCookieResponse>

Need more information?

We'd love to hear from you.

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