API 参考 / blueprints
POST /api/v1/orgs/{orgId}/blueprint-drafts/{draftId}/survey/confirm · confirmSurveyVersion
对当前生效的问卷版本执行服务端完整性校验,并把该版本从 draft 原子推进为 confirmed,同时把草案推进到 survey_ready。请求必须携带当前 surveyVersionId + draftVersion;保存或确认发生并发变化时返回 409,不确认旧输入。
确认成功与 confirm_survey_version 审计在同一控制面事务提交。已确认的同一当前版本 重复调用保持幂等。仅 active Org Admin 可调用;普通成员 404(零感知)。 PAT 不可调用本端点。
本接口要求浏览器会话。Bearer API Token 无法调用——Token 的生命周期管理必须在网页端完成。
orgId(必填)draftId(必填)surveyVersionId(必填)draftVersion(必填)id(必填)draftId(必填)schemaVersion(必填)answersanswers.schemaVersionanswers.step1answers.step1.engineanswers.step1.headcountanswers.step1.rolesanswers.step1.experienceanswers.step1.existingAssetsanswers.step2answers.step2.genresanswers.step2.themesanswers.step2.coreLoopanswers.step3answers.step3.platformsanswers.step3.regionsanswers.step3.targetAgeanswers.step4answers.step4.competitorsanswers.step5answers.step5.modelanswers.step5.priceTieranswers.step5.channelsanswers.step6answers.step6.timelineanswers.step6.budgetanswers.step6.qualityBaranswers.step6.constraintsintentintent.schemaVersion(必填)intent.teamintent.team.engineintent.team.headcountintent.team.rolesintent.team.experienceintent.team.existingAssetsintent.categoryintent.category.genresintent.category.themesintent.category.coreLoopintent.marketintent.market.platformsintent.market.regionsintent.market.targetAgeintent.competitorsintent.competitors[].marketGameIdintent.competitors[].entryKind(必填)intent.competitors[].name(必填)intent.competitors[].noteintent.monetizationintent.monetization.modelintent.monetization.priceTierintent.monetization.channelsintent.goalsintent.goals.timelineintent.goals.budgetintent.goals.qualityBarintent.goals.constraintsintent.goals.preferencesintent.goals.exclusionsintent.goals.openQuestionsintent.capabilityintent.capability.headcountintent.capability.rolesintent.capability.experienceintent.capability.assetsintent.capability.totalintent.hardConstraintsintent.risksstatus(必填)createdBycreatedAt(必填)confirmedAt404:Problem 错误响应409:Problem 错误响应422:Problem 错误响应curl -X POST "https://workflow.games/api/v1/orgs/{orgId}/blueprint-drafts/{draftId}/survey/confirm" \
-H "Authorization: Bearer wfp_…" \
-H "content-type: application/json" \
--data '{"surveyVersionId":"018f3c2e-0000-7000-8000-000000000000","draftVersion":1}'HTTP/1.1 200
{
"id": "018f3c2e-0000-7000-8000-000000000000",
"draftId": "018f3c2e-0000-7000-8000-000000000000",
"schemaVersion": 1,
"status": "draft",
"createdAt": "示例文本"
}合同真值:OpenAPI 3.1(0.1.0)。
相关:Agent 接入指南 · 使用指南 · API 参考索引