viewsUpdate
Update an existing view.
Details
- Method:
GET - Path:
/views.update - Operation ID:
views_update
Parameters
{
"token": {
"description": "Authentication token. Requires scope: `none`",
"required": true,
"location": "header",
"type": "string"
},
"view_id": {
"description": "A unique identifier of the view to be updated. Either `view_id` or `external_id` is required.",
"required": false,
"location": "query",
"type": "string"
},
"external_id": {
"description": "A unique identifier of the view set by the developer. Must be unique for all views on a team. Max length of 255 characters. Either `view_id` or `external_id` is required.",
"required": false,
"location": "query",
"type": "string"
},
"view": {
"description": "A [view object](/reference/surfaces/views). This must be a JSON-encoded string.",
"required": false,
"location": "query",
"type": "string"
},
"hash": {
"description": "A string that represents view state to protect against possible race conditions.",
"required": false,
"location": "query",
"type": "string"
}
}Response Schema
{
"additionalProperties": true,
"description": "This method either only returns a brief _OK_ response or a verbose schema is not available for this method.",
"properties": {
"ok": {
"enum": [
true
],
"title": "default success response",
"type": "boolean"
}
},
"required": [
"ok"
],
"title": "Default success template",
"type": "object"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('slack')
# Call this tool
result = await agent.call_tool('viewsUpdate', {
# Add required parameters here
})