getPageOperations
Get permitted operations for page
Details
- Method:
GET - Path:
/pages/{id}/operations - Operation ID:
getPageOperations
Parameters
{
"id": {
"description": "The ID of the page for which operations should be returned.",
"required": true,
"location": "path",
"type": "integer",
"format": "int64"
}
}Response Schema
{
"description": "The list of operations permitted on entity.",
"type": "object",
"properties": {
"operations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"operation": {
"description": "The type of operation.",
"type": "string"
},
"targetType": {
"description": "The type of entity the operation type targets.",
"type": "string"
}
}
}
}
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('confluence')
# Call this tool
result = await agent.call_tool('getPageOperations', {
# Add required parameters here
})