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

NameTypeRequiredDescription
history_idintegerYesID of the history entry to restore.
restore_typestringYesinstructions or all.
  • instructions restores instructions and instructions_language.
  • all restores name, 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_targets and additional_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

StatusWhen
403The assistant belongs to another organization.
404The history entry does not exist.
500restore_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.