Retrieve an active theme

get

/ccadmin/v1/themes/active

Returns the active theme for the specified site, or the default theme if the site is not specified.

Request

Supported Media Types
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Returned when the operation succeeds.
Body ()
Root Schema : getActiveTheme_response
Type: object
Show Source
Nested Schema : items
Type: array
List of themes.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
[
    {
        "isAgentTheme":false,
        "thumbnail":null,
        "theme_additional_fonts":{
        },
        "notes":null,
        "is_active":true,
        "usingCodeView":false,
        "is_default":true,
        "associatedSites":[
            {
                "repositoryId":"siteUS",
                "name":"Commerce Cloud Site"
            }
        ],
        "clone_parent_name":"Cloud Lake Theme",
        "repositoryId":"darkTheme",
        "name":"Dark Theme",
        "is_custom":true,
        "id":"darkTheme",
        "clone_parent_id":"100001",
        "compilationStatuses":[
        ]
    }
]

400 Response

Returned if the site ID referenced in the body is invalid.
Body ()
Root Schema : getActiveTheme_400response
Type: object
Show Source
Example Response (application/json)
{
    "errorCode":"30014",
    "message":"Site does not exist",
    "status":"400"
}

Default Response

The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
Error CodeDescriptionPossible Fix
70000Theme internal errorSee returned error messages for more information.
30014Site with given ID does not exist on systemEnsure you have specified a valid site ID.
70012Error fetching active themeSee returned error messages for more information.
70021Internal error retrieving themeSee returned error messages for more information.

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