How to Perform Bulk Updates on Connections
Last Updated:
Overview
This article provides methods to perform bulk updates to connection settings. It outlines how to automate changes for multiple connections to avoid manual configuration within the dashboard.
Applies To
- Connections
- Management API
- Deploy CLI
Cause
The Management API does not provide a single endpoint for performing a bulk patch across multiple connections.
Solution
To update settings for multiple connections, use one of the following methods.
Method 1: Management API Scripting
A custom script can be designed to call the update endpoint for each specific connection identification (ID).
- Design a script in the preferred programming language that includes a list of connections to update.
- Leverage the Update a connection endpoint to modify settings. Use sample scripts to design automation and avoid manual dashboard entry.
- Ensure the script provides a gap between requests to avoid reaching rate limits. Alternatively, read headers to predict rate limits.
Method 2: Deploy CLI Tool
The Deploy CLI tool allows management of tenant configurations via export and import functions: Auth0 Deploy CLI.
-
Export the current tenant configuration.
-
Modify the values for the connections within the YAML configuration file.
NOTE: Setting up and testing the Deploy CLI on a development tenant is recommended to verify functionality before updating production environments.