Add ERLC Record

Create an ER:LC record.

POST https://api.sonorancms.com/v2/community/erlc/records

Rate limit: 18 requests per minute

Authenticated v2 endpoints are rate limited per credential rather than per IP address.

Create an ER:LC record.

Request Body

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| robloxJoinCode | string | Yes | See example request for the shape. |

| executerDiscordId | string | Yes | See example request for the shape. |

| type | string | Yes | See example request for the shape. |

| reason | string | Yes | See example request for the shape. |

| points | 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",
  ["executerDiscordId"] = "1234567890",
  ["type"] = "note",
  ["reason"] = "Example note",
  ["points"] = 0
}

local response = sonoran.cms:addErlcRecordV2(payload)

if response.success then
  print(response.data)
else
  print(response.reason)
end

Response

The response shape varies by record type:

  • note, kick, and custom log types return a confirmation object such as { success: true, message: "Records added successfully" }.

  • ban returns { success: true } after the ban queue is updated.

  • disciplinary returns the disciplinary service payload, which is usually { success: true, data: [DisciplinaryRecord] }.

Last updated

Was this helpful?