Update a custom widget

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Request Format

{
  "description": "Cool widget for my application1",
  "isGlobal":true,
   "code": {
        "html": "<div> update html</div>",
        "js": {
            "data": "console.log('updated js')"
        },
        "css": "body{background-color: grey}"
    }
}
šŸ“˜

Note:

When using the patch API, note that it will overwrite the entire content of the widget. If your request only includes HTML, any existing JavaScript and CSS originally associated with the widget will be replaced. Ensure that all necessary components (HTML, JS, CSS) are included in your request if you wish to retain them.

You can convert any existing widget to global widget by using isGlobal key. The widget code should not be more than 500Kb.

Path Params
string
required
Defaults to current

Use 'current' keyword to refer to the Main Workspace or the Integer Workspace Id

int32
required

Enter the widget Id

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json