melonly logomelonly logo
melonly logo
Dashboard
Log in

Edit a Log

Changes a log as performedBy. Send only the fields you want to change. Editing someone else's log needs the Edit Logs permission.

PATCH

/api/v1/server/logs/{logId}

Request

curl -X PATCH "https://api.melonly.com/api/v1/server/logs/{logId}" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "performedBy": "7264722635089514496",
  "text": "vdm at gas station (again) (third time)"
}'

Response

200

Success

{
  "data": {
    "createdAt": 1794776859830,
    "createdBy": "7264722635089514496",
    "dontCount": false,
    "editedBy": [],
    "expired": false,
    "id": "7527833441069436928",
    "proof": [],
    "robloxId": "156",
    "serverId": "7294057520392310784",
    "text": "vdm at gas station (again)",
    "type": 0,
    "username": "Builderman"
  }
}

Authorization

Authorizationstringrequired
Your API token as Bearer YOUR_TOKEN. Create one in your server's dashboard settings.

Path parameters

logIdstringrequired

Body

performedBystringrequired
Member ID of the staff member editing the log.
descriptionstring | null
Extra details. Needs premium.
resetPunishmentsCountboolean | null
Reset the player's punishment count. Notes only.
tempBanboolean | null
Make the ban temporary, or permanent with false. Bans only.
textstring | null
Reason.
typeinteger | null
New log type.
typeIdstring | null
Custom log type ID. Required when changing type to 5.
unbanAtinteger | null
When a temporary ban ends, up to a year away.
usernamestring | null
Roblox username of the player.

Response

200 Success

createdAtintegerrequired
When it was created.
createdBystringrequired
Member ID of the staff member who created it, or SYSTEM.
editedBystring[]required
Member IDs of everyone who edited it.
idstringrequired
Unique ID.
proofstring[]required
Proof file keys.
serverIdstringrequired
Server ID.
textstringrequired
Reason.
typeintegerrequired
Log type: 0 Warning, 1 Kick, 2 Ban, 3 Ban BOLO, 4 Note or 5 Custom.
usernamestringrequired
Roblox username of the player.
completedBystring | null
For ban BOLOs, member ID of who completed it.
deniedBystring | null
For ban BOLOs, member ID of who denied it.
descriptionstring | null
Extra details.
dontCountboolean | null
Whether it's left out of punishment counts.
expiredboolean | null
Whether it has expired.
expiredAtinteger | null
When it expired.
expiredBystring | null
Member ID of who expired it.
hiddenboolean | null
Whether it's hidden from the player.
hiddenBystring | null
Member ID of who hid it.
robloxIdstring | null
Roblox user ID of the player.
tempBanboolean | null
Whether the ban is temporary.
typeIdstring | null
Custom log type ID, when type is 5.
unbanAtinteger | null
When a temporary ban ends.

Errors

StatusMeaning
400Invalid request. validation_failed lists each invalid field in details.fields.
401Missing, invalid or expired token
403Success
404Not found
429Rate limited. See Retry-After and details.
500Internal server error
502next did not confirm the write. Check whether it applied before retrying.
503Write endpoints are not configured on this deployment