createApplicationStyling
post
/ccadmin/v1/applicationStyling
Create Application Styling. Creates an application styling
Request
Supported Media Types
- application/json
Root Schema : createApplicationStyling_request
Type:
Show Source
object
-
applicationId:
string
ID of the application.
-
filename:
string
name of the CSS file.
-
ranking(optional):
integer
Ranking (order) for the application styling file.
-
sites(optional):
array sites
ID of multiple sites for the new application styling. If omitted or an empty array is given then the application styling is available for all sites.
-
source:
string
CSS source to be saved.
Example:
{
"filename":"customStyling1.css",
"ranking":10,
"sites":[
],
"source":".customStyling { color: red; }",
"applicationId":"cloudlake"
}
Nested Schema : sites
Type:
array
ID of multiple sites for the new application styling. If omitted or an empty array is given then the application styling is available for all sites.
Show Source
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : applicationStylingItem_response
Type:
Show Source
object
-
applicationId(optional):
string
ID of the application.
-
filename(optional):
string
name of the CSS file.
-
ranking(optional):
integer
Ranking (order) for the application styling file.
-
sites(optional):
array sites
ID of zero or more site associations for the application styling. If empty array then the application styling is available for all sites.
Nested Schema : sites
Type:
array
ID of zero or more site associations for the application styling. If empty array then the application styling is available for all sites.
Show Source
Nested Schema : items
Type:
Show Source
object
-
repositoryId(optional):
string
Repository id of site.
Example Response (application/json)
{
"filename":"customStyling1.css",
"repositoryId":"500001",
"ranking":10,
"sites":[
],
"applicationId":"cloudlake"
}
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