updateLayout
put
/ccadmin/v1/layouts/{id}
Update Layout. Update a layout by layout ID and request parameters. Layout will have dynamic properties which change from one layout to another.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): string
ID of the layout.
Header Parameters
-
X-CC-Workset: string
The ID of the workset that this change will appear in. If this header is missing, the change will be made in the default workset.
Root Schema : updateLayout_request
Type:
Show Source
object
-
properties(required):
object properties
List of properties of the layout.
Example:
{
"properties":{
"urlSlug":"",
"defaultPage":false,
"notes":"home update test",
"seoMetaDescription":null,
"seoMetaKeywords":null,
"displayName":"Home",
"pageTitle":null,
"sites":[
"100001"
],
"skuIds":[
"productId: 123"
],
"target":100,
"seoMetadataLayoutPreviewTitle":null,
"layoutCollections":[
"Gift Shop / For Him / Under $25 (ca90042)"
],
"pageAddress":"aboutUs3",
"pageDisplayName":"CTEST",
"repositoryId":"homePageLayout",
"metaTags":"",
"orderStates":[
"FAILED_APPROVAL"
],
"layoutViewports":"xs,sm",
"links":[
"http://localhost:9080/occ-admin/"
],
"collectionId":[
"ca90042"
],
"contentType":""
}
}
Nested Schema : properties
Type:
object
List of properties of the layout.
Show Source
-
collectionId:
array collectionId
ID for collection. Displayed on collection layouts
-
contentType:
string
Used to target different pages for specific content types. Displayed on content layouts
-
defaultPage:
boolean
Boolean if this page is the default page.
-
displayName:
string
Display name of the layout. Displayed on all.
-
layoutCollections:
array layoutCollections
The layout of the chosen selection. Displayed on Collection layouts.
-
layoutViewports:
string
Viewport associations for the layout. Displayed on all layouts.
-
links:
array links
Links to pages
-
metaTags:
string
Tags which are used by search engines to determine the relevance of the given page to the search request. Displayed on all layouts.
-
notes:
string
Notes of the layout. Displayed on all.
-
orderStates:
array orderStates
Layout will only be used for order statuses you select. Displayed on Checkout layout.
-
pageAddress:
string
The URL address of the page.
-
pageDisplayName:
string
Name displayed on store for this layout.
-
pageTitle:
string
Name of the collection. Displayed on all (except: Product, Collection)
-
repositoryId:
string
Repository ID of the layout.
-
seoMetadataLayoutPreviewTitle:
string
Layout preview title which is used by search engines to determine the relevance of the given page to the search request.
-
seoMetaDescription:
string
Layout description which is used by search engines to determine the relevance of the given page to the search request. Displayed on only Home and Article Layouts.
-
seoMetaKeywords:
string
keywords which are used by search engines to determine the relevance of the given page to the search request. Displayed on only Home and Article Layouts.
-
sites:
array sites
Sites associated with this layout. Displayed on all layouts.
-
skuIds:
array skuIds
ProductID's for up to 5 products
-
target:
boolean
Setup for b2b (account )
-
urlSlug:
string
Specific URL address of site or content item. Displayed on Content layouts
Nested Schema : collectionId
Type:
array
ID for collection. Displayed on collection layouts
Show Source
Nested Schema : layoutCollections
Type:
array
The layout of the chosen selection. Displayed on Collection layouts.
Show Source
Nested Schema : orderStates
Type:
array
Layout will only be used for order statuses you select. Displayed on Checkout layout.
Show Source
Nested Schema : sites
Type:
array
Sites associated with this layout. Displayed on all layouts.
Show Source
Nested Schema : items
Type:
object
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : updateLayout_response
Type:
Show Source
object
-
displayName:
string
Display name of the layout.
-
notes:
string
Notes of the layout.
-
pageTitle:
string
Name of the collection.
-
repositoryId:
string
Repository ID of the layout.
-
seoMetaDescription:
string
Layout description which is used by search engines to determine the relevance of the given page to the search request.
-
seoMetaKeywords:
string
keywords which are used by search engines to determine the relevance of the given page to the search request.
Example Response (application/json)
{
"seoMetaDescription":"",
"notes":"home update test",
"seoMetaKeywords":"",
"pageTitle":"",
"displayName":"Home",
"repositoryId":"homePageLayout"
}
412 Response
ETag mismatch. Asset has been updated by another user.
500 Response
Error response thrown when cannot retrieve a layout to update.
Root Schema : updateLayout_failureResponse
Type:
Show Source
object
-
errorCode:
string
Default Value:
32003
Error code for message -
message:
string
Default Value:
Error updating a layout.
Message explaining the error -
status:
string
Default Value:
500
HTTP status code for the error
Example Response (application/json)
{
"errorCode":"32003",
"message":"Error updating a layout.",
"status":"500"
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|32003|Error updating a layout.|
|25100|Internal Error|
|32020|The specified page address {0} must be unique.|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code