Skip to main content
PATCH
/
api
/
v3
/
answer-engine
/
{engine_id}
/
system-prompt
Update System Prompt
curl --request PATCH \
  --url https://api.nugen.in/api/v3/answer-engine/{engine_id}/system-prompt \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt_name": "<string>",
  "prompt_text": "<string>"
}
'
{
  "prompt_id": "<string>",
  "prompt_name": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

engine_id
string
required

Unique answer engine identifier

Body

application/json

Request body for updating the system prompt of an answer engine.

prompt_name
string
required

Prompt label / version name

prompt_text
string
required

Full prompt text to apply

Response

Returns the prompt ID and name after successfully updating the system prompt

Response returned after successfully updating the system prompt.

prompt_id
string
required
prompt_name
string
required