updateGadget
Update gadget on dashboard
Details
- Method:
PUT - Path:
/rest/api/3/dashboard/{dashboardId}/gadget/{gadgetId} - Operation ID:
updateGadget
Parameters
{
"dashboardId": {
"description": "The ID of the dashboard.",
"required": true,
"location": "path",
"type": "integer",
"format": "int64"
},
"gadgetId": {
"description": "The ID of the gadget.",
"required": true,
"location": "path",
"type": "integer",
"format": "int64"
},
"color": {
"description": "The color of the gadget. Should be one of `blue`, `red`, `yellow`, `green`, `cyan`, `purple`, `gray`, or `white`.",
"required": false,
"location": "body",
"type": "string"
},
"position": {
"description": "The position of the gadget.",
"required": false,
"location": "body",
"type": "string"
},
"title": {
"description": "The title of the gadget.",
"required": false,
"location": "body",
"type": "string"
}
}Response Schema
{}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('updateGadget', {
# Add required parameters here
})