Update the system prompt for an answer engine.
Path Parameters:
engine_id: Unique identifier of the answer engineRequest Body (both required):
prompt_name: A label for this prompt version (e.g. answer_generation+1)prompt_text: The complete prompt textReturns:
prompt_id: Unique identifier of the created/updated promptprompt_name: Name/label of the applied promptRaises:
404: Engine not found422: Missing required field400: Upstream update failedExample Request:
PATCH /api/v3/answer-engine/ae_8c625d9d71/system-prompt
Headers: {"Authorization": "Bearer <api_key>"}
{
"prompt_name": "answer_generation+1",
"prompt_text": "You are a helpful assistant that answers questions strictly based on the provided document chunks."
}
Example Response:
{
"prompt_id": "prompt_b2df5f9509",
"prompt_name": "answer_generation+1"
}
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique answer engine identifier