Update a ticket type
/api/settings/discord-tickets/types/{id}Change a ticket type's button label, staff role, opening message or private images switch. Tickets already open keep the private images rule they were opened with.
Needs the ManageSettings permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Path Parameters
uuidRequest 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
application/problem+json
curl -X PUT "https://example.com/api/settings/discord-tickets/types/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -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 } ]}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.
Reorder the ticket types PUT
Set the order of the panel's buttons. Send every type's id once. Needs the `ManageSettings` permission.