Put a role's or a channel's permissions back
/api/discord/snapshots/{id}/restorePuts one role's server-wide permissions, or one channel's permissions for roles, back to what the snapshot has. Needs Restore turned on in Settings, the bot connected and Manage Roles. The body carries the fingerprint from the preview; if the server no longer gives the same change the answer is 409. Settings for single members in a channel are left alone. Recorded in the audit log.
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
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/discord/snapshots/497f6eca-6276-4993-bfeb-53cbbbba6f08/restore" \ -H "Content-Type: application/json" \ -d '{ "kind": "string", "targetId": "string", "fingerprint": null }'{ "done": true, "error": null, "missingPermission": true, "applied": 0, "lines": [ "string" ]}Show what a restore would change POST
Works out, from the server as it is now, exactly what putting one role's or one channel's permissions back from the snapshot would change. Changes nothing. Needs the `ManageSettings` permission.
What share of members have linked GET
How many people in the VRChat group have a Discord account linked, how many in the Discord server have a VRChat account linked, and the state of the one-time link reminder. Counts only; nobody is named. Needs the `ViewAnalytics` permission.