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