Retrieve a theme by ID
get
/ccadmin/v1/themes/{id}
Returns a particular theme by the ID specified.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): string
The ID of the theme.
Response
Supported Media Types
- application/json
200 Response
Returned when the operation succeeds.
Root Schema : getTheme_response
Type:
Show Source
object
-
associatedSites:
string
Lists the sites which have this as their configured theme.
-
clone_parent_id:
string
Clone parent id of the theme.
-
clone_parent_name:
string
Clone parent name of the theme.
-
compilationStatuses:
string
Indicates status of recent theme compilations for this theme.
-
id:
string
The ID of the theme.
-
is_active:
boolean
Whether theme is active.
-
is_custom:
boolean
Whether theme is custom or not.
-
is_default:
boolean
Indicates if this is the default theme. Only one will have this set to true. By default this will be Cloud Lake Theme.
-
isAgentTheme:
boolean
Indicates if this is the theme used in the Agent UI. There is only one Agent theme on the system.
-
name:
string
Theme name.
-
notes:
string
Notes of the theme.
-
repositoryId:
string
Repository ID of the theme.
-
theme_additional_fonts:
string
Lists additional fonts configured for the theme.
-
theme_styles_color:
object theme_styles_color
Color information of theme styles.
-
theme_styles_general:
object theme_styles_general
General information of theme styles.
-
theme_styles_typography:
object theme_styles_typography
Typography information of theme styles.
-
thumbnail:
string
Optional thumbnail image of the theme.
-
usingCodeView:
boolean
Indicates if Code View has been used to configure the theme.
Nested Schema : theme_styles_color
Type:
object
Color information of theme styles.
Show Source
-
@ButtonPrimaryBackgroundColor:
string
Button Primary Background Color
-
@ButtonPrimaryBorderRadius:
string
Button Primary Border Radius
-
@ButtonPrimaryFontFamily:
string
Button Primary Font Family
-
@ButtonPrimaryFontStyle:
string
Button Primary Font Style
-
@ButtonPrimaryFontWeight:
string
Button Primary Font Weight
-
@ButtonPrimarySize:
string
Button Primary Size
-
@ButtonPrimaryTextColor:
string
-
@ButtonPrimaryTextDecoration:
string
Button Primary Text Decoration
-
@ButtonPrimaryUseGradient:
string
Button Primary Use Gradient
-
@ButtonSecondaryBackgroundColor:
string
Button Secondary Background Color
-
@ButtonSecondaryBorderRadius:
string
Button Secondary Border Radius
-
@ButtonSecondaryFontFamily:
string
Button Secondary Font Family
-
@ButtonSecondaryFontStyle:
string
Button Secondary Font Style
-
@ButtonSecondaryFontWeight:
string
Button Secondary Font Weight
-
@ButtonSecondarySize:
string
Button Secondary Size
-
@ButtonSecondaryTextColor:
string
Button Secondary Text Color
-
@ButtonSecondaryTextDecoration:
string
Button Secondary Text Decoration
-
@ButtonSecondaryUseGradient:
string
Button Secondary Use Gradient
-
@LinkColor:
string
Link Color
-
@LinkHoverColor:
string
Link Hover Color
-
@LinkVisitedColor:
string
Link Visited Color
- @mobileNavBarButtonColor: string
- @NavbarBackgroundColor: string
- @NavbarBackgroundHoverColor: string
- @NavbarLinkColor: string
- @NavbarLinkHoverColor: string
- @NavbarTextColor: string
- @SubNavigationBackgroundColor: string
- @SubNavigationBackgroundHoverColor: string
- @SubNavigationLinkColor: string
- @SubNavigationLinkHoverColor: string
- @SubNavigationTextColor: string
-
@TextColor:
string
Text Color
Nested Schema : theme_styles_general
Type:
object
General information of theme styles.
Show Source
- @FooterBackgroundColor: string
- @FooterBackgroundColorBottom: string
- @FooterBackgroundColorTop: string
- @FooterBackgroundImageAttachment: string
- @FooterBackgroundImagePosition: string
- @FooterBackgroundImageRepeat: string
- @FooterBackgroundImageURL: string
- @FooterBackgroundUseGradient: string
- @FooterBorderTopColor: string
-
@HeaderBackgroundColor:
string
Header Background Color
-
@HeaderBackgroundColorBottom:
string
Header Background Color Bottom
-
@HeaderBackgroundColorTop:
string
Header Background Color Top
-
@HeaderBackgroundImageAttachment:
string
Header Background Image Attachment
-
@HeaderBackgroundImagePosition:
string
Header Background Image Position
-
@HeaderBackgroundImageRepeat:
string
Header Background Image Repeat
-
@HeaderBackgroundImageURL:
string
Header Background Image URL
-
@HeaderBackgroundUseGradient:
string
Header Background Use Gradient
-
@HeaderTopBackgroundColor:
string
Header Top Background Color
-
@HeaderTopBackgroundColorBottom:
string
Header Top Background Color Bottom
-
@HeaderTopBackgroundColorTop:
string
Header Top Background Color Top
-
@HeaderTopBackgroundImageAttachment:
string
Header Top Background Image Attachment
-
@HeaderTopBackgroundImagePosition:
string
Header Top Background Image Position
-
@HeaderTopBackgroundImageRepeat:
string
Header Top Background Image Repeat
-
@HeaderTopBackgroundImageURL:
string
Header Top Background Image URL
-
@HeaderTopBackgroundUseGradient:
string
Header Top Background Use Gradient
-
@HeaderTopBorderBottomColor:
string
Header Top Border Bottom Color
-
@HeaderTopPaddingTop:
string
Header Top Padding Top
-
@SiteBackgroundColor:
string
Site Background Color
-
@SiteBackgroundColorBottom:
string
Site Background Color Bottom
-
@SiteBackgroundColorTop:
string
Site Background Color Top
-
@SiteBackgroundImageAttachment:
string
Site Background Image Attachment
-
@SiteBackgroundImagePosition:
string
Site Background Image Position
-
@SiteBackgroundImageRepeat:
string
Site Background Image Repeat
-
@SiteBackgroundImageURL:
string
Site Background Image URL
-
@SiteBackgroundUseGradient:
string
Site Background Use Gradient
-
@SitePageBackgroundColor:
string
Site Page Background Color
Nested Schema : theme_styles_typography
Type:
object
Typography information of theme styles.
Show Source
-
@H1FontFamily:
string
Heading 1 Font Family
-
@H1FontSize:
string
Heading 1 Font Size
-
@H1FontStyle:
string
Heading 1 Font Style
-
@H1FontWeight:
string
Heading 1 Font Weight
-
@H1LineHeight:
string
Heading 1 Line Height
-
@H1TextAlign:
string
Heading 1 Text Align
-
@H1TextColor:
string
Heading 1 Text Color
-
@H1TextDecoration:
string
Heading 1 Text Decoration
-
@H2FontFamily:
string
Heading 2 Font Family
-
@H2FontSize:
string
Heading 2 Font Size
-
@H2FontStyle:
string
Heading 2 Font Style
-
@H2FontWeight:
string
Heading 2 Font Weight
-
@H2LineHeight:
string
Heading 2 Line Height
-
@H2TextAlign:
string
Heading 2 Text Align
-
@H2TextColor:
string
Heading 2 Text Color
-
@H2TextDecoration:
string
Heading 2 Text Decoration
-
@H3FontFamily:
string
Heading 3 Font Family
-
@H3FontSize:
string
Heading 3 Font Size
-
@H3FontStyle:
string
Heading 3 Font Style
-
@H3FontWeight:
string
Heading 3 Font Weight
-
@H3LineHeight:
string
Heading 3 Line Height
-
@H3TextAlign:
string
Heading 3 Text Align
-
@H3TextColor:
string
Heading 3 Text Color
-
@H3TextDecoration:
string
Heading 3 Text Decoration
-
@H4FontFamily:
string
Heading 4 Font Family
-
@H4FontSize:
string
Heading 4 Font Size
-
@H4FontStyle:
string
Heading 4 Font Style
-
@H4FontWeight:
string
Heading 4 Font Weight
-
@H4LineHeight:
string
Heading 4 Line Height
-
@H4TextAlign:
string
Heading 4 Text Align
-
@H4TextColor:
string
Heading 4 Text Color
-
@H4TextDecoration:
string
Heading 4 Text Decoration
-
@H5FontFamily:
string
Heading 5 Font Family
-
@H5FontSize:
string
Heading 5 Font Size
-
@H5FontStyle:
string
Heading 5 Font Style
-
@H5FontWeight:
string
Heading 5 Font Weight
-
@H5LineHeight:
string
Heading 5 Line Height
-
@H5TextAlign:
string
Heading 5 Text Align
-
@H5TextColor:
string
Heading 5 Text Color
-
@H5TextDecoration:
string
Heading 5 Text Decoration
-
@H6FontFamily:
string
Heading 6 Font Family
-
@H6FontSize:
string
Heading 6 Font Size
-
@H6FontStyle:
string
Heading 6 Font Style
-
@H6FontWeight:
string
Heading 6 Font Weight
-
@H6LineHeight:
string
Heading 6 Line Height
-
@H6TextAlign:
string
Heading 6 Text Align
-
@H6TextColor:
string
Heading 6 Text Color
-
@H6TextDecoration:
string
Heading 6 Text Decoration
-
@ParagraphFontFamily:
string
Paragraph Font Family
-
@ParagraphFontSize:
string
Paragraph Font Size
-
@ParagraphFontStyle:
string
Paragraph Font Style
-
@ParagraphFontWeight:
string
Paragraph Font Weight
-
@ParagraphLineHeight:
string
Paragraph Line Height
-
@ParagraphTextAlign:
string
Paragraph Text Align
-
@ParagraphTextColor:
string
Paragraph Text Color
-
@ParagraphTextDecoration:
string
Paragraph Text Decoration
-
@SiteFontFamily:
string
Site Font Family
-
@SiteFontSize:
string
Site Font Size
-
@SiteFontStyle:
string
Site Font Style
-
@SiteFontWeight:
string
Site Font Weight
-
@SiteLineHeight:
string
Site Line Height
-
@SiteTextAlign:
string
Site Text Align
-
@SiteTextColor:
string
Site Text Color
-
@SiteTextDecoration:
string
Site Text Decoration
Example Response (application/json)
{
"isAgentTheme":"false",
"thumbnail":"/img/cloudlake.jpg",
"theme_additional_fonts":{
},
"is_active":true,
"theme_styles_color":{
"@ButtonPrimaryTextColor":"#fff",
"@ButtonPrimaryBackgroundColorTop":"#08C",
"@SubNavigationTextColor":"#fff",
"@ButtonPrimaryFontStyle":"normal",
"@ButtonPrimaryFontWeight":"normal",
"@SubNavigationLinkHoverColor":"#fff\n ",
"@NavigationLinkShadowColor":"#000",
"@NavigationLinkColor":"#DFDFDF",
"@LinkColor":"#0088cc",
"@NavigationLinkColorHover":"#FFF",
"@ButtonPrimaryBackgroundColor":"#08C",
"@NavigationBorderColor":"#3D3F44",
"@SubNavigationLinkColor":"#fff",
"@NavigationBackgroundColor":"#4f5158",
"@ButtonPrimaryBackgroundColorBottom":"#04C",
"@ButtonPrimaryFontFamily":"@sansFontFamily",
"@ButtonPrimaryTextDecoration":"none",
"@ButtonPrimaryBorderColor":"#04C",
"@SubNavigationBackgroundColor":"#fff",
"@NavigationBackgroundColorBottom":"#34363a",
"@NavigationBackgroundColorTop":"#676a74",
"@ButtonPrimaryBorderRadius":"4px",
"@LinkHoverColor":"#FFD303",
"@SubNavigationBackgroundHoverColor":"#fff",
"@TextColor":"#333"
},
"notes":"This is the Cloud Lake Theme.",
"usingCodeView":false,
"is_default":false,
"associatedSites":[
],
"theme_styles_typography":{
"@H6LineHeight":"20px",
"@H5FontFamily":"@sansFontFamily",
"@H3FontFamily":"@sansFontFamily",
"@H4FontWeight":"bold",
"@ParagraphFontFamily":"@sansFontFamily",
"@H1FontFamily":"@sansFontFamily",
"@H2TextColor":"#333",
"@SiteLineHeight":"20px",
"@H1LineHeight":"40px",
"@H6FontSize":"11.9px",
"@SiteFontFamily":"@sansFontFamily",
"@ParagraphFontWeight":"normal",
"@H5FontSize":"14px",
"@H4TextColor":"#333",
"@H1TextColor":"#333",
"@H4FontSize":"17.5px",
"@H3LineHeight":"40px",
"@H2FontWeight":"bold",
"@H3FontSize":"24.5px",
"@ParagraphLineHeight":"20px\n ",
"@H3TextColor":"#333",
"@H3FontWeight":"bold",
"@H4FontFamily":"@sansFontFamily",
"@SiteFontSize":"14px",
"@H2FontFamily":"@sansFontFamily",
"@H5FontWeight":"normal",
"@H6FontFamily":"@sansFontFamily",
"@SiteFontWeight":"normal",
"@H1FontSize":"38.5px",
"@H5LineHeight":"20px",
"@H2FontSize":"31.5px",
"@H6TextColor":"#333",
"@ParagraphTextColor":"#333",
"@H2LineHeight":"40px",
"@H6FontWeight":"normal",
"@H5TextColor":"#333",
"@H4LineHeight":"20px",
"@H1FontWeight":"bold",
"@ParagraphFontSize":"14px"
},
"clone_parent_name":null,
"name":"Cloud Lake Theme",
"repositoryId":"100001",
"is_custom":false,
"id":"100001",
"theme_styles_general":{
"@FooterBorderTopColor":"#bcd7e6\n ",
"@SiteBackgroundImageAttachment":"scroll",
"@FooterBackgroundImageAttachment":"scroll",
"@SiteBackgroundImageURL":"none",
"@SiteBackgroundColorBottom":"transparent",
"@FooterBackgroundColorBottom":"transparent",
"@HeaderTopPaddingTop":"25px",
"@HeaderBackgroundColorTop":"transparent",
"@HeaderTopBackgroundColor":"#e2f5ff",
"@ContentBackgroundColor":"#FFF",
"@HeaderBackgroundImageAttachment":"scroll",
"@FooterBackgroundImageURL":"none",
"@FooterBackgroundImageRepeat":"repeat-x",
"@HeaderBackgroundImageRepeat":"repeat-x",
"@SiteBackgroundImagePosition":"topleft",
"@SiteBackgroundImageRepeat":"no-repeat",
"@SiteBackgroundColorTop":"transparent",
"@HeaderBackgroundColorBottom":"transparent",
"@HeaderBackgroundImagePosition":"topleft",
"@HeaderTopBackgroundImageURL":"'/img/header-wrap.png'",
"@FooterBackgroundColorTop":"transparent",
"@HeaderTopBorderBottomColor":"#bcd7e6",
"@HeaderBackgroundColor":"#FFF",
"@HeaderBackgroundImageURL":"none",
"@FooterBackgroundColor":"#e2f5ff",
"@SiteBackgroundColor":"#FFF",
"@FooterBackgroundImagePosition":"topleft"
},
"clone_parent_id":null,
"compilationStatuses":[
]
}
Default Response
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
The error response:
Error Code | Description | Possible Fix |
---|---|---|
70004 | The specified theme does not exist on system. | Ensure you have specified a valid theme ID. |
70021 | Internal error retrieving theme. | See returned error messages for more information. |
The error response:
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