Versions Create 2

Default POST handler with automatic organization injection. For CREATE operations: - Superadmins can specify organization_id in request body (API key only) - Regular users always use their own organization Override this method for: - POST-for-filtering pattern (delegate to self.get()) - Custom pre-create validation Note: ``inject_target_organization`` is a DEPRECATED ``request.data``-mutating shim kept for backward-compat during the DEV-9410 migration. The blessed path stamps org via ``get_create_save_kwargs`` → ``perform_create`` → a ``read_only`` serializer field. The shim (and these overrides' reliance on it) is removed in C18 (DEV-9430) once every view's org field is read_only.

Authentication

AuthorizationBearer
JWT access token or Respan API key

Path parameters

prompt_idstringRequired
versionstringRequired

Request

This endpoint expects an object.
promptintegerRequired
parent_promptstring or nullOptional
messageslist of objectsOptional
variablesmap from strings to strings or objectsOptional
toolslist of objects or nullOptional
load_balance_modelslist of objects or nullOptional
thinkingobject or anyOptional
tool_choicestring or object or anyOptional
response_formatobject or nullOptional
json_schemaobject or nullOptional
is_deployedbooleanOptional
descriptionstringOptional
created_atdatetimeOptional
versionintegerOptional-2147483648-2147483647
modelstringOptional1-70 characters
streambooleanOptional
temperaturedouble or nullOptional
max_tokensinteger or nullOptional-2147483648-2147483647
top_pdouble or nullOptional
frequency_penaltydouble or nullOptional
presence_penaltydouble or nullOptional
reasoning_effortstring or nullOptional<=70 characters
verbositystring or nullOptional<=50 characters
seedinteger or nullOptional-2147483648-2147483647
readonlybooleanOptional
fallback_modelslist of strings or nullOptional
is_enforcing_response_formatbooleanOptional

Response

idstringRead-only
edited_byobject
prompt_version_idstringRead-only
updated_atdatetimeRead-only
promptinteger
parent_promptstring or null
messageslist of objects
variablesmap from strings to strings or objects
toolslist of objects or null
load_balance_modelslist of objects or null
thinkingobject or any
tool_choicestring or object or any
response_formatobject or null
json_schemaobject or null
is_deployedboolean
descriptionstring
created_atdatetime
versioninteger-2147483648-2147483647
modelstring<=70 characters
streamboolean
temperaturedouble or null
max_tokensinteger or null-2147483648-2147483647
top_pdouble or null
frequency_penaltydouble or null
presence_penaltydouble or null
reasoning_effortstring or null<=70 characters
verbositystring or null<=50 characters
seedinteger or null-2147483648-2147483647
readonlyboolean
fallback_modelslist of strings or null
is_enforcing_response_formatboolean