## Ticket settings (`ticket-settings`)

Auto-close, reminder, reopen window and rating switch.

Authentication: Admin only · Docs: https://www.gocdn888.com/en/docs/api/ticket-settings

### GET `/api/v2/ticket-settings`

Get ticket settings · Authentication: Admin only

```sh
curl "https://panel.example.com/api/v2/ticket-settings" \
  -H "X-API-Key: $GOCDN_API_KEY"
```

### PUT `/api/v2/ticket-settings`

Update ticket settings · Authentication: Admin only

Request body:

| Field | Type | Required | Description |
|---|---|---|---|
| `admin_bot_enabled` | boolean |  | Send the same events to enabled webhook bots whose events include ticket; omitted = unchanged; default on. |
| `admin_email_enabled` | boolean |  | Email the platform contact address on new tickets, user replies, reopens and bad ratings; omitted = unchanged; default on. |
| `auto_close_days` | integer | Yes | Days until auto-close (from the last staff reply), 1 to 30; default 7. Default: 7 |
| `auto_close_enabled` | boolean | Yes | Auto-close when the user does not reply. |
| `bot_summary_enabled` | boolean |  | Include the first 200 characters of the message in bot posts; off = title, status and link only. Omitted = unchanged; default on. |
| `rating_enabled` | boolean | Yes | Allow ratings. |
| `remind_days` | integer | Yes | Days until the reminder, 1 to 29, less than the auto-close days; default 1. Default: 1 |
| `remind_enabled` | boolean | Yes | Remind the user before auto-close. |
| `reopen_days` | integer | Yes | Days after closing during which reopening is allowed, 1 to 365; default 30. Default: 30 |
| `reopen_enabled` | boolean | Yes | Allow the user to reopen after closing. |

```sh
curl -X PUT "https://panel.example.com/api/v2/ticket-settings" \
  -H "X-API-Key: $GOCDN_API_KEY"
```

Ticket settings object:

| Field | Type | Required | Description |
|---|---|---|---|
| `admin_bot_enabled` | boolean |  | Send the same events to enabled webhook bots whose events include ticket; omitted = unchanged; default on. |
| `admin_email_enabled` | boolean |  | Email the platform contact address on new tickets, user replies, reopens and bad ratings; omitted = unchanged; default on. |
| `auto_close_days` | integer |  | Days until auto-close (from the last staff reply), 1 to 30; default 7. Default: 7 |
| `auto_close_enabled` | boolean |  | Auto-close when the user does not reply. |
| `bot_summary_enabled` | boolean |  | Include the first 200 characters of the message in bot posts; off = title, status and link only. Omitted = unchanged; default on. |
| `rating_enabled` | boolean |  | Allow ratings. |
| `remind_days` | integer |  | Days until the reminder, 1 to 29, less than the auto-close days; default 1. Default: 1 |
| `remind_enabled` | boolean |  | Remind the user before auto-close. |
| `reopen_days` | integer |  | Days after closing during which reopening is allowed, 1 to 365; default 30. Default: 30 |
| `reopen_enabled` | boolean |  | Allow the user to reopen after closing. |
