DeeCee.ai Agentic API
API Endpoint ReferenceDecisions

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.

POST/v1/decisions/{id}/refine/apply
AuthorizationBearer <token>

API key in dc_live_... / dc_test_... format, from /settings/api-keys.

In: header

Path Parameters

idstring

Decision or job ID.

stage_indexinteger

Zero-based index of the stage to overwrite.

Range0 <= value <= 9007199254740991
contentstring

The revised stage content to save — typically revised_content from refine_stage, as-is or edited by the user.

Length1 <= length <= 100000

Response 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"
}