getLayout

get

/ccagent/v1/pages/layout/{path: .*}

Get Layout. Returns the layout(regions) of a specific page. If the layout ids are added to layoutsRendered parameter and included in the request and if it matches the current page's layout id, then only the region ids for the requested layout are returned, because regions are stored in the simple-cache.js on the client.

Request

Supported Media Types
Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : getLayout_response
Type: object
Show Source
Nested Schema : regions
Type: array
The region data for all the regions of a page.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "layout":"agentCustomerSearchLayout",
    "regions":[
        {
            "width":12,
            "id":"12colAgentCustomerSearchRegion",
            "widgets":[
                {
                    "id":"agentNavigationInst_v1"
                },
                {
                    "id":"agentNotificationsInst"
                }
            ]
        },
        {
            "width":12,
            "id":"SecondaryNavigationRegionForCustomerSearch",
            "widgets":[
                {
                    "id":"secondaryNavigationCustomerSearchAndSelfRegistrationWidgetInst"
                }
            ]
        },
        {
            "width":12,
            "id":"agentCustomerRegistrationRegion",
            "widgets":[
                {
                    "id":"agentCustomerRegistrationInst_v1"
                }
            ]
        },
        {
            "width":12,
            "id":"popupStackCustomerSearch",
            "widgets":[
            ]
        },
        {
            "id":"globalWidgetsRegion0"
        },
        {
            "id":"globalWidgetsRegion1"
        }
    ],
    "route":"/agentCustomerSearch",
    "noindex":false,
    "isPreview":true,
    "metaTags":[
    ],
    "links":[
        {
            "rel":"self",
            "href":"/ccagentui/v1/pages/layout/agentCustomerSearch?layoutsRendered=agentCustomerSearchLayout"
        }
    ],
    "title":"Commerce Cloud Site",
    "layoutName":"Customer Search Layout - Agent"
}

Default Response

The error response
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top