updateWidgetDescriptorJavascript

put

/ccadmin/v1/widgetDescriptors/{id}/javascript/{filename}

Update Widget Descriptor Javascript. Updates the Widget Descriptor JavaScript

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : updateWidgetDescriptorJavascript_request
Type: object
Show Source
Example:
{
    "source":"/**\n * @fileoverview Hello World Widget.\n *\n * @author nev @example.com\n */\ndefine(\n \n  \n  function () {\n\n \"use strict\";\n\n  return {\n\n  onLoad: function(widget) {\n var temp;\n },\n\n beforeAppear: function(page) {\n\n }\n };\n  }\n);\n"
}
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : updateWidgetDescriptorJavascript_response
Type: object
Show Source
Example Response (application/json)
{
    "name":"helloWorldWidget-1.js",
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccadminui/v1/widgetDescriptors/helloWorldWidget-1_v1/javascript/helloWorldWidget-1.js"
        }
    ],
    "url":"http://localhost:9080/file/v1/widget/helloWorldWidget-1/js/helloWorldWidget-1.js"
}

Default Response

The error response
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top