Add a ticket type
/api/settings/discord-tickets/typesAdd a kind of ticket: its button label, the staff role, the opening message and whether members may post private images. At most five.
Needs the ManageSettings permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/settings/discord-tickets/types" \ -H "Content-Type: application/json" \ -d '{ "name": null, "staffRoleId": null, "openingMessage": null, "holdsPrivateImages": true }'{ "transcriptChannelId": null, "types": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "staffRoleId": null, "staffRoleName": null, "openingMessage": "string", "holdsPrivateImages": true, "position": 0, "openTickets": 0 } ]}Set the transcript channel PUT
Save the channel a closed ticket's transcript is posted in. Empty for none. Needs the `ManageSettings` permission.
Delete a ticket type DELETE
Remove a ticket type. Tickets already open stay open; only people who may manage threads can close them afterwards, and a panel already posted keeps its button, which then says the ticket type is gone. Needs the `ManageSettings` permission.