Median

PATCH /integrations/discord

Updated Oct 1, 20261 minute read

Set up the Discord side

Where tickets are cut, who is pinged, where conversations are mirrored, and the two switches. Names in, resolved against the live server. staffRole is the one field where null is an answer: send null to stop pinging anybody, and leave it out to keep whoever is pinged now.

Part of Integrations.

Request body

application/json, optional.

FieldTypeRequiredDescription
ticketChannelstringNo
staffRoleanyNoA role name, or null to stop pinging anybody.
mirrorChannelstringNo
mirrorEnabledbooleanNo
enabledbooleanNo

Responses

StatusDescription
200Whatever was named, as it resolved.
400The request is malformed, and the message names the field.
401The bearer token is missing, revoked, or expired.
404Not one of yours, or not there at all.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
ticketChannelanyNo
staffRoleanyNo
mirrorChannelanyNo

Example request

curl -X PATCH https://api.median.sh/v1/integrations/discord \
  -H "Authorization: Bearer $BEARER_AUTH"

Still need help?

    Esc