Retrieve themes

get

/ccadmin/v1/themes

Returns a list of themes. The list of themes returned can be filtered by specifying the type and includeagenttheme query params. You can filter by type and additionally filter to include or exclude agent themes.

The valid options for type are:

  • purchased - Return purchased themes only.
  • custom - Return custom themes only.
If the type query param is omitted, then themes are returned.

To include the agent theme pass query param includeagenttheme as true. The default is to exclude the agent theme.

Request

Supported Media Types
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Returned when the operation succeeds.
Body ()
Root Schema : getThemes_response
Type: object
Show Source
Nested Schema : items
Type: array
The list of all themes.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
[
    {
        "isAgentTheme":false,
        "thumbnail":"/img/cloudlake.jpg",
        "theme_additional_fonts":{
        },
        "notes":null,
        "is_active":true,
        "usingCodeView":false,
        "is_default":true,
        "associatedSites":[
            {
                "repositoryId":"siteUS",
                "name":"Commerce Cloud Site"
            }
        ],
        "clone_parent_name":null,
        "repositoryId":"cloudLakeTheme",
        "name":"Cloud Lake Theme",
        "is_custom":false,
        "id":"cloudLakeTheme",
        "clone_parent_id":null,
        "compilationStatuses":[
            {
                "occurredAt":"2020-04-07T15:19:47.000Z",
                "repositoryId":"100001",
                "siteId":"siteUS",
                "details":null,
                "id":"100001",
                "status":101
            }
        ]
    }
]

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
20020Internal error fetching themes.See 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