getConfigDefinitionForComponent
get
/ccadmin/v1/applications/{applicationId}/components/{componentId}/config
Gets the configuration definition for a component
Request
Supported Media Types
- application/json
Path Parameters
-
applicationId(required): string
The ID of the application.
-
componentId(required): string
The ID of the component.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getConfigDefinitionForComponent_response
Type:
Show Source
object
-
repositoryId:
string
The component's repository ID.
-
values:
array values
Configuration Settings
Nested Schema : items
Type:
Show Source
object
-
addMoreRowsResourceId:
string
ID of resource to use for 'add more rows' message
-
dataKey:
string
Data key
-
defaultValue:
string
Default value for the configuration setting
-
displayAsCheckboxes:
boolean
Whether to display as checkboxes
-
displayOnInstances:
string
Controls whether to display setting on instances
-
helpText:
string
Help text
-
label:
string
Label for the configuration setting
-
maxLength:
integer
Maximum length
-
maxLengths:
string
Maximum lengths
-
minLength:
integer
Minimum length
-
name:
string
Name of the configuration setting
-
noOfColumns:
integer
Number of columns
-
options:
array options
Configuration options
-
placeHolders:
string
Place holdlers
-
regexText:
string
Regular expression text
-
repositoryId:
string
Repository ID of the configuration setting
-
required:
string
Denotes if this is a required setting
Nested Schema : items
Type:
Show Source
object
-
label:
string
Option label
-
value:
string
Option value
Example Response (values)
[
{
"placeHolders":null,
"noOfColumns":1000,
"helpText":"To override the default widget styling, enter a CSS class name.",
"defaultValue":null,
"minLength":0,
"addMoreRowsResourceId":null,
"label":"CSS Class",
"type":"text",
"required":false,
"dataKey":null,
"displayOnInstances":null,
"repositoryId":"201520",
"name":"cssOverride",
"maxLengths":null,
"options":[
],
"regexText":null,
"displayAsCheckboxes":false,
"maxLength":1000
},
{
"placeHolders":null,
"noOfColumns":1000,
"helpText":null,
"defaultValue":"Some Web Content Text
",
"minLength":0,
"addMoreRowsResourceId":null,
"label":"Web Content",
"type":"webContent",
"required":true,
"dataKey":null,
"displayOnInstances":null,
"repositoryId":"201521",
"name":"webContent",
"maxLengths":null,
"options":[
],
"regexText":null,
"displayAsCheckboxes":false,
"maxLength":1000
}
]
Example Response (repositoryId)
100739
Default Response
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