Skip to main content

Update an assistant

POST 
/ai/assistants/:assistant_id

Update an AI Assistant's attributes.

Request

Path Parameters

    assistant_id Assistant Idrequired

Body

required

    name Name (string)
    model Model (string)
    description Description (string)
    instructions Instructions (string)

    tools

    object[]

    The function tool type follows the same schema as the OpenAI Assistants API. The retrieval tool type is unique to Telnyx. You may pass a list of embedded storage buckets for retrieval-augmented generation.

  • Array [

  • oneOf

  • ]

Responses

200: Successful Response

422: Validation Error

Request samples


curl -L 'https://api.telnyx.com/v2/ai/assistants/:assistant_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"name": "string",
"model": "string",
"description": "string",
"instructions": "string",
"tools": [
{
"type": "function",
"function": {
"name": "string",
"description": "string",
"parameters": {}
}
},
{
"type": "retrieval",
"retrieval": {
"bucket_ids": [
"string"
],
"max_num_results": 0
}
}
]
}'

Response samples


{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}