SynqDocs
Management APIDiscord servers

Disconnect a Discord server

Takes the bot out of the server and stops every role the org's gates give there, from now on: whoever holds one keeps it, and nobody is checked there again. Connecting it again starts afresh. Needs `org.integrations.edit`. Recorded as `discord_server.disconnected`.

DELETE/v1/orgs/{org}/discord-servers/{server}

Takes the bot out of the server and stops every role the org's gates give there, from now on: whoever holds one keeps it, and nobody is checked there again. Connecting it again starts afresh. Needs org.integrations.edit. Recorded as discord_server.disconnected.

Authorization

bearer
AuthorizationBearer <token>

An org API key (sk_live_…, sk_test_…), or an access token from the Synq issuer (the synq brand, on the accounts host) for this API.

In: header

Path Parameters

org*string

The org's id

Match^org_[0-9a-hjkmnp-tv-z]{26}$
server*string

The Discord server's id

Match^dsv_[0-9a-hjkmnp-tv-z]{26}$

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X DELETE "https://api.synq.build/v1/orgs/org_01h455vb4pex5vsknk084sn02q/discord-servers/dsv_01h455vb4pex5vsknk084sn02q" \  -H "Authorization: Bearer $SYNQ_API_KEY"
Empty