Skip to main content
PATCH
/
v1
/
orgs
/
{org_id}
/
prompts
/
{id}
Update a custom prompt
curl --request PATCH \
  --url http://localhost:3000/v1/orgs/{org_id}/prompts/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "description": "<string>",
  "prompt_content": "<string>",
  "prompt_type": "scoring_criterion",
  "order_index": 1,
  "is_active": true
}
'

Authorizations

Authorization
string
header
required

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

Path Parameters

org_id
string
required
id
string<uuid>
required

Body

application/json
title
string
Required string length: 1 - 200
description
string | null
Maximum string length: 2000
prompt_content
string
Required string length: 1 - 20000
prompt_type
enum<string>
Available options:
scoring_criterion,
evaluation_focus,
disqualifier,
other
order_index
integer
Required range: x >= 0
is_active
boolean

Response

200

Default Response