Build an approved model plan

POST/api/v1/dashboards/models/build

Evaluate a draft model against live ledger data and persist it as a dashboard whose widgets are its sheets. The draft must have come from /models/import or the plan_model chat tool, and expires an hour after it was created.

Operation ID: build_model_from_draft_api_v1_dashboards_models_build_post·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Request body

draft_idstringrequired
visibilitystring

One of: private, assigned, business

Responses

201Successful Response

successboolean
messagestring
codestring
dataDashboardResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

404Not Found - Resource does not exist

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject