Prompt
Update Prompt
Overview
Prompts
- Prompt
- Prompt Version
- Prompt Deployment
- Prompt Config
Datasets
- Dataset
- Dataset column
- Dataset entry
- Dataset split
Evaluators
- Evaluator
Log repositories
- Log repository
Folders
- Folder
- Folder contents
Integrations
- Integration
Alerts
- Alert
Test runs
- Test run
Test run entries
- Test run entries
Test run reports
- Test run report
Prompt
Update Prompt
Update an existing prompt
PUT
/
v1
/
prompts
curl --request PUT \
--url https://api.getmaxim.ai/v1/prompts \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '{
"workspaceId": "<string>",
"id": "<string>",
"name": "<string>",
"description": "<string>",
"folderId": "<string>"
}'
{
"data": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"workspaceId": "<string>",
"accountId": "<string>",
"folderId": "<string>",
"meta": "<any>",
"createdById": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>",
"deploymentHistory": {
"id": "<string>",
"workspaceId": "<string>",
"accountId": "<string>",
"promptId": "<string>",
"strategy": {
"type": "<string>",
"config": {}
},
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
}
}
Authorizations
API key for authentication
Body
application/json
Unique identifier for the workspace
Unique identifier for the prompt
Name of the prompt
Description of the prompt
Unique identifier for the folder
Response
200
application/json
Prompt updated successfully
Was this page helpful?
curl --request PUT \
--url https://api.getmaxim.ai/v1/prompts \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '{
"workspaceId": "<string>",
"id": "<string>",
"name": "<string>",
"description": "<string>",
"folderId": "<string>"
}'
{
"data": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"workspaceId": "<string>",
"accountId": "<string>",
"folderId": "<string>",
"meta": "<any>",
"createdById": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>",
"deploymentHistory": {
"id": "<string>",
"workspaceId": "<string>",
"accountId": "<string>",
"promptId": "<string>",
"strategy": {
"type": "<string>",
"config": {}
},
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
}
}