For the complete documentation index, see llms.txt. This page is also available as Markdown.

Give Whitelist

Assign a product license to a user

This endpoint enables the assignment of a product license to a specified user within your hub. By utilizing this route, you can effectively distribute access to various products, ensuring that users receive the correct entitlements based on their permissions or purchases.

Assign a Whitelist to a user

POST https://v2.parcelroblox.com/whitelist/assign

Headers

Name
Type
Description

Authorization*

string

prod_DGzVhVsrqNJi4b0Chd9mMPUI9

Content-Type

string

application/json

Request Body

Name
Type
Description

product_id*

string

Product ID

userid*

string

Roblox or Discord User ID

userid_type*

string

"roblox" or "discord"

If everything was able to process properly:

{ "status": "200", "message": "OK", "data": { "userid": string, "userid_type": string, "product_id": string, "state": "License has been assigned" } }

If you did not supply the Product ID, User ID and User ID Type:

{ "status": "400", "message": "Missing Body Parameters.\nRequired params: product_id, userid, userid_type", "data": {} }

If the user already owns the license:

{ "status": "400", "message": "User already owns license.", "data": { } }

If you provided an invalid User ID Type:

{ "status": "400", "message": "Invalid type.\nAvailable types: roblox, discord", "data": {} }

If you provided an invalid authorization key:

{ "status": "401", "message": "Invalid authorization key." }

If you did not provide an authorization key:

{ "status": "401", "message": "No authorization key was provided." }

If something was wrong on our end:

{ "status": "500", "message": "Internal Server Error" }

If the product ID that you supplied does not exist:

{ "status": "404", "message": "Product does not exist.", "data": {} }

If the user ID that you supplied does not exist within our Database:

{ "status": "404", "message": "No Roblox Account associated to this Discord User ID.", "data": {} }

Last updated