Commit revised content to a stage
Typically revised_content from POST /v1/decisions/{id}/refine, as-is or edited — only call after the user approves it. Overwrites the stage and records a new version in its history. Synchronous, no LLM call.
/v1/decisions/{id}/refine/applyAPI key in dc_live_... / dc_test_... format, from /settings/api-keys.
In: header
Path Parameters
Decision or job ID.
Zero-based index of the stage to overwrite.
0 <= value <= 9007199254740991The revised stage content to save — typically revised_content from refine_stage, as-is or edited by the user.
1 <= length <= 100000Response Body
curl -X POST "https://api.deecee.ai/v1/decisions/string/refine/apply" \ -H "Content-Type: application/json" \ -d '{ "stage_index": 9007199254740991, "content": "string" }'{
"success": true,
"data": {
"stage_index": 0,
"stage_title": "string",
"version": "string"
}
}{
"success": false,
"error": "string",
"code": "string"
}{
"success": false,
"error": "string",
"code": "string"
}{
"success": false,
"error": "string",
"code": "string"
}Commit a decision's title/framework/complexity
Typically the recommendation from POST /v1/decisions/{id}/assess, as-is or with overrides — only call this after the user has confirmed it. Synchronous, no LLM call. Once applied, ask the user whether they want stage-by-stage (/advance) or all-at-once (/analyze) analysis before starting it.
Assess a decision's context and recommend complexity/framework/title
Read-only — does not modify the decision. Show the recommendation to the user and get their explicit confirmation (or overrides) before committing it via POST /v1/decisions/{id}/setup — do not apply it or start analysis unconfirmed.