Skip to main content

Group Endpoints

Group endpoints in RoManager's API

Base URL: https://api.romanager.jaydensar.net/v1

Assign a role to a user#

PATCH /role/:userId

Only one of these parameters are required

ParameterTypeDescription
roleIdnumberID of role to assign
roleRanknumberRank of role to assign
roleNamestringName of role to assign

Request body example#

{    "roleRank": 254}

HttpService example#

-- This example assigns the role with the rank 254 to the user jaydensar (95158139)local http = game:GetService('HttpService')
http:RequestAsync({    Url = 'https://api.romanager.jaydensar.net/v1/role/95158139',    Body = http:JSONEncode({        roleRank = 254    }),    Method = 'PATCH',    Headers = {        ['Content-Type'] = 'application/json',        ['Authorization'] = 'API key here'    }})

Exile a user#

DELETE /exile/:userId

HttpService example#

-- This example exiles the user jaydensar (95158139)local http = game:GetService('HttpService')
http:RequestAsync({    Url = 'https://api.romanager.jaydensar.net/v1/exile/95158139',    Method = 'DELETE',    Headers = {        ['Content-Type'] = 'application/json',        ['Authorization'] = 'API key here'    }})

Set the group shout#

PATCH /shout
ParameterTypeDescription
contentstringThe new shout's content

Request body example#

{    "content": "This is what will be set as the new shout!"}

HttpService example#

-- This example sets the shout to "This is what will be set as the new shout!"local http = game:GetService('HttpService')
http:RequestAsync({    Url = 'https://api.romanager.jaydensar.net/v1/shout',    Method = 'PATCH',    Body = http:JSONEncode({        content = 'This is what will be set as the new shout!'    }),    Headers = {        ['Content-Type'] = 'application/json',        ['Authorization'] = 'API key here'    }})