API 参考 / blueprints
POST /api/v1/orgs/{orgId}/blueprint-drafts/{draftId}/survey/intent · generateSurveyIntent
返回当前生效问卷版本的 ProjectIntent(确定性归一产物)。不重新计算——返回的是 保存时钉死的同一份 Intent(保证逐字节一致)。仅 active Org Admin 可调用;普通成员 404。 PAT 不可调用本端点。
空态:草案还没有任何问卷版本时返回 400「请先保存问卷后再生成意图」(操作顺序错误), 而非 404。
本接口要求浏览器会话。Bearer API Token 无法调用——Token 的生命周期管理必须在网页端完成。
orgId(必填)draftId(必填)schemaVersion(必填)teamteam.engineteam.headcountteam.rolesteam.experienceteam.existingAssetscategorycategory.genrescategory.themescategory.coreLoopmarketmarket.platformsmarket.regionsmarket.targetAgecompetitorscompetitors[].marketGameIdcompetitors[].entryKind(必填)competitors[].name(必填)competitors[].notemonetizationmonetization.modelmonetization.priceTiermonetization.channelsgoalsgoals.timelinegoals.budgetgoals.qualityBargoals.constraintsgoals.preferencesgoals.exclusionsgoals.openQuestionscapabilitycapability.headcountcapability.rolescapability.experiencecapability.assetscapability.totalhardConstraintsrisks400:Problem 错误响应404:Problem 错误响应curl -X POST "https://workflow.games/api/v1/orgs/{orgId}/blueprint-drafts/{draftId}/survey/intent" \
-H "Authorization: Bearer wfp_…"HTTP/1.1 200
{
"schemaVersion": 1,
"team": {
"engine": "示例文本",
"headcount": 1,
"roles": [
"示例文本"
]
},
"category": {
"genres": [
"示例文本"
],
"themes": [
"示例文本"
],
"coreLoop": "示例文本"
}
}合同真值:OpenAPI 3.1(0.1.0)。
相关:Agent 接入指南 · 使用指南 · API 参考索引