Skip to main content
PATCH
Update a prompt version message

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

Body

application/json

All fields optional. Moving a message to another version by changing promptVersionId is accepted by the schema but not recommended.

promptVersionId
string<uuid>
role
enum<string>
Available options:
user,
assistant,
system,
function
content
string | null
markdownContent
string | null
index
integer
id
string<uuid>

Response

The updated message.

id
string<uuid>
required
promptVersionId
string<uuid>
required
role
enum<string>
required
Available options:
user,
assistant,
system,
function
index
integer
required

Position of the message inside the version. The prompt is read from index 0.

createdBy
string
required
updatedBy
string
required
content
string | null

Plain-text prompt content. May use {{variable}} placeholders.

markdownContent
string | null
createdAt
string<date-time> | null
updatedAt
string<date-time> | null
deletedAt
string<date-time> | null