Assistants
Modify Assistant
API Reference
- Introduction
- Authentication
- Headers
- Errors
- Supported Providers
- SDKs
- API Details
Chat Completions
Portkey Endpoints
Embeddings
Other APIs
Completions
Moderations
Fine-tuning
Assistants
- Assistants
- Threads
- Messages
- Runs
- Run Steps
Modify Assistant
POST
/
assistants
/
{assistant_id}
curl https://api.portkey.ai/v1/assistants/asst_abc123 \
-H "Content-Type: application/json" \
-H "x-portkey-api-key: $PORTKEY_API_KEY" \
-H "x-portkey-virtual-key: $PORTKEY_PROVIDER_VIRTUAL_KEY" \
-H "OpenAI-Beta: assistants=v2" \
-d '{
"instructions": "You are an HR bot, and you have access to files to answer employee questions about company policies. Always response with info from either of the files.",
"tools": [{"type": "file_search"}],
"model": "gpt-4-turbo"
}'
{
"id": "<string>",
"object": "assistant",
"created_at": 123,
"name": "<string>",
"description": "<string>",
"model": "<string>",
"instructions": "<string>",
"tools": [],
"tool_resources": {
"code_interpreter": {
"file_ids": []
},
"file_search": {
"vector_store_ids": [
"<string>"
]
}
},
"metadata": {},
"temperature": 1,
"top_p": 1,
"response_format": "none"
}
Path Parameters
The ID of the assistant to modify.
Body
application/json
Response
200 - application/json
OK
Represents an assistant
that can call the model and use tools.
Was this page helpful?
curl https://api.portkey.ai/v1/assistants/asst_abc123 \
-H "Content-Type: application/json" \
-H "x-portkey-api-key: $PORTKEY_API_KEY" \
-H "x-portkey-virtual-key: $PORTKEY_PROVIDER_VIRTUAL_KEY" \
-H "OpenAI-Beta: assistants=v2" \
-d '{
"instructions": "You are an HR bot, and you have access to files to answer employee questions about company policies. Always response with info from either of the files.",
"tools": [{"type": "file_search"}],
"model": "gpt-4-turbo"
}'
{
"id": "<string>",
"object": "assistant",
"created_at": 123,
"name": "<string>",
"description": "<string>",
"model": "<string>",
"instructions": "<string>",
"tools": [],
"tool_resources": {
"code_interpreter": {
"file_ids": []
},
"file_search": {
"vector_store_ids": [
"<string>"
]
}
},
"metadata": {},
"temperature": 1,
"top_p": 1,
"response_format": "none"
}