/halopsa:update-ticket <ticket_id> [status] [priority] [category] [team] [agent] [sla]from halopsa
Updates an existing HaloPSA ticket by modifying fields such as status, priority, category, team, agent, and SLA. Resolves field names to internal IDs and merges changes with current ticket state.
Ships in halopsa. Installing the plugin adds it to Claude Code.
Update fields on an existing HaloPSA ticket including status, priority, category, and assignment.
Authenticate with OAuth 2.0
{base_url}/auth/token?tenant={tenant}# Get OAuth token
TOKEN=$(curl -s -X POST "{base_url}/auth/token?tenant={tenant}" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id={client_id}" \
-d "client_secret={client_secret}" \
-d "scope=all" | jq -r '.access_token')
Fetch current ticket state
# Get current ticket details
curl -s -X GET "{base_url}/api/Tickets/{ticket_id}" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"
Resolve field values to IDs
Status lookup:
curl -s -X GET "{base_url}/api/Status" \
-H "Authorization: Bearer $TOKEN"
Priority lookup:
curl -s -X GET "{base_url}/api/Priority" \
-H "Authorization: Bearer $TOKEN"
Agent lookup:
curl -s -X GET "{base_url}/api/Agent?search={agent}" \
-H "Authorization: Bearer $TOKEN"
Agent lookup through Conduit: halopsa_agents_list / halopsa_agents_get; teams with halopsa_teams_list.
Category lookup: halopsa_categories_list with search (both category tools are unclassified on the halopsa connector in Conduit, so they need the admin grant), then pass the category name as category_1–category_4 by level (halopsa_categories_get reads one by ID).
Team lookup:
curl -s -X GET "{base_url}/api/Team?search={team}" \
-H "Authorization: Bearer $TOKEN"
Build update payload
Update the ticket with halopsa_tickets_update (send only the changed fields, including any category_1–category_4). The underlying request:
# HaloPSA uses POST for updates with the id field
curl -s -X POST "{base_url}/api/Tickets" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '[
{
"id": <ticket_id>,
"status_id": <new_status_id>,
"priority_id": <new_priority_id>,
"category_1": "<category>",
"team_id": <new_team_id>,
"agent_id": <new_agent_id>,
"sla_id": <new_sla_id>
}
]'
Return update confirmation
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| ticket_id | integer | Yes | - | The HaloPSA ticket ID |
| status | string | No | - | New status name or ID |
| priority | string/int | No | - | Priority (1=Critical to 4=Low) |
| category | string | No | - | Category for classification |
| team | string | No | - | Team name to assign to |
| agent | string | No | - | Agent name or email |
| sla | string | No | - | SLA profile name |
/update-ticket 12345 --status "In Progress" --agent "[email protected]"
/update-ticket 12345 --priority "High" --team "Level 2 Support"
/update-ticket 12345 --category "Network/Firewall" --sla "Premium"
/update-ticket 12345 --status "Pending Customer"
/update-ticket 12345 --agent "[email protected]"
/update-ticket 12345 --status "In Progress" --priority 2 --team "Network Team" --agent "[email protected]" --category "Network/VPN"
Ticket Updated Successfully
Ticket: #12345 - Email not working
Client: Acme Corporation
Changes Applied:
┌─────────────┬───────────────────┬───────────────────┐
│ Field │ Previous │ New │
├─────────────┼───────────────────┼───────────────────┤
│ Status │ New │ In Progress │
│ Priority │ Medium (3) │ High (2) │
│ Agent │ Unassigned │ Jane Tech │
│ Team │ Service Desk │ Level 2 Support │
└─────────────┴───────────────────┴───────────────────┘
URL: https://yourcompany.halopsa.com/tickets?id=12345
No changes applied
The specified values are the same as current ticket values.
Current Ticket State:
- Status: In Progress
- Priority: High (2)
- Agent: Jane Tech
- Team: Level 2 Support
Ticket not found: #12345
Please verify the ticket ID and try again.
Use /search-tickets to find the correct ticket ID.
Status not found: "Invalid Status"
Available statuses:
- New (ID: 1)
- In Progress (ID: 2)
- Pending Customer (ID: 3)
- Resolved (ID: 4)
- Closed (ID: 5)
Use: /update-ticket 12345 --status "In Progress"
Agent not found: "[email protected]"
Did you mean one of these?
- [email protected] (John Doe)
- [email protected] (Jane Doe)
- [email protected] (James Davis)
Team not found: "Unknown Team"
Available teams:
- Service Desk
- Level 2 Support
- Network Team
- Security Team
Use: /update-ticket 12345 --team "Service Desk"
Authentication failed
Please verify your HaloPSA credentials:
- HALOPSA_CLIENT_ID
- HALOPSA_CLIENT_SECRET
- HALOPSA_BASE_URL
- HALOPSA_TENANT (for cloud-hosted)
Ensure the API application has 'edit:tickets' permission.
Rate limited by HaloPSA API (429)
HaloPSA allows 500 requests per 3 minutes.
Retrying in 5 seconds...
Permission denied (403)
Your API credentials do not have permission to update tickets.
Contact your HaloPSA administrator to grant 'edit:tickets' scope.
Validation error from HaloPSA API (400)
Error: Cannot change status to 'Closed' - ticket has unbilled time entries.
Resolution: Bill or write off time entries before closing ticket.
Updates an existing ticket. HaloPSA uses POST for both create and update operations.
Request Body:
[
{
"id": 12345,
"status_id": 2,
"priority_id": 2,
"category_1": "Network/Firewall",
"team_id": 5,
"agent_id": 42,
"sla_id": 3
}
]
Response:
{
"id": 12345,
"summary": "Email not working",
"status_id": 2,
"status": "In Progress",
"priority_id": 2,
"priority": "High",
"agent_id": 42,
"agent": "Jane Tech",
"team_id": 5,
"team": "Level 2 Support"
}
/show-ticket - View ticket details/add-action - Add note to ticket/search-tickets - Search existing tickets/create-ticket - Create new ticketFiles this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub wyre-ai/msp-claude-plugins --plugin halopsa10 commands in this plugin
/add-actionAdd Action to HaloPSA TicketAdd an action (note, update, or response) to an existing HaloPSA ticket/contract-statusCheck HaloPSA Contract StatusCheck contract status, service entitlements, and billing information for a client/create-ticketCreate HaloPSA TicketCreate a new service ticket in HaloPSA/kb-searchSearch HaloPSA Knowledge BaseSearch the HaloPSA knowledge base for articles and solutions/search-assetsSearch HaloPSA AssetsSearch for configuration items/assets by name, serial number, type, or client/search-clientsSearch HaloPSA ClientsSearch for HaloPSA clients by name, domain, or other attributesOther plugins' commands for the same job