---
title: "Close a ticket (staff only)"
url: "https://kongnet.kongai.uk/apis/kongnet-telco-api-1/versions/3d9e2c10-cf93-4e6e-8bf8-2129457a6aa5/operations/close_ticket"
---

> Full API specification: https://kongnet.kongai.uk/apis/kongnet-telco-api-1/versions/3d9e2c10-cf93-4e6e-8bf8-2129457a6aa5.md

# Close a ticket (staff only)

`POST` `/tickets/{ticket_id}/close`

Operation ID: `close_ticket`

Marks a ticket closed. Staff only. Customers cannot close their own tickets through the agent.

## Path parameters

- `ticket_id` (string, required)

## Responses

- `200` - Successful Response
- `422` - Validation Error

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: KongNet Telco API
  version: 1.0.0
paths:
  /tickets/{ticket_id}/close:
    post:
      tags:
        - staff
      summary: Close a ticket (staff only)
      description: Marks a ticket closed. Staff only. Customers cannot close their own
        tickets through the agent.
      operationId: close_ticket
      parameters:
        - name: ticket_id
          in: path
          required: true
          schema:
            type: string
            title: Ticket Id
      responses:
        "200":
          description: Successful Response
          content:
            application/json:
              schema: {}
        "422":
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/HTTPValidationError"
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: "#/components/schemas/ValidationError"
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
```
