cloneTheme
post
/ccadmin/v1/themes/{id}/clone
Clone Theme. Returns a copy of a particular theme.
Request
Supported Media Types
- application/json
Path Parameters
-
id: string
ID of the Theme.
Root Schema : cloneTheme_request
Type:
Show Source
object
-
name:
string
Name of the cloned theme.
Example:
{
"name":"ClonedTheme"
}
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : cloneTheme_response
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":false,
"notes":"",
"usingCodeView":false,
"clone_parent_name":"Cloud Lake Theme",
"name":"ClonedTheme",
"repositoryId":"100003",
"is_custom":true,
"id":"100003",
"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