Update a Prompt
curl --request PUT \
--url https://proxy.qualifire.ai/api/studio/prompts/{id} \
--header 'Content-Type: application/json' \
--header 'X-Qualifire-API-Key: <api-key>' \
--data '{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"active_revision": 123,
"beta": true,
"created_at": "<string>",
"active": true,
"revision": 123,
"messages": [
{
"content": "<string>",
"function_call": {
"arguments": "<string>",
"name": "<string>"
},
"multiContent": [
{
"image_url": {
"detail": "high",
"url": "<string>"
},
"text": "<string>",
"type": "text"
}
],
"name": "<string>",
"role": "<string>",
"tool_call_id": "<string>",
"tool_calls": [
{
"function": {
"arguments": "<string>",
"name": "<string>"
},
"id": "<string>",
"index": 123,
"type": "function"
}
]
}
],
"parameters": {
"model": "<string>",
"temperature": 123,
"top_p": 123,
"frequency_penalty": 123,
"presence_penalty": 123,
"max_tokens": 123,
"stop": [
"<string>"
],
"stream": true
}
}'
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"active_revision": 123,
"beta": true,
"created_at": "<string>",
"active": true,
"revision": 123,
"messages": [
{
"content": "<string>",
"function_call": {
"arguments": "<string>",
"name": "<string>"
},
"multiContent": [
{
"image_url": {
"detail": "high",
"url": "<string>"
},
"text": "<string>",
"type": "text"
}
],
"name": "<string>",
"role": "<string>",
"tool_call_id": "<string>",
"tool_calls": [
{
"function": {
"arguments": "<string>",
"name": "<string>"
},
"id": "<string>",
"index": 123,
"type": "function"
}
]
}
],
"parameters": {
"model": "<string>",
"temperature": 123,
"top_p": 123,
"frequency_penalty": 123,
"presence_penalty": 123,
"max_tokens": 123,
"stop": [
"<string>"
],
"stream": true
}
}
The ID of the Prompt to update
Prompt to update
The body is of type object
.
OK
The response is of type object
.
curl --request PUT \
--url https://proxy.qualifire.ai/api/studio/prompts/{id} \
--header 'Content-Type: application/json' \
--header 'X-Qualifire-API-Key: <api-key>' \
--data '{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"active_revision": 123,
"beta": true,
"created_at": "<string>",
"active": true,
"revision": 123,
"messages": [
{
"content": "<string>",
"function_call": {
"arguments": "<string>",
"name": "<string>"
},
"multiContent": [
{
"image_url": {
"detail": "high",
"url": "<string>"
},
"text": "<string>",
"type": "text"
}
],
"name": "<string>",
"role": "<string>",
"tool_call_id": "<string>",
"tool_calls": [
{
"function": {
"arguments": "<string>",
"name": "<string>"
},
"id": "<string>",
"index": 123,
"type": "function"
}
]
}
],
"parameters": {
"model": "<string>",
"temperature": 123,
"top_p": 123,
"frequency_penalty": 123,
"presence_penalty": 123,
"max_tokens": 123,
"stop": [
"<string>"
],
"stream": true
}
}'
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"active_revision": 123,
"beta": true,
"created_at": "<string>",
"active": true,
"revision": 123,
"messages": [
{
"content": "<string>",
"function_call": {
"arguments": "<string>",
"name": "<string>"
},
"multiContent": [
{
"image_url": {
"detail": "high",
"url": "<string>"
},
"text": "<string>",
"type": "text"
}
],
"name": "<string>",
"role": "<string>",
"tool_call_id": "<string>",
"tool_calls": [
{
"function": {
"arguments": "<string>",
"name": "<string>"
},
"id": "<string>",
"index": 123,
"type": "function"
}
]
}
],
"parameters": {
"model": "<string>",
"temperature": 123,
"top_p": 123,
"frequency_penalty": 123,
"presence_penalty": 123,
"max_tokens": 123,
"stop": [
"<string>"
],
"stream": true
}
}
Update a Prompt
curl --request PUT \
--url https://proxy.qualifire.ai/api/studio/prompts/{id} \
--header 'Content-Type: application/json' \
--header 'X-Qualifire-API-Key: <api-key>' \
--data '{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"active_revision": 123,
"beta": true,
"created_at": "<string>",
"active": true,
"revision": 123,
"messages": [
{
"content": "<string>",
"function_call": {
"arguments": "<string>",
"name": "<string>"
},
"multiContent": [
{
"image_url": {
"detail": "high",
"url": "<string>"
},
"text": "<string>",
"type": "text"
}
],
"name": "<string>",
"role": "<string>",
"tool_call_id": "<string>",
"tool_calls": [
{
"function": {
"arguments": "<string>",
"name": "<string>"
},
"id": "<string>",
"index": 123,
"type": "function"
}
]
}
],
"parameters": {
"model": "<string>",
"temperature": 123,
"top_p": 123,
"frequency_penalty": 123,
"presence_penalty": 123,
"max_tokens": 123,
"stop": [
"<string>"
],
"stream": true
}
}'
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"active_revision": 123,
"beta": true,
"created_at": "<string>",
"active": true,
"revision": 123,
"messages": [
{
"content": "<string>",
"function_call": {
"arguments": "<string>",
"name": "<string>"
},
"multiContent": [
{
"image_url": {
"detail": "high",
"url": "<string>"
},
"text": "<string>",
"type": "text"
}
],
"name": "<string>",
"role": "<string>",
"tool_call_id": "<string>",
"tool_calls": [
{
"function": {
"arguments": "<string>",
"name": "<string>"
},
"id": "<string>",
"index": 123,
"type": "function"
}
]
}
],
"parameters": {
"model": "<string>",
"temperature": 123,
"top_p": 123,
"frequency_penalty": 123,
"presence_penalty": 123,
"max_tokens": 123,
"stop": [
"<string>"
],
"stream": true
}
}
The ID of the Prompt to update
Prompt to update
The body is of type object
.
OK
The response is of type object
.
curl --request PUT \
--url https://proxy.qualifire.ai/api/studio/prompts/{id} \
--header 'Content-Type: application/json' \
--header 'X-Qualifire-API-Key: <api-key>' \
--data '{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"active_revision": 123,
"beta": true,
"created_at": "<string>",
"active": true,
"revision": 123,
"messages": [
{
"content": "<string>",
"function_call": {
"arguments": "<string>",
"name": "<string>"
},
"multiContent": [
{
"image_url": {
"detail": "high",
"url": "<string>"
},
"text": "<string>",
"type": "text"
}
],
"name": "<string>",
"role": "<string>",
"tool_call_id": "<string>",
"tool_calls": [
{
"function": {
"arguments": "<string>",
"name": "<string>"
},
"id": "<string>",
"index": 123,
"type": "function"
}
]
}
],
"parameters": {
"model": "<string>",
"temperature": 123,
"top_p": 123,
"frequency_penalty": 123,
"presence_penalty": 123,
"max_tokens": 123,
"stop": [
"<string>"
],
"stream": true
}
}'
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"active_revision": 123,
"beta": true,
"created_at": "<string>",
"active": true,
"revision": 123,
"messages": [
{
"content": "<string>",
"function_call": {
"arguments": "<string>",
"name": "<string>"
},
"multiContent": [
{
"image_url": {
"detail": "high",
"url": "<string>"
},
"text": "<string>",
"type": "text"
}
],
"name": "<string>",
"role": "<string>",
"tool_call_id": "<string>",
"tool_calls": [
{
"function": {
"arguments": "<string>",
"name": "<string>"
},
"id": "<string>",
"index": 123,
"type": "function"
}
]
}
],
"parameters": {
"model": "<string>",
"temperature": 123,
"top_p": 123,
"frequency_penalty": 123,
"presence_penalty": 123,
"max_tokens": 123,
"stop": [
"<string>"
],
"stream": true
}
}