Undo Rank Change

Undo a previously recorded rank change.

POST https://api.sonorancms.com/v2/community/rank-changes/11111111-1111-1111-1111-111111111111/undo

Rate limit: 13 requests per minute

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

Undo a previously recorded rank change.

Route Parameters

| Name | Type | Required | Description |

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

| undoId | string (uuid) | Yes | Target undoId. |

Request Body

| Name | Type | Required | Description |

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

| userId | string | 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 undoId = "00000000-0000-0000-0000-000000000000"
local payload = {
  ["userId"] = "11111111-1111-1111-1111-111111111111"
}

local response = sonoran.cms:undoRankChangeV2(undoId, payload)

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

Response

The data object contains the undo summary, the updated account, the previous and current ranks, and the original/reversal log ids.

Last updated

Was this helpful?