Skip to main content
POST
进入留白作答

请求体

application/json

作答转场命令的公共输入。不同路由会读取其中一部分字段。

windowId
string
expectedTopicId
string
requestId
string

调用方生成的幂等标识。后续查询 transition-result 时使用。

questionId
string

要进入或开始作答的题目。

carrier
string

作答载体,例如 focus 或 blank。

runId
string
attemptId
string
confirm
boolean

写操作确认。面板调用时 MarginNote 会补上。

响应

转场结果。可能还有未列出的字段。

作答转场结果。看 settled、outcome、ready 与 canSwitch,不要只看 HTTP 状态码。

schemaVersion
integer
bridgeApiVersion
string
requestId
string
state
string

受理时可能为 pending。

settled
boolean
outcome
string
ready
boolean
canSwitch
boolean
scope
string
code
string

受理之后才出现的失败码,走该项而不是 error.code。

layerLeaseUnresolved
boolean

为 true 时结果不确定,不要自动重试,先读取状态。