# Support-Category

## Get Ticket Categories

> This API retrieves a list of support ticket categories based on the query parameters.

```json
{"openapi":"3.0.1","info":{"title":"SpurtV5","version":"1.0.0"},"tags":[{"name":"Support ticket category","description":"Support ticket category for admin"}],"servers":[{"url":"http://139.59.67.17/backend/api"},{"url":"https://139.59.67.17/backend/api"}],"paths":{"/support-ticket/ticket-category":{"get":{"tags":["Support ticket category"],"summary":"Get Ticket Categories","description":"This API retrieves a list of support ticket categories based on the query parameters.","operationId":"getTicketCategories","parameters":[{"name":"Authorization","in":"header","description":"Bearer token for authentication.","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Limit the number of results.","required":false,"schema":{"type":"number"}},{"name":"offset","in":"query","description":"The offset from where to start the results.","required":false,"schema":{"type":"number"}},{"name":"keyword","in":"query","description":"Search keyword for filtering categories.","required":false,"schema":{"type":"string"}},{"name":"parentCategoryId","in":"query","description":"Filter by parent category ID.","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Filter by category status.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully retrieved the ticket categories","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer"},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"createdBy":{"type":"string"},"createdDate":{"type":"string"},"modifiedBy":{"type":"string"},"modifiedDate":{"type":"string"},"id":{"type":"integer"},"categoryName":{"type":"string"},"parentCategoryId":{"type":"integer"},"isActive":{"type":"boolean"},"isDelete":{"type":"boolean"}}}}}}}}},"500":{"description":"Failed to retrieve ticket categories","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer"},"message":{"type":"string"}}}}}}}}}}}
```

## Create Ticket Category

> This API creates a new support ticket category.

```json
{"openapi":"3.0.1","info":{"title":"SpurtV5","version":"1.0.0"},"tags":[{"name":"Support ticket category","description":"Support ticket category for admin"}],"servers":[{"url":"http://139.59.67.17/backend/api"},{"url":"https://139.59.67.17/backend/api"}],"paths":{"/support-ticket/ticket-category":{"post":{"tags":["Support ticket category"],"summary":"Create Ticket Category","description":"This API creates a new support ticket category.","operationId":"createTicketCategory","parameters":[{"name":"Authorization","in":"header","description":"Bearer token for authentication.","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"categoryName":{"type":"string"},"parentCategoryId":{"type":"integer"},"isActive":{"type":"boolean"},"isDelete":{"type":"boolean"}}}}}},"responses":{"201":{"description":"Ticket category created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer"},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"integer"},"categoryName":{"type":"string"},"parentCategoryId":{"type":"integer"},"isActive":{"type":"boolean"},"isDelete":{"type":"boolean"}}}}}}}},"400":{"description":"Invalid request data","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer"},"message":{"type":"string"}}}}}},"500":{"description":"Failed to create ticket category","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer"},"message":{"type":"string"}}}}}}}}}}}
```

## Get Ticket Category by ID

> This API retrieves a specific support ticket category based on the provided category ID.

```json
{"openapi":"3.0.1","info":{"title":"SpurtV5","version":"1.0.0"},"tags":[{"name":"Support ticket category","description":"Support ticket category for admin"}],"servers":[{"url":"http://139.59.67.17/backend/api"},{"url":"https://139.59.67.17/backend/api"}],"paths":{"/support-ticket/ticket-category/{id}":{"get":{"tags":["Support ticket category"],"summary":"Get Ticket Category by ID","description":"This API retrieves a specific support ticket category based on the provided category ID.","operationId":"getTicketCategoryById","parameters":[{"name":"id","in":"path","description":"The unique ID of the ticket category.","required":true,"schema":{"type":"integer"}},{"name":"Authorization","in":"header","description":"Bearer token for authentication.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully retrieved the ticket category","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"},"data":{"type":"object","properties":{"createdBy":{"type":"string"},"createdDate":{"type":"string"},"modifiedBy":{"type":"string"},"modifiedDate":{"type":"string"},"id":{"type":"integer"},"categoryName":{"type":"string"},"parentCategoryId":{"type":"integer"},"isActive":{"type":"boolean"},"isDelete":{"type":"boolean"}}}}}}}},"500":{"description":"Failed to retrieve ticket category","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}
```

## Update Ticket Category

> This API allows users to update a specific support ticket category based on the provided category ID.

```json
{"openapi":"3.0.1","info":{"title":"SpurtV5","version":"1.0.0"},"tags":[{"name":"Support ticket category","description":"Support ticket category for admin"}],"servers":[{"url":"http://139.59.67.17/backend/api"},{"url":"https://139.59.67.17/backend/api"}],"paths":{"/support-ticket/ticket-category/{id}":{"put":{"tags":["Support ticket category"],"summary":"Update Ticket Category","description":"This API allows users to update a specific support ticket category based on the provided category ID.","operationId":"updateTicketCategory","parameters":[{"name":"id","in":"path","description":"The unique ID of the ticket category to be updated.","required":true,"schema":{"type":"integer"}},{"name":"Authorization","in":"header","description":"Bearer token for authentication.","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"categoryName":{"type":"string"},"status":{"type":"number"},"parentCategoryId":{"type":"integer"}}}}}},"responses":{"200":{"description":"Successfully updated the ticket category","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer"},"message":{"type":"string"},"data":{"type":"object","properties":{"createdBy":{"type":"string"},"createdDate":{"type":"string"},"modifiedBy":{"type":"string"},"modifiedDate":{"type":"string"},"id":{"type":"integer"},"categoryName":{"type":"string"},"parentCategoryId":{"type":"integer"},"isActive":{"type":"boolean"},"isDelete":{"type":"boolean"},"categoryType":{"type":"string"}}}}}}}},"500":{"description":"Failed to update ticket category","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer"},"message":{"type":"string"}}}}}}}}}}}
```

## Delete Ticket Category

> This API allows users to delete a specific support ticket category based on the provided category ID.

```json
{"openapi":"3.0.1","info":{"title":"SpurtV5","version":"1.0.0"},"tags":[{"name":"Support ticket category","description":"Support ticket category for admin"}],"servers":[{"url":"http://139.59.67.17/backend/api"},{"url":"https://139.59.67.17/backend/api"}],"paths":{"/support-ticket/ticket-category/{id}":{"delete":{"tags":["Support ticket category"],"summary":"Delete Ticket Category","description":"This API allows users to delete a specific support ticket category based on the provided category ID.","operationId":"deleteTicketCategory","parameters":[{"name":"id","in":"path","description":"The unique ID of the ticket category to be deleted.","required":true,"schema":{"type":"integer"}},{"name":"Authorization","in":"header","description":"Bearer token for authentication.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully deleted the ticket category","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer"},"message":{"type":"string"}}}}}},"500":{"description":"Failed to delete ticket category","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer"},"message":{"type":"string"}}}}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.spurtcommerce.com/spurtapi/spurtcommerce/admin-api/settings/support-category.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
