Introduction
Create, update and delete CMS components like pages, global slots, drafts and file uploads.
Error Codes
The Skechers Web Service uses conventional HTTP response codes to indicate the success or failure of an API request. When a request is valid, but does not complete successfully (e.g. user not found), a response is given containing a specific error code and error message about the point of failure.
Response Parameters
-
errorCode: string
An error code that can be referenced in the table to the right. Refer to this error code when identifying errors. -
errorMessage: string
A human-readable message providing more details about this error.
Codes
00001 | Request Timeout. |
---|---|
00002 | Invalid form data. |
00004 | Third party API is down. |
Add Messages to a Message component to all locales
add messages to a MessageComponent with a specific name
Request Parameters
-
kvp: map
-
name: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"name":"/test","kvp":{"test1":"test1","test2":"test2"}}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/addMessageToAllLocales
Example Response
Live Response
Create a content document
persistent a content document to couch via file upload.
Request Parameters
-
prefixfile: string
media file base name , like delivery_man -
filename: string
optionalgeneric content document file name. -
locale: string
locale ID, such as en_us, en_uk, de_de -
title: string
optionalcontent document title. -
linkurl: string
optionallinkurl associated with the file. -
linktype: string
optionallink type. -
title: string
optionalcontent document title. -
alttext: string
optionalalt text. -
imagemap: string
optionalimagemap. -
height: int
optionalimage file height. -
width: int
optionalimage file width. -
startdate: long
start date in long integer format by js conversion. -
enddate: long
end date in long integer format by js conversion.
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"imagemap":"test image map","linktype":"Info","alttext":"SKECHERS Delivery Guy","height":483,"locale":"en_US","linkurl":"/info/slip-and-fall-warranty","prefixfile":"delivery-man","filename":"TEST_1234.jpg","title":"SKECHERS Delivery Guy","enddate":2951917525475,"width":269,"startdate":1374044400000}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/createContentDoc
Example Response
Live Response
Create a keyword group
Use this to create a keyword group
Request Parameters
-
locale: string
-
keywordtype: string
-
input: list[string]
-
output: list[string]
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US","keywordtype":"search_redirects","input":["silver","grey","sparking"],"output":["silver"]}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/createKeywordGroup
Example Response
Live Response
Create a new Group
Create a new Group
Request Parameters
-
locale: string
-
admin: boolean
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"name":"test company","garpacid":"12345","url":"/testCompany","shippingmethods":{},"description":"empty","locale":"en_US_direct","code":"adf93d","discountcode":"30%off","status":"active"}} ' http://retailapi-skechers-com.dev.skechers.com/api/group/createGroup
Example Response
Live Response
Create/Update a Page
Use this to create/update a page
Request Parameters
-
url: string
-
locale: string
-
pagetitle: string
-
metatext: string
optional -
topnav: boolean
indicates whether the page contains a top navigation -
sitemap: boolean
indicates whether the page will be included in the siteamp -
lastmodifiedname: string
-
lastmodifiedtime: long
-
startdate: long
-
enddate: long
-
rows: list
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"sitemap":true,"url":"/fortest","pagetitle":"for test","topnav":true,"locale":"en_UK","lastmodifiedname":"frontend@skx.com","metatext":"this is for test","lastmodifiedtime":123456,"id":"page:en_uk:/fortest","status":"active","enddate":1411494671167,"rows":[{"rowtype":"full","slots":[{"bgcolor":"black","droplets":[{"dtype":"html","styles":[],"link":"http://www.skechers.com/en-us","title":"View All","enddate":123459,"html":"hello","productlimit":0,"startdate":123456}],"lastmodifiedname":"frontend@skx.com","key":"header","lastmodifiedtime":123456,"bgimage":"none"}]}],"startdate":1411424671167}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/updatePage
Example Response
Live Response
Create/Update a Page Draft
Use this to create/update a page draft
Request Parameters
-
url: string
-
locale: string
-
template: string
-
pagetitle: string
-
metatext: string
optional -
topnav: boolean
indicates whether the page contains a top navigation -
dynamic: boolean
-
lastmodifiedname: string
-
lastmodifiedtime: long
-
droplets: list
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"url":"/fortest","pagetitle":"for test","topnav":true,"locale":"en_UK","lastmodifiedname":"frontend@skx.com","metatext":"this is for test","lastmodifiedtime":123456,"id":"pagedraft:en_uk:/fortest","status":"active","template":"templateA","rows":[{"rowtype":"full","slots":[{"bgcolor":"black","droplets":[{"dtype":"html","styles":[],"enddate":123459,"html":"hello","productlimit":0,"startdate":123456}],"lastmodifiedname":"frontend@skx.com","key":"header","lastmodifiedtime":123456,"bgimage":"none"}]}]}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/updatePageDraft
Example Response
Live Response
Create/Update a global Slot
Use this to update a global slot
Request Parameters
-
id: string
-
key: string
-
refid: string
optional -
lastmodifiedname: string
-
lastmodifiedtime: long
-
droplets: list
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"bgcolor":"black","droplets":[{"dtype":"html","link":"http://www.skechers.com/en-us","title":"View All","enddate":123459,"html":"hello","productlimit":0,"startdate":123456}],"lastmodifiedname":"frontend@skx.com","key":"en_CA:testfooter","lastmodifiedtime":123456,"id":"slot:en_CA:testfooter","bgimage":"none"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/updateSlot
Example Response
Live Response
Create/Update a keyword group
Use this to create/update a keyword group
Request Parameters
-
id: string
-
locale: string
-
keywordtype: string
-
input: list[string]
-
output: list[string]
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US","keywordtype":"search_redirects","input":["silver","grey","sparking"],"output":["silver"]}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/updateKeywordGroup
Example Response
Live Response
Delete a ContentDocument
Use this to delete a contentDocument
Request Parameters
-
locale: string
-
filename: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US","filename":"yellowduck_cbabe62db51b.png"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/deleteContentDoc
Example Response
Live Response
Delete a Group
Use this to delete a specific group
Request Parameters
-
locale: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"url":"/testCompany"}} ' http://retailapi-skechers-com.dev.skechers.com/api/group/deleteGroup
Example Response
Live Response
Delete a global Slot
Use this to delete a global slot
Request Parameters
-
locale: string
optional -
key: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US","key":"en_US:footer"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/deleteSlot
Example Response
Live Response
Delete a keyword group
Use this to delete a KeywordGroup
Request Parameters
-
locale: string
-
id: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US","id":"test_search_keywordgroup123"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/deleteKeywordGroup
Example Response
Live Response
Delete a page
Use this to delete a page
Request Parameters
-
locale: string
-
url: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US","url":"/info/help"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/deletePage
Example Response
Live Response
Delete a page draft
Use this to delete a page draft
Request Parameters
-
locale: string
-
url: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US","url":"/info/help"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/deletePageDraft
Example Response
Live Response
Get All Redirects
Use this to get all Redirects by a locale
Request Parameters
-
locale: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getRedirects
Example Response
Live Response
Get All Thesaurus
Use this to get all Thesaurus by a locale
Request Parameters
-
locale: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getThesaurus
Example Response
Live Response
Get Apostrophe
Use this to get a Apostrophe by locale
Request Parameters
-
locale: string
-
searchword: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US","searchword":""}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getApostrophe
Example Response
Live Response
Get CMS Revisions
Use this to get Revisions for page, pagedraft, slot, messages, emailContent
Request Parameters
-
id: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"id":"page:en_us:"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getCMSRevisions
Example Response
Live Response
Get EmailContent
Use this to get an EmailContent with a specific name
Request Parameters
-
locale: string
-
name: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US","name":"orderConfirmation"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getEmailContent
Example Response
Live Response
Get EmailContents
Use this to get a list of EmailContents for a specific locale
Request Parameters
-
locale: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getEmailContents
Example Response
Live Response
Get Group
Use this to get a specific group with a specific locale
Request Parameters
-
locale: string
-
url: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US_direct","url":"/testCompany"}} ' http://retailapi-skechers-com.dev.skechers.com/api/group/getGroup
Example Response
Live Response
Get Group By GarpacId
Use this to get a specific group by garpac id
Request Parameters
-
locale: string
-
garpacId: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US_direct","garpacId":"10469"}} ' http://retailapi-skechers-com.dev.skechers.com/api/group/getGroupByGarpacId
Example Response
Live Response
Get Group by code
Use this to get a specific group by group code
Request Parameters
-
locale: string
-
code: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US_direct","code":"J8fImA"}} ' http://retailapi-skechers-com.dev.skechers.com/api/group/getGroupByCode
Example Response
Live Response
Get Groups
Use this to get all the groups for a specific locale
Request Parameters
-
locale: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US_direct"}} ' http://retailapi-skechers-com.dev.skechers.com/api/group/getGroups
Example Response
Live Response
Get MessageComponent
Use this to get a MessageComponent with a specific name
Request Parameters
-
locale: string
-
name: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US","name":"/style/default"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getMessageComponent
Example Response
Live Response
Get MessageComponents
Use this to get a list of MessageComponents for a specific locale
Request Parameters
-
locale: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getMessageComponents
Example Response
Live Response
Get PageDrafts
Use this to get a list of pages drafts belong to a specific locale
Request Parameters
-
locale: string
-
url: string
optional -
lastmodifiedname: string
optional
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getPageDrafts
Example Response
Live Response
Get Pages
Use this to get a list of pages belong to a specific locale
Request Parameters
-
locale: string
-
url: string
optional -
lastmodifiedname: string
optional
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getPages
Example Response
Live Response
Get Pages By Media File
Use this to get a list of pages with specific locale and media file name
Request Parameters
-
locale: string
-
filename: string
optional
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US","filename":"delivery-man_1beef7999160.jpg"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getPagesByFileName
Example Response
Live Response
Get Site maintenance Setting
Get Site maintenance Setting
Request Parameters
-
locale: string
-
admin: boolean
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US","admin":"false"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getSiteMaintenanceSetting
Example Response
Live Response
Get SiteMap
Use this to get the sitemap
Request Parameters
-
locale: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getSiteMapForUpdate
Example Response
Live Response
Get Slots
Use this to get a list of Slots
Request Parameters
-
locale: string
optional -
key: string
optional
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US","key":"en_US:footer"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getSlots
Example Response
Live Response
Get a PageDraft
Use this to get a PageDraft using its locale and url
Request Parameters
-
locale: string
-
url: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US","url":"/"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getPageDraft
Example Response
Live Response
Get a Redirect
Use this to get a Redirect by a search keyword
Request Parameters
-
locale: string
-
searchword: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getRedirects
Example Response
Live Response
Get a Slot
Use this to get a Slot using its key
Request Parameters
-
locale: string
-
key: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US","key":"en_US:footer"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getSlot
Example Response
Live Response
Get a Thesaurus
Use this to get a Thesaurus by a search keyword
Request Parameters
-
locale: string
-
searchword: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getThesaurus
Example Response
Live Response
Get all Stopwords
Use this to get a Stopwords by a search keyword
Request Parameters
-
locale: string
-
searchword: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_US","searchword":""}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getStopwords
Example Response
Live Response
Get all contents by locale
retrieves a list of the contentDocuments by locale
Request Parameters
-
locale: string
locale ID, such as en_us, en_uk, de_de -
filename: string
optionalgeneric content document file name.
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"locale":"en_us"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/getContentDocs
Example Response
Live Response
Get shipping address
Get shipping address using garpac id and employee id
Request Parameters
-
employeeid: string
optional -
garpacid: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"employeeid":"56789","garpacid":"123"}} ' http://retailapi-skechers-com.dev.skechers.com/api/group/getEmployeeShippingAddress
Example Response
Live Response
Preview a Page
Use this to write the Page object to the preview cache
Request Parameters
-
url: string
-
locale: string
-
pagetitle: string
-
metatext: string
optional -
topnav: boolean
indicates whether the page contains a top navigation -
lastmodifiedname: string
-
lastmodifiedtime: long
-
startdate: long
-
enddate: long
-
droplets: list
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"url":"/fortest","pagetitle":"for test","topnav":true,"locale":"en_UK","lastmodifiedname":"frontend@skx.com","metatext":"this is for test","lastmodifiedtime":123456,"status":"active","enddate":1411494671167,"rows":[{"rowtype":"full","slots":[{"key":"header","lastmodifiedname":"frontend@skx.com","lastmodifiedtime":123456,"droplets":[{"dtype":"html","enddate":123459,"html":"hello","productlimit":0,"startdate":123456}]}]}],"startdate":1411424671167}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/preview
Example Response
Live Response
Preview an Email
Use this to preview an EmailContent with a specific name
Request Parameters
-
name: string
-
emailTo: string
-
subject: string
-
html: string
optional -
text: string
optional
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"name":"Order Confirmation","subject":"Order Confirmation","text":"Order id:{{orderid}}","previewDataNames":["CC"],"emailTo":"test@yahoo.com","from":"order@skechers.com","html":"Order id:{{orderid}}"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/previewEmail
Example Response
Live Response
Reassign Global Slot
Reassign Global Slot
Request Parameters
-
pages: List[string]
optional -
drafts: List[string]
optional
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"pages":["page:en_us:/jmc-test"],"key":"slot:en_US:AUH","newkey":"slot:en_US:Footer"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/updateGlobalSlot
Example Response
Live Response
Remove Messages of a Message component from all locales
Remove messages of MessageComponent with a specific name from specific locales, if you don't specify the locales(empty list), then the change will apply to all locales. if the name of the messageComponent is not specified, then the message(s) will be removed from all messageComponents.
Request Parameters
-
name: string
optional -
keys: List[String]
keys of the messages -
locs: List[String]
locales
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"name":"/test","keys":["test1","test2"],"locs":["en_US"]}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/removeMessageFromAllLocales
Example Response
Live Response
Udpate Message Component
update Message Component with a specific name
Request Parameters
-
locale: String
-
kvp: map
-
name: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"name":"/test","locale":"en_US","kvp":{"test1":"test1","test2":"test2"}}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/updateMessageComponent
Example Response
Live Response
Update EmailContent
Use this to update an EmailContent
Request Parameters
-
id: string
-
locale: string
-
name: string
-
from: string
-
subject: string
-
html: string
-
text: string
-
previewdata: string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"name":"checkout","subject":"order confirmation","description":"","text":"{{name}}, {{feature.description}}!","previewdata":"","locale":"en_US","id":"checkout","from":"order@skechers.com","html":"{{name}}, {{feature.description}}!"}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/updateEmailContent
Example Response
Live Response
Update Group
Update Group
Request Parameters
-
locale: string
-
admin: boolean
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"name":"test company","garpacid":"12345","url":"/testCompany","shippingmethods":{},"description":"description","locale":"en_US_direct","code":"adf93d","id":"group:en_us_direct:/testCompany","discountcode":"30%off","status":"active"}} ' http://retailapi-skechers-com.dev.skechers.com/api/group/updateGroup
Example Response
Live Response
Update Site maintenance Setting
Update Site maintenance Setting
Request Parameters
-
locale: string
-
maintenanceMsg: string
-
maintenanceUrl: string
-
start: string
optional -
end: string
optional
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"maintenanceUrl":"http://localhost:9000","locale":"en_US","maintenanceMsg":"123","end":0,"start":0}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/updateSiteMaintenanceSetting
Example Response
Live Response
Update Site maintenance doc
Update Site maintenance doc
Request Parameters
-
status: Int
0 -> Not in Maintenance, 1 -> Site shows Maintenance Message, 2 -> Pages Gets Redirected to Maintenance Static Page, 3 -> Site is readonly -
start: long
Start time of site maintenance in milliseconds -
end: long
End time of site maintenance in milliseconds
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"status":0,"start":0,"end":0}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/updateSiteMaintenanceDoc
Example Response
Live Response
Update SiteMap
Use this to update sitemap
Request Parameters
-
locale: string
-
values: list of string
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"values":["/help","/info/return"],"locale":"en_US"},"exampleResponse":{"result":{}}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/updateSiteMap
Example Response
Live Response
Update a content document
update a content document its attributes
Request Parameters
-
locale: string
locale ID, such as en_us, en_uk, de_de -
filename: string
optionalgeneric content document file name. -
title: string
optionalcontent document title. -
linkurl: string
optionallinkurl associated with the file. -
linktype: string
optionallink type. -
title: string
optionalcontent document title. -
alttext: string
optionalalt text. -
imagemap: string
optionalimagemap. -
height: int
optionalimage file height. -
width: int
optionalimage file width. -
startdate: long
start date in long integer format by js conversion. -
enddate: long
end date in long integer format by js conversion.
Example Request
curl \
-X POST \
-H "Content-type: application/json" \
-d '{"apikey":"AY8ZRNUHN2I4MNM5JQDDWVBXWQBEUH","request":{"imagemap":"delivery man","linktype":"Info","alttext":"SKECHERS Delivery Man","height":160,"locale":"en_US","linkurl":"/info/slip-and-fall-warranty","filename":"delivery-man_2a5a8d49da2a.jpg","title":"SKECHERS Delivery Guy","enddate":2951917525475,"width":320,"startdate":1374044400000}} ' http://retailapi-skechers-com.dev.skechers.com/api/cms/updateContentDoc