邀请码管理

批量生成邀请码

管理员批量生成邀请码,可指定数量和权限等级

post/admin/invite-codes/generate

Request

  • Base URL
    http://localhost:8888/api/v1
  • URL
    http://localhost:8888/api/v1/admin/invite-codes/generate
  • Auth
    API key in header Authorization

Request body

codestring

自定义邀请码,如果为空则自动生成

countinteger required
expiresAtstring
lengthinteger

邀请码长度,仅在自动生成时有效

maxUsesinteger
remarkstring

Response

生成成功,返回邀请码列表

codeinteger
datastring[]
messagestring
msgstring

Changes

No recorded changes to this operation across all 122 revisions of this API.