How to update Assistant Info (name, instruction, model) through Api

I have tested most of the functions for listing, selecting, … so on. What if I want to edit assistant Info, Has anyone tested that?

If you want to update the instructions for assistants you need to use the modify assistant API which needs assistant_id

1 Like

You can also use Python API in this manner:

client = OpenAI()
client.api_key = 'OPENAI_API_KEY'
assistant_id = 'YOUR_ASSISTANT_ID'
# assistant = client.beta.assistants.retrieve(assistant_id=assistant_id)
# print(assistant.name)
client.beta.assistants.update(assistant_id=assistant_id, name='new robo advisor')