ninja_update_ticket
Updates an existing ticket's details including status, subject, assignee, severity, priority, and tags.
Instructions
Update an existing ticket (status, subject, assignee, severity, priority, tags, etc.).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ticketId": "<ticketId>"
},
"name": "ninja_update_ticket"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticketId | Yes | Ticket ID | |
| status | No | New status ID | |
| subject | No | Updated subject | |
| assignedAppUserId | No | Assigned technician user ID | |
| severity | No | ||
| priority | No | ||
| tags | No | Updated tags | |
| locationId | No | Updated location ID | |
| nodeId | No | Updated device ID |
Implementation Reference
- src/tools/ticketing.ts:94-96 (handler)The handler function for ninja_update_ticket. It destructures ticketId from args and passes the remaining body to a PUT request to /ticketing/ticket/{ticketId}.
handler: async ({ ticketId, ...body }, client: NinjaOneClient) => client.put(`/ticketing/ticket/${ticketId}`, body), }, - src/tools/ticketing.ts:72-92 (schema)Input schema for ninja_update_ticket. Required: ticketId. Optional: status, subject, assignedAppUserId, severity, priority, tags, locationId, nodeId.
inputSchema: { type: 'object', required: ['ticketId'], properties: { ticketId: { type: 'number', description: 'Ticket ID' }, status: { type: 'string', description: 'New status ID' }, subject: { type: 'string', maxLength: 200, description: 'Updated subject' }, assignedAppUserId: { type: 'number', description: 'Assigned technician user ID' }, severity: { type: 'string', enum: ['NONE', 'MINOR', 'MODERATE', 'MAJOR', 'CRITICAL'], }, priority: { type: 'string', enum: ['NONE', 'LOW', 'MEDIUM', 'HIGH'], }, tags: { type: 'array', items: { type: 'string' }, description: 'Updated tags' }, locationId: { type: 'number', description: 'Updated location ID' }, nodeId: { type: 'number', description: 'Updated device ID' }, }, }, - src/tools/ticketing.ts:68-96 (registration)Tool registration as part of the ticketingTools array. The tool definition includes name (ninja_update_ticket), description, inputSchema, and the handler.
{ tool: { name: 'ninja_update_ticket', description: 'Update an existing ticket (status, subject, assignee, severity, priority, tags, etc.).', inputSchema: { type: 'object', required: ['ticketId'], properties: { ticketId: { type: 'number', description: 'Ticket ID' }, status: { type: 'string', description: 'New status ID' }, subject: { type: 'string', maxLength: 200, description: 'Updated subject' }, assignedAppUserId: { type: 'number', description: 'Assigned technician user ID' }, severity: { type: 'string', enum: ['NONE', 'MINOR', 'MODERATE', 'MAJOR', 'CRITICAL'], }, priority: { type: 'string', enum: ['NONE', 'LOW', 'MEDIUM', 'HIGH'], }, tags: { type: 'array', items: { type: 'string' }, description: 'Updated tags' }, locationId: { type: 'number', description: 'Updated location ID' }, nodeId: { type: 'number', description: 'Updated device ID' }, }, }, }, handler: async ({ ticketId, ...body }, client: NinjaOneClient) => client.put(`/ticketing/ticket/${ticketId}`, body), },