How Can I Copy the Schema Selection From One Connection to Another Connection?
Question
How can I copy the schema selection from one connection to another connection?
Environment
- All connectors
- REST API
Answer
To copy the schema selection from one connection to another, do the following:
- Fetch the schema settings from the connection you would like to copy using the Retrieve a Connection schema config endpoint:
GET https://api.fivetran.com/v1/connections/{connection_id}/schemas
. - Observe and copy the configuration of the connection.
- Create a similar configuration for your other connection using the Update a Connection Schema Config endpoint:
PATCH https://api.fivetran.com/v1/connections/{connection_id}/schemas