Managing Copilots

Backup and Restore of copilots

The api has a product endpoint for Export as JSON which will contain all of the configuration of a copilot. This json can be stored in a repository, allowing for diff between versions, etc. If the copilot today is changed, the diff between saved snapshots would provide all the changes. Each copilot can be saved to its own json file periodically and committed to a repository.

To restore to a previous version of a copilot, use the Import from JSON endpoint.

These 2 apis import and export all of the configuration of a copilot, as listed in their documentation. The information that is not included is group visibility and copilot ownership, because they are external and may change.

This procedure will work for a specific copilot, it is not intended to import a copilot into another account, etc. All of the ids will create conflicts if a copilot is imported into another account or product ID, so the API prohibits that today.