Update Prompt
Update an existing prompt (full replacement of mutable fields).
Path parameters
workspace
name
Request
This endpoint expects an object.
project
The URN of the project associated with this prompt.
description
messages
input_variables
tools
tool_choice
response_format
inference_params
Parameters for model inference. Extra fields can be supplied for additional options applied to the inference request directly. Fields not supported by the model may cause inference errors during evaluation.
Response
Update an existing prompt
name
Name of the entity. Name/workspace combo must be unique across all entities. Allowed characters: letters (a-z, A-Z), digits (0-9), underscores, hyphens, and dots.
workspace
The workspace of the entity. Allowed characters: letters (a-z, A-Z), digits (0-9), underscores, hyphens, and dots.
created_at
The timestamp of model entity creation
updated_at
The timestamp of the last model entity update
id
Unique identifier for the prompt.
project
The URN of the project associated with this entity.
description
Optional description of the prompt.
messages
Ordered list of chat messages that make up the prompt.
input_variables
Names of the Jinja2 template variables the prompt expects.
tools
Optional OpenAI-compatible tool definitions to send with the prompt.
tool_choice
Controls which (if any) tool is called: ‘none’, ‘auto’, ‘required’, or a named-tool object.
response_format
Optional OpenAI-compatible response_format, e.g. a json_schema structured-output spec.
inference_params
Optional default model and sampling parameters (temperature, top_p, max_tokens, …).
Errors
422
Unprocessable Entity Error