Skip to main content
Write endpoints change data in the authenticated API key’s scope. They require API-key authentication and a JSON body.
Scoped keys must provide guildId for writes. Dock checks that the bot is in the guild and that the affected Discord user is a member of the guild.

Update a Discord ID

Use this when a stored link needs to move from one Discord ID to another.
string
required
Existing Discord user ID on the stored link.
string
required
New Discord user ID to store on the link.
string
Required for scoped keys.
cURL
200 OK
Use this when a Discord user should point to a Roblox account. Dock verifies that the Roblox user exists before saving.
string
required
Discord user ID to create or update.
string
required
Roblox user ID to attach to the Discord user.
string
Required for scoped keys.
200 OK
Use this to remove the Roblox account from a Discord user while leaving the user record available for future updates.
string
required
Discord user ID whose Roblox link should be removed.
string
Required for scoped keys.
200 OK

Delete scoped data

Use this only when you need to clear all link records in the current key’s data scope.
boolean
required
Must be true. This guard prevents accidental deletes.
cURL
200 OK

Cache behavior

v2 invalidates affected lookup caches after writes. That includes related Discord IDs, Roblox IDs, PID-scoped data, and shared lookup entries.

Failure cases