Answer every question of one form in a single write.
POST/ai-builder-api/projects/:projectId/runs/:runId/answers/batch
Records up to 12 answers in one run write and resumes the run once,
so a multi-question form does not resume the planner per answer.
Same per-answer rules as POST …/answers (records review approval
by approve:<reviewId> only, decline:<reviewId> declines,
anything else is a change request); attachmentIds are
ignored here. Project-scoped (404 for another project's run);
locationId comes from the session, never from the body.
Idempotency: an answer whose capId and correlationId match the
recorded one is skipped; when every answer is such a duplicate
nothing is written and the run is not resumed again (still 202).
Request
The API version.
v3The project's id.
Possible values: Value must match regular expression ^prj_[A-Za-z0-9_-]+$
The run's id.
Possible values: Value must match regular expression ^run_[A-Za-z0-9_-]+$
- application/json
- Body
- Example (auto)
Bodyrequired
Each item is validated as AnswerQuestionRequest; attachmentIds are ignored on this route.
Possible values: >= 1, <= 12
{
"answers": [
{
"capId": "cap_portal_modules",
"value": "Courses"
}
]
}
Answers recorded; any awaiting agent resumes asynchronously.
- application/json
- Schema
- Example (auto)
Schema
The answers were accepted.
true{
"ok": true
}