Update Prompt
Update an existing prompt
Example Request:
curl -X PUT "http://localhost:4000/prompts/my_prompt_id" \
-H "Authorization: Bearer <your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"prompt_id": "my_prompt",
"litellm_params": {
"prompt_id": "my_prompt",
"prompt_integration": "dotprompt",
"prompt_directory": "/path/to/prompts"
},
"prompt_info": {
"prompt_type": "config"
}
}
}'
Path parameters
Request body
Response
Successful Response
Changes
Changed in 16 of the 42 revisions of this API.34
- ○
api tag
promptsaddedapi-tag-added
- ○
api tag
Prompt Managementremovedapi-tag-removed
- ○
- ○
api tag
Prompt Managementaddedapi-tag-added
- ○
api tag
promptsremovedapi-tag-removed
- ○
- ○
api tag
promptsaddedapi-tag-added
- ○
api tag
Prompt Managementremovedapi-tag-removed
- ○
- ○
api tag
Prompt Managementaddedapi-tag-added
- ○
api tag
promptsremovedapi-tag-removed
- ○
- ○
api tag
promptsaddedapi-tag-added
- ○
api tag
Prompt Managementremovedapi-tag-removed
- ○
- ○
api tag
Prompt Managementaddedapi-tag-added
- ○
api tag
promptsremovedapi-tag-removed
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
api tag
promptsaddedapi-tag-added
- ○
api tag
Prompt Managementremovedapi-tag-removed
- ○
- ○
api tag
Prompt Managementaddedapi-tag-added
- ○
api tag
promptsremovedapi-tag-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
api tag
promptsaddedapi-tag-added
- ○
api tag
Prompt Managementremovedapi-tag-removed
This revision also has 21 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
api tag
Prompt Managementaddedapi-tag-added
- ○
api tag
promptsremovedapi-tag-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○