API Reference
Virtual Keys
Prompts
- POSTCreate Prompt
- GETList Prompts
- GETRetrieve Prompt
- PUTUpdate Prompt
- DELDelete Prompt
- PUTPublish Prompt
- GETList Prompt Versions
- GETRetrieve Prompt Version
- PUTUpdate Prompt Version
- Prompt Partials
- Prompt Labels
- Prompt Collections
API Keys
Analytics [BETA]
- Summary
- Groups Paginated Data
- Graphs - Time Series Data
User Invites
Workspaces
Workspace Members
Audit Logs
OpenAPI
Update Prompt
PUT
/
prompts
/
{promptId}
curl --request PUT \
--url https://api.portkey.ai/v1/prompts/{promptId} \
--header 'Content-Type: application/json' \
--header 'x-portkey-api-key: <api-key>' \
--data '{
"name": "<string>",
"collection_id": "<string>",
"string": "<string>",
"parameters": {},
"model": "<string>",
"virtual_key": "<string>",
"version_description": "<string>",
"functions": [
{}
],
"tools": [
{}
],
"tool_choice": {},
"is_raw_template": 0,
"prompt_metadata": {}
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"prompt_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
Authorizations
Path Parameters
Body
application/json
Response
200
application/json
Prompt updated successfully
The response is of type object
.
Was this page helpful?
curl --request PUT \
--url https://api.portkey.ai/v1/prompts/{promptId} \
--header 'Content-Type: application/json' \
--header 'x-portkey-api-key: <api-key>' \
--data '{
"name": "<string>",
"collection_id": "<string>",
"string": "<string>",
"parameters": {},
"model": "<string>",
"virtual_key": "<string>",
"version_description": "<string>",
"functions": [
{}
],
"tools": [
{}
],
"tool_choice": {},
"is_raw_template": 0,
"prompt_metadata": {}
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"prompt_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}