1. Users
Sekai Platform
  • Auth
    • 用户登录
      POST
    • 用户登出
      POST
    • 获取当前登录状态
      GET
    • 加载当前用户可访问租户
      GET
    • 选择或切换当前租户
      PUT
  • Users
    • 邀请用户加入当前租户
      POST
  • Assets
    • 查询支持的剧情类型
      GET
    • 查询剧情集列表
      GET
    • 查询剧情集详情
      GET
    • 查询剧情列表
      GET
    • 查询剧情详情
      GET
    • 查询剧情原文行
      GET
    • 查询当前租户的翻译版本列表
      GET
    • 查询翻译版本详情
      GET
    • 查询翻译行
      GET
  • Search
    • 搜索原文和当前租户译文
      GET
  • Sync
    • 手动触发外部数据源同步
      POST
    • 查询同步任务列表
      GET
    • 查询同步任务详情
      GET
  • Import
    • 批量导入历史译文
      POST
  • 数据模型
    • ErrorResponse
    • LoginRequest
    • SelectTenantRequest
    • AuthSession
    • UserProfile
    • Tenant
    • TenantMembership
    • InviteUserRequest
    • UserInvitationResult
    • UserRole
    • UserTenantStatus
    • StoryType
    • StoryTypeInfo
    • ExternalType
    • LineType
    • StoryGroup
    • Story
    • StorySourceLine
    • TranslationVersion
    • TranslationLine
    • SearchAssetType
    • SearchHit
    • SearchStoryRef
    • SearchStoryGroupRef
    • SearchTranslationVersionRef
    • ExternalDataSource
    • JobStatus
    • CreateSyncJobRequest
    • SyncJob
    • SyncJobStats
    • ImportTranslationVersionRequest
    • StoryMatch
    • ImportTranslationLine
    • ImportJob
    • PageMeta
    • StoryGroupPage
    • StoryPage
    • TranslationVersionPage
    • SearchResultPage
    • SyncJobPage
  1. Users

邀请用户加入当前租户

POST
/api/users/invitations
管理员接口。用户已存在时创建租户成员关系;用户不存在时创建默认用户,再加入当前租户。

请求参数

Body 参数application/json必填

示例
{
    "qq_id": "string",
    "display_name": "string",
    "role": "normal"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://platform.pjs.accr.cc/api/users/invitations' \
--header 'Content-Type: application/json' \
--data-raw '{
    "qq_id": "string",
    "display_name": "string",
    "role": "normal"
}'

返回响应

🟢201成功
application/json
邀请结果
Body

示例
{
    "user": {
        "id": 0,
        "qq_id": "string",
        "display_name": "string",
        "avatar_url": "http://example.com"
    },
    "membership": {
        "tenant": {
            "id": 0,
            "name": "string",
            "avatar_url": "http://example.com"
        },
        "role": "normal",
        "status": "active"
    },
    "created_user": true,
    "initial_password": "string"
}
🟠400请求有误
🟠401没有权限
🟠403禁止访问
修改于 2026-05-02 18:57:35
上一页
选择或切换当前租户
下一页
查询支持的剧情类型
Built with