Close Tickets API

Bulk close multiple support tickets simultaneously

Bulk Operations

Close Tickets API

Close multiple support tickets at once. Efficiently manage resolved issues and maintain clean support queues with bulk operations.

Bulk Close

Close multiple tickets at once.

Efficient

Save time on routine tasks.

Queue Cleanup

Maintain organized support queues.


Endpoint Overview

MUTATION/graphql

Close multiple support tickets by providing an array of ticket IDs. All specified tickets are closed in a single operation.

Authentication:Bearer Token
Required scopes:adminsupport

Request Parameters

id[Int]!Required

Array of ticket IDs to close.


GraphQL Mutation

mutation closeTickets($id: [Int]!) {
  closeTickets(id: $id) {
    id
    subject
    status
    closedAt
  }
}

Variables:

{
  "id": [12345, 12346, 12347, 12348]
}

HTTP Request:

curl -X POST https://api.orbnet.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_ADMIN_TOKEN" \
  -d '{
    "query": "mutation closeTickets($id: [Int]!) { closeTickets(id: $id) { id subject status closedAt } }",
    "variables": {
      "id": [12345, 12346, 12347, 12348]
    }
  }'

Response

200Tickets Closed Successfully
{
  "data": {
    "closeTickets": [
      {
        "id": "12345",
        "subject": "Connection timeout issue",
        "status": "closed",
        "closedAt": "2024-01-16T10:00:00Z"
      },
      {
        "id": "12346",
        "subject": "Billing inquiry",
        "status": "closed",
        "closedAt": "2024-01-16T10:00:00Z"
      },
      {
        "id": "12347",
        "subject": "Password reset help",
        "status": "closed",
        "closedAt": "2024-01-16T10:00:00Z"
      },
      {
        "id": "12348",
        "subject": "Feature suggestion",
        "status": "closed",
        "closedAt": "2024-01-16T10:00:00Z"
      }
    ]
  }
}
400Some Tickets Not Found
{
  "errors": [
    {
      "message": "Some tickets not found: 12349, 12350",
      "path": ["closeTickets"],
      "extensions": {
        "code": "PARTIAL_NOT_FOUND",
        "notFound": [12349, 12350],
        "closed": [12345, 12346]
      }
    }
  ],
  "data": null
}

Use Cases

End of Day Cleanup

Close all resolved tickets at shift end.

Batch Resolution

Close related tickets after fix deployment.

Queue Management

Clear backlog of resolved issues.

Maintenance Completion

Close tickets after scheduled maintenance.


Best Practices

Verify Resolution

Confirm all issues are actually resolved.

Add Notes

Document bulk closure reason.

Limit Batch Size

Process in reasonable batch sizes.

Review First

Review ticket list before bulk close.



Review Before Closing

Always review tickets before bulk closing to ensure issues are actually resolved. Incorrectly closed tickets may frustrate users.

View Open Tickets

Review all open tickets to identify those ready for closure.

View Tickets