updateConfigMetadataForWidgetDescriptor
put
/ccadmin/v1/widgetDescriptors/{id}/metadata/config
Gets the user modifiable config metadata for a widget descriptor.
Request
Supported Media Types
- application/json
Path Parameters
-
id: string
The ID of the widget descriptor
Root Schema : configMetadataForWidgetDescriptor
Type:
Show Source
object
-
items(optional):
object items
response
Nested Schema : items
Type:
object
response
Show Source
-
metadata(optional):
object metadata
Metadata structure
Nested Schema : metadata
Type:
object
Metadata structure
Show Source
-
properties(optional):
array properties
Array of metadata properties.
-
widgetDescriptorName(optional):
string
The short name of the widget descriptor aka widget type.
Nested Schema : items
Type:
Show Source
object
-
defaultValue(optional):
string
Default value for the property.
-
helpTextResourceId(optional):
string
ID of property help text.
-
id(optional):
string
Identifier for the property.
-
labelResourceId(optional):
string
ID of property label text.
-
name(optional):
string
Internal name for the property.
-
options(optional):
array options
Describes possible values for an optionType property.
-
required(optional):
boolean
Whether or not the property must contain a value.
-
type(optional):
string
The property type.
Nested Schema : options
Type:
array
Describes possible values for an optionType property.
Show Source
Nested Schema : items
Type:
Show Source
object
-
id(optional):
string
ID of option.
-
labelResourceId(optional):
string
ID of option text.
-
value(optional):
string
Value to use for option if it is selected.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : configMetadataForWidgetDescriptor
Type:
Show Source
object
-
items(optional):
object items
response
Nested Schema : items
Type:
object
response
Show Source
-
metadata(optional):
object metadata
Metadata structure
Nested Schema : metadata
Type:
object
Metadata structure
Show Source
-
properties(optional):
array properties
Array of metadata properties.
-
widgetDescriptorName(optional):
string
The short name of the widget descriptor aka widget type.
Nested Schema : items
Type:
Show Source
object
-
defaultValue(optional):
string
Default value for the property.
-
helpTextResourceId(optional):
string
ID of property help text.
-
id(optional):
string
Identifier for the property.
-
labelResourceId(optional):
string
ID of property label text.
-
name(optional):
string
Internal name for the property.
-
options(optional):
array options
Describes possible values for an optionType property.
-
required(optional):
boolean
Whether or not the property must contain a value.
-
type(optional):
string
The property type.
Nested Schema : options
Type:
array
Describes possible values for an optionType property.
Show Source
Nested Schema : items
Type:
Show Source
object
-
id(optional):
string
ID of option.
-
labelResourceId(optional):
string
ID of option text.
-
value(optional):
string
Value to use for option if it is selected.
Example Response (application/json)
{
"metadata":{
"widgetDescriptorName":"luther",
"properties":[
{
"name":"exampleStringProperty",
"id":"exampleStringProperty",
"helpTextResourceId":"exampleStringPropertyHelpText",
"labelResourceId":"exampleStringPropertyLabel",
"type":"stringType",
"required":true
},
{
"defaultValue":"option1",
"name":"exampleOptionProperty",
"options":[
{
"id":"exampleOption1",
"labelResourceId":"exampleOption1Label",
"value":"exampleOption1"
},
{
"id":"exampleOption2",
"labelResourceId":"exampleOption2Label",
"value":"exampleOption2"
},
{
"id":"exampleOption3",
"labelResourceId":"exampleOption3Label",
"value":"exampleOption3"
}
],
"id":"exampleOptionProperty",
"helpTextResourceId":"exampleOptionPropertyHelpText",
"labelResourceId":"exampleOptionPropertyLabel",
"type":"optionType"
},
{
"defaultValue":true,
"name":"exampleBooleanProperty",
"id":"exampleBooleanProperty",
"helpTextResourceId":"exampleBooleanPropertyHelpText",
"labelResourceId":"exampleBooleanPropertyLabel",
"type":"booleanType"
}
]
}
}
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