1. Sync
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. Sync

手动触发外部数据源同步

POST
/api/sync/jobs
手动触发 Moe Sekai 原文同步任务。请求体可为空;如传入 source,仅支持 moesekai。当前接口不支持按 story_types 局部同步。

请求参数

Body 参数application/json

示例
{
  "source": "moesekai"
}

请求示例代码

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/sync/jobs' \
--header 'Content-Type: application/json' \
--data-raw '{
  "source": "moesekai"
}'

返回响应

🟢200成功
application/json
同步任务执行完成并返回任务记录。
Body

示例
{
    "id": 0,
    "job_type": "source_story_sync",
    "trigger_type": "manual",
    "status": "pending",
    "started_at": "2019-08-24T14:15:22.123Z",
    "ended_at": "2019-08-24T14:15:22.123Z",
    "error_message": "string",
    "metadata": {
        "property1": "string",
        "property2": "string"
    },
    "created_at": "2019-08-24T14:15:22.123Z",
    "updated_at": "2019-08-24T14:15:22.123Z"
}
🟠400请求有误
🟠401没有权限
🟠403禁止访问
🟠409同步冲突
修改于 2026-05-05 16:09:03
上一页
搜索原文和当前租户译文
下一页
查询同步任务列表
Built with