Prompts
Update a prompt
PUT
/
prompts
/
{id}
Authorization
Path
Body
curl --request PUT \
--url https://api.honeyhive.ai/prompts/{id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"few_shot_examples": [
{}
],
"hyperparameters": {},
"id": "<string>",
"input_variables": [
"<string>"
],
"is_deployed": true,
"model": "<string>",
"version": "<string>"
}'
{
"created_at": "2023-11-07T05:31:56Z",
"few_shot_examples": [
{}
],
"hyperparameters": {},
"input_variables": [
"<string>"
],
"is_deployed": true,
"model": "<string>",
"name": "<string>",
"task": "<string>",
"text": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"version": "<string>"
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
id
string
requiredBody
application/json
few_shot_examples
object[]
The few shot examples for the prompt
hyperparameters
object
The hyperparameters for the prompt
id
string
The ID of the prompt
input_variables
string[]
The input variables to feed into the prompt
is_deployed
boolean
Flag indicating if the prompt is deployed
model
string
The model to be used for the prompt
version
string
The version of the prompt
Response
200 - application/json
created_at
string
The timestamp of when the prompt was created
few_shot_examples
object[] | null
The few shot examples for the prompt
hyperparameters
object
The hyperparameters for the prompt
input_variables
string[]
The input variables to feed into the prompt
is_deployed
boolean
Flag indicating if the prompt is deployed
model
string
The model to be used for the prompt
name
string
The unique name of the prompt
task
string
The task for which the prompt is being created
text
string
The text of the prompt
updated_at
string
The timestamp of when the prompt was last updated
version
string
The version of the prompt
curl --request PUT \
--url https://api.honeyhive.ai/prompts/{id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"few_shot_examples": [
{}
],
"hyperparameters": {},
"id": "<string>",
"input_variables": [
"<string>"
],
"is_deployed": true,
"model": "<string>",
"version": "<string>"
}'
{
"created_at": "2023-11-07T05:31:56Z",
"few_shot_examples": [
{}
],
"hyperparameters": {},
"input_variables": [
"<string>"
],
"is_deployed": true,
"model": "<string>",
"name": "<string>",
"task": "<string>",
"text": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"version": "<string>"
}