POST
/
postgres_databases
/
{id_or_name}
/
refresh_tables
curl --request POST \
  --url https://api.sequinstream.com/api/postgres_databases/{id_or_name}/refresh_tables \
  --header 'Authorization: Bearer <token>'
{
    "success": true
}

Sequin is able to detect schema changes right away. Use this endpoint only if you want to eliminate race conditions.

For example, in test you might want to add a table to your source database and then make an immediate call to setup a sink with that table. It could be a good idea to call this endpoint after creating the table to ensure the table has propagated to Sequin.

Path parameters

id_or_name
string
required

The ID or name of the Postgres database connection.

Example request

curl
curl -X POST 'https://api.sequinstream.com/api/postgres_databases/production_rds/refresh_tables' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Response

success
boolean

Indicates whether the table refresh operation was successful (true) or failed (false).

{
    "success": true
}