updateGlobalElementJavaScript

put

/ccadmin/v1/elements/{tag}/javascript

Update Global Element Java Script. Updates the contents of the specified Global Element JavaScript file.

Request

Supported Media Types
Path Parameters
  • The tag associated with the the Global Element JavaScript file to update.
Body ()
Root Schema : updateGlobalElementJavaScript_request
Show Source
Example:
PUT /ccadminui/v1/elements/my-element-tag/javascript
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : updateGlobalElementJavaScript_response
Type: object
Show Source
Nested Schema : code
Type: object
Object containing Global Element JavaScript
Show Source
Example Response (application/json)
{
    "code":{
        "javascript":"console.log('Here is some JavaScript');"
    }
}

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