Lock Team
Lock an ER:LC team.
POST https://api.sonorancms.com/v2/community/erlc/teams/lock
Rate limit:
18 requests per minute
Authenticated v2 endpoints are rate limited per credential rather than per IP address.
Lock an ER:LC team.
Request Body
| Name | Type | Required | Description |
| --- | --- | --- | --- |
| robloxJoinCode | string | Yes | See example request for the shape. |
| team | string | Yes | See example request for the shape. |
| maxPlayers | number | Yes | See example request for the shape. |
Example Request
local Sonoran = require("sonoran")
local sonoran = Sonoran.createClient({
product = Sonoran.productEnums.CMS,
apiKey = "YOUR_API_KEY",
communityId = "YOUR_COMMUNITY_ID",
defaultServerId = 1,
timeoutMs = 30000,
})
local payload = {
["robloxJoinCode"] = "ABC123",
["team"] = "Police",
["maxPlayers"] = 10
}
local response = sonoran.cms:lockTeamV2(payload)
if response.success then
print(response.data)
else
print(response.reason)
endResponse
The data value is a confirmation string. The exact wording changes for lock and unlock, but both endpoints return a string rather than a structured object.
Last updated
Was this helpful?

