Restore a configuration version
Restore an assistant from a history entry, either only its instructions or its main configuration. The assistant is updated in place; the restore itself is not recorded as a new history entry.
Endpoint
POST/ai-assistants-restore-from-changes-history
Body
| Name | Type | Required | Description |
|---|---|---|---|
history_id | integer | Yes | ID of the history entry to restore. |
restore_type | string | Yes | instructions or all. |
instructionsrestoresinstructionsandinstructions_language.allrestoresname,description,instructions,instructions_language,connection,specific_openai_secret_key,ai_model_id,advanced_options,access_permissions_contact,access_permissions_deals,access_permissions_customer_support,access_permissions_automations,human_handoff_config,external_handoff_targetsandadditional_json_keys. Other fields (tools, schedule, follow-ups, voice settings, ...) are left as they are.
Request
Response
json
With restore_type: "all" the message is Configuration restored successfully.
Errors
| Status | When |
|---|---|
403 | The assistant belongs to another organization. |
404 | The history entry does not exist. |
500 | restore_type is not instructions or all (message Invalid restore type). |
Report an issue with this documentation
Please log in to report issues with our documentation.