Update an assistant

Update the details of an existing assistant.

Request

PATCH https://superinterface.ai/api/cloud/assistants/{assistantId}

Authentication

Include your private API key in the request headers:
Authorization: Bearer YOUR_PRIVATE_API_KEY

Path Parameters

ParameterTypeDescription
assistantIdstringThe ID of an existing assistant to update

Request Body

ParameterTypeRequiredDescription
storageProviderTypeStorageProviderTypeNoNew StorageProviderType (e.g., OPENAI)
storageProviderAssistantIdstringNoNew storage provider assistant ID
modelProviderIdstringNoNew model provider ID
modelstringNoNew model to use (e.g., "gpt-4.1")
namestringNoA new name for the assistant
descriptionstringNoA new description for the assistant
instructionsstringNoNew instructions for the assistant
codeInterpreterEnabledbooleanNoEnable or disable code interpreter
fileSearchEnabledbooleanNoEnable or disable file search

Example request

curl -X PATCH "https://superinterface.ai/api/cloud/assistants/00cfe680-fee5-49b9-b386-6a7097eb8497" \ -H "Authorization: Bearer YOUR_PRIVATE_API_KEY" \ -H "Content-Type: application/json" -d '{ "name": "Updated AI builder" }'

Response

ParameterTypeDescription
assistantAssistantUpdated Assistant

Example response

{ "assistant": { "id": "00cfe680-fee5-49b9-b386-6a7097eb8497", "storageProviderType": "OPENAI", "storageProviderAssistantId": "asst_xwQudIsRPVWBOkanyBRWWBn2", "modelProviderId": "01afd9c6-519f-4336-a39e-e739143f0a5c", "model": "gpt-4.1", "name": "Updated AI builder", "description": "Builds applications", "instructions": "Help user build apps.", "codeInterpreterEnabled": true, "fileSearchEnabled": true, "createdAt": "2024-01-15T10:30:00Z", "updatedAt": "2024-01-16T12:00:00Z" } }

Errors

The endpoint may return the following errors:

401 Unauthorized

This error occurs if the API key is invalid or missing.
{ "error": "Unauthorized", "message": "Invalid or missing API key" }