N
Neon5d ago
puzzled-coral

Logical replication outside of Neon UI

I have a multi tenant (DB per tenant) setup. I would love to use Neon, but I'm stuck on a CDC requirement. When a user signs up they get a database, and I'd like for logical replication to be enabled by default. At the moment it looks like this is only available via Neon console/UI - any thoughts?
2 Replies
inland-turquoise
inland-turquoise5d ago
Hey! This endpoint might be what you're looking for : https://api-docs.neon.tech/reference/updateproject There's a field enable_logical_replication
boolean
Sets wal_level=logical for all compute endpoints in this project. All active endpoints will be suspended. Once enabled, logical replication cannot be disabled.
boolean
Sets wal_level=logical for all compute endpoints in this project. All active endpoints will be suspended. Once enabled, logical replication cannot be disabled.
Neon
Update project
Updates the specified project. You can obtain a project_id by listing the projects for your Neon account.
puzzled-coral
puzzled-coralOP5d ago
Magical, thanks!

Did you find this page helpful?