getThemes
get
/ccadmin/v1/themes
Get Themes. Returns a list of themes currently in the repository. Pass in query param ?type=custom to get all custom themes, or ?type=purchased to get all purchased themes. Omit type query param to get all themes.
Request
Supported Media Types
- application/json
Query Parameters
-
includeagenttheme(optional): boolean
include the agent theme in the results
-
type(optional): string
one of custom, purchased or null
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getThemes_response
Type:
Show Source
object
-
items(optional):
array items
The list of all themes.
Nested Schema : items
Type:
Show Source
object
-
clone_parent_id(optional):
string
Clone parent id of the theme.
-
clone_parent_name(optional):
string
Clone parent name of the theme.
-
id(optional):
string
ID of the theme.
-
is_active(optional):
boolean
Whether theme is active.
-
is_custom(optional):
boolean
Whether theme is custom or not.
-
name(optional):
string
Theme name.
-
notes(optional):
string
Notes of the theme.
-
repositoryId(optional):
string
Repository Id of the theme.
-
thumbnail(optional):
string
Thumbnail image of the theme.
-
usingCodeView(optional):
boolean
Whether using code view or not.
Example Response (application/json)
[
{
"thumbnail":"/img/cloudlake.jpg",
"is_active":true,
"notes":"This is the Cloud Lake Theme.",
"clone_parent_name":null,
"name":"Cloud Lake Theme",
"repositoryId":"100001",
"is_custom":false,
"id":"100001",
"clone_parent_id":null
},
{
"thumbnail":"",
"is_active":false,
"notes":"This is the Dark Theme.",
"clone_parent_name":"Cloud Lake Theme",
"name":"Dark Theme",
"repositoryId":"100002",
"is_custom":true,
"id":"100002",
"clone_parent_id":"100001"
}
]
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
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(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code