updateFragmentTemplate
put
/ccadmin/v1/widgetDescriptors/{id}/element/{tag}/template
Update Fragment Template. Updates the fragment template widget /{id}/element/{tag}/template
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): string
the id of the widget
-
tag(required): string
the id of the element to be updated
Root Schema : updateFragmentTemplate_request
Type:
Show Source
object
-
code(required):
object code
the code element
Example:
{
"code":{
"template":"<dev> elementtemplate</dev>"
}
}
Nested Schema : code
Type:
object
the code element
Show Source
-
template(required):
string
the new template text
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : updateFragmentTemplate_response
Type:
Show Source
object
-
result(required):
boolean
the result of the update true - successful, false unsuccessful
Example Response (application/json)
{
"result":true,
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccadminui/v1/widgets/superTestWidget_v1/element/super-mailing-list-element/template"
}
]
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|37011|The widget does not have a fragment with that name|
|37008|Could not update the fragment Template|
|37009|No widget with that ID was found|
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