Hub

Fetch hub

GET https://api.hubdot.xyz/v1/hub/fetch

Returns a specific hub.

Query Parameters

NameTypeDescription

guildId

string

hub's Discord guild id

apiToken

string

hub's api token

{
    "_id": "5fd7a219e886f325a0b5c845",
    "name": "hubdot",
    "guildId": "730698645720268844",
    "placeId": "123456",
    "theme": "light",
    "apiToken": "BTe0KIeakq33J2VdhVpsDRh54UxdePbC",
    "products": [
        {
            "_id": "5fd7a9332db5f24c24262f23",
            "hub": "5fd7a219e886f325a0b5c845",
            "name": "productdot",
            "description": "Lorem Ipsum Dolor Sit Amet",
            "developerProductId": "12345",
            "downloadUrl": "https://example.com",
            "createdAt": "2020-12-14T18:04:35.630Z",
            "updatedAt": "2020-12-14T18:04:35.630Z"
        }
    ],
    "createdAt": "2020-12-14T17:34:17.654Z",
    "updatedAt": "2020-12-14T17:34:17.654Z"
}

Create hub

POST https://api.hubdot.xyz/v1/hub/create

Creates a hub.

Request Body

NameTypeDescription

guildId

string

hub's Discord guild id

name

string

hub's name

placeId

string

hub's Roblox place id

theme

string

hub's theme, default monochrome

{
    "apiToken": "8ZB0sHV9DxbEdSh5VmAQ9kW1CvHq9PsI"
}

Delete hub

POST https://api.hubdot.xyz/v1/hub/delete

Deletes a hub.

Request Body

NameTypeDescription

guildId

string

hub's Discord guild id

apiToken

string

hub's api token

{}

Update hub

POST https://api.hubdot.xyz/v1/hub/update

Updates a hub.

Request Body

NameTypeDescription

guildId

string

hub's Discord guild id

apiToken

string

hub's api token

update

object

keys to update

update.name

string

name to update to

update.placeId

string

place id to update to

update.theme

string

theme to update to

{}

Last updated