Creates an inactive version with the next versionSlug for the purpose, copied from seedFromVersionSlug (or the active version, or the code default) with the given changes applied. It takes no traffic until activated. Renaming or removing top-level tool input properties returns 400. An unknown purpose returns 400. Super admins only.
Path parameters
-
Values are
chunk_summary,period_summary,conversation_summary,case_summary,case_context_filing_extraction,relevance_gate,evidentiary_map_element, ortag_suggestion.
Body
Required
-
Claude tool-use input_schema (JSON Schema). Renaming or removing top-level properties triggers 400.
-
'haiku' / 'sonnet' alias or a literal Bedrock model id
-
Minimum value is
1, maximum value is32000. -
Minimum value is
0, maximum value is2. -
Seed the new draft from this version slug. Defaults to the currently active version.
curl \
--request POST 'http://api.example.com/ai/admin/prompts/{purpose}/drafts' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"systemPrompt": "string",
"toolDescription": "string",
"toolInputSchema": {},
"model": "string",
"maxTokens": 42.0,
"temperature": 42.0,
"notes": "string",
"seedFromVersionSlug": "string"
}'
{
"systemPrompt": "string",
"toolDescription": "string",
"toolInputSchema": {},
"model": "string",
"maxTokens": 42.0,
"temperature": 42.0,
"notes": "string",
"seedFromVersionSlug": "string"
}
{
"data": {
"_id": "65a1b2c3d4e5f6a7b8c9d0e1",
"purpose": "case_summary",
"versionSlug": "case_summary.v2",
"systemPrompt": "string",
"toolName": "string",
"toolDescription": "string",
"toolInputSchema": {},
"model": "sonnet",
"maxTokens": 1024,
"temperature": 0.2,
"isActive": true,
"notes": "string",
"createdBy": "65a1b2c3d4e5f6a7b8c9d0e4",
"updatedBy": "65a1b2c3d4e5f6a7b8c9d0e4",
"createdAt": "2026-01-15T10:15:00.000Z",
"updatedAt": "2026-01-15T10:15:00.000Z"
},
"statusCode": 201,
"timestamp": "2026-01-15T10:15:00.000Z"
}