updateFragmentMetadata
put
/ccadmin/v1/widgetDescriptors/{id}/element/{tag}/metadata
Update the user modifiable metadata associated with the element under widget descriptor.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): string
The ID of the widget descriptor
-
tag(required): string
The tag of the element
Root Schema : metadataForFragment
Type:
Show Source
object
-
code:
object code
Object containing Global Element metadata
Nested Schema : code
Type:
object
Object containing Global Element metadata
Show Source
-
availableToAllWidgets:
boolean
If set to true, the element will be usable with all widget types.
-
children:
array children
Child element tags.
-
config:
object config
Configuration object for fragment.
-
configOptions:
array configOptions
Configuration options for element.
-
defaultText:
string
The default text associated with the element.
-
inline:
boolean
Whether to place the element in a span or div.
-
previewText:
string
The preview text associated with the element - if any.
-
supportedWidgetType:
array supportedWidgetType
The list of widget types that can be used with the element.
-
tag:
string
The tag value associated with the element.
-
translations:
object translations
The list of translations to be used when the element is displayed in Design Studio.
-
type:
string
The type of the element.
Nested Schema : config
Type:
object
Configuration object for fragment.
Nested Schema : supportedWidgetType
Type:
array
The list of widget types that can be used with the element.
Show Source
Nested Schema : translations
Type:
object
The list of translations to be used when the element is displayed in Design Studio.
Show Source
Nested Schema : items
Type:
Show Source
object
-
description:
string
Descriptive text for the element.
-
language:
string
Language for the description and title.
-
title:
string
Title text for the element.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : metadataForFragment
Type:
Show Source
object
-
code:
object code
Object containing Global Element metadata
Nested Schema : code
Type:
object
Object containing Global Element metadata
Show Source
-
availableToAllWidgets:
boolean
If set to true, the element will be usable with all widget types.
-
children:
array children
Child element tags.
-
config:
object config
Configuration object for fragment.
-
configOptions:
array configOptions
Configuration options for element.
-
defaultText:
string
The default text associated with the element.
-
inline:
boolean
Whether to place the element in a span or div.
-
previewText:
string
The preview text associated with the element - if any.
-
supportedWidgetType:
array supportedWidgetType
The list of widget types that can be used with the element.
-
tag:
string
The tag value associated with the element.
-
translations:
object translations
The list of translations to be used when the element is displayed in Design Studio.
-
type:
string
The type of the element.
Nested Schema : config
Type:
object
Configuration object for fragment.
Nested Schema : supportedWidgetType
Type:
array
The list of widget types that can be used with the element.
Show Source
Nested Schema : translations
Type:
object
The list of translations to be used when the element is displayed in Design Studio.
Show Source
Nested Schema : items
Type:
Show Source
object
-
description:
string
Descriptive text for the element.
-
language:
string
Language for the description and title.
-
title:
string
Title text for the element.
Example Response (application/json)
{
"supportedWidgetType":[
],
"availableToAllWidgets":true,
"inline":false,
"children":[
],
"translations":[
{
"description":"",
"language":"en",
"title":"Dog"
}
],
"global":false,
"tag":"dog",
"type":"fragment",
"version":1,
"configOptions":[
"fontPicker"
]
}
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