Skip to main content
PUT
/
api
/
v1
/
prompt
/
{prompt_id}
Update Prompt By Id
curl --request PUT \
  --url 'https://api.example.com/api/v1/prompt/{prompt_id}?api_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "prompt_template": "<string>",
  "owner_type": "user"
}
'
{
  "message": "Data updated successfully",
  "meta": {},
  "data": {
    "name": "<string>",
    "description": "<string>",
    "prompt_template": "<string>",
    "owner_type": "user"
  }
}

Authorizations

api_key
string
query
required

Your API key for authentication. You can generate it from the Settings page. Format: starts with in-.

Path Parameters

prompt_id
string<uuid>
required

The UUID id of the assistant

Body

application/json
name
string | null
description
string | null
prompt_template
string | null
owner_type
enum<string> | null
Available options:
user,
system

Response

Successful Response

message
string | null
default:Data updated successfully
meta
Meta · object
data
IPromptUpdate · object