Skip to main content
PATCH
/
api
/
v1
/
orgs
/
{org_id}
/
prompts
/
{prompt_id}
Update Prompt
curl --request PATCH \
  --url https://api.example.com/api/v1/orgs/{org_id}/prompts/{prompt_id}/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "content": "<string>",
  "tags": [
    "<string>"
  ],
  "variables": [
    {}
  ],
  "prompt_type": "<string>",
  "create_new_version": true,
  "version_notes": "<string>",
  "is_major_change": 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
prompt_id
string
required

Body

application/json

Data transfer object for updating a prompt.

name
string | null
description
string | null
content
string | null
tags
string[] | null
variables
Variables · object[] | null
prompt_type
string | null
create_new_version
boolean
version_notes
string | null
is_major_change
boolean

Response

Successful Response

The response is of type Response Update Prompt Api V1 Orgs Org Id Prompts Prompt Id Patch · object.