Skip to main content
PATCH
/
public-api
/
prompts
/
{id}
Partially update a prompt
curl --request PATCH \
  --url https://agents.nineteen58.co.za/public-api/prompts/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "prompt": "<string>",
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "is_global": true,
  "goal": "<string>",
  "flow": "<string>",
  "tool_use_rules": "<string>",
  "background": "<string>",
  "persona": "<string>",
  "outcomes_json": {},
  "example_conversation": "<string>",
  "outcomes": "<string>"
}'

Authorizations

x-api-key
string
header
required

Path Parameters

id
string<uuid>
required

Body

application/json
name
string
prompt
string
agent_id
string<uuid>
is_global
boolean
goal
string
flow
string
tool_use_rules
string
background
string
persona
string
outcomes_json
object
example_conversation
string
outcomes
string

Response

Prompt updated successfully