updateWidgetDescriptorMetadata
put
/ccadmin/v1/widgetDescriptors/{id}/metadata
Update widget descriptor metadata.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): string
The ID of the widget descriptor
Nested Schema : items
Type:
object
response
Show Source
-
metadata:
object metadata
Metadata structure
Nested Schema : metadata
Type:
object
Metadata structure
Show Source
-
availableToAllPages:
boolean
Whether or not the widget can be used with all page types.
-
config:
object config
Additional Properties Allowed: additionalPropertiesConfiguration values for the widget.
-
globalEnabled:
boolean
Whether or not the widget is enabled.
-
imports:
array imports
Widget import names.
-
jsEditable:
boolean
Whether or not the widget JavaScript can be edited.
-
minWidth:
integer
Minimum number of columns the widget should occupy.
-
pageTypes:
array pageTypes
List of page types usable with the widget.
-
translations:
array translations
Widget translations for display name.
Nested Schema : config
Type:
object
Additional Properties Allowed
Show Source
Configuration values for the widget.
Nested Schema : items
Type:
Show Source
object
-
language:
string
Language code.
-
name:
string
National language text for the display name.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Nested Schema : items
Type:
object
response
Show Source
-
metadata:
object metadata
Metadata structure
Nested Schema : metadata
Type:
object
Metadata structure
Show Source
-
availableToAllPages:
boolean
Whether or not the widget can be used with all page types.
-
config:
object config
Additional Properties Allowed: additionalPropertiesConfiguration values for the widget.
-
globalEnabled:
boolean
Whether or not the widget is enabled.
-
imports:
array imports
Widget import names.
-
jsEditable:
boolean
Whether or not the widget JavaScript can be edited.
-
minWidth:
integer
Minimum number of columns the widget should occupy.
-
pageTypes:
array pageTypes
List of page types usable with the widget.
-
translations:
array translations
Widget translations for display name.
Nested Schema : config
Type:
object
Additional Properties Allowed
Show Source
Configuration values for the widget.
Nested Schema : items
Type:
Show Source
object
-
language:
string
Language code.
-
name:
string
National language text for the display name.
Example Response (application/json)
{
"metadata":{
"imports":[
],
"translations":[
{
"name":"Luther [th]",
"language":"th"
},
{
"name":"Luther [pt_BR]",
"language":"pt_BR"
}
],
"availableToAllPages":true,
"jsEditable":true,
"minWidth":1,
"globalEnabled":true,
"config":{
}
}
}
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