Skip to main content
PUT
TypeScript SDK

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

partnerId
string<uuid>
required

The partner whose database to set

Body

application/json
connectionString
string<password>
required
write-only

The connection string of a Neon database and role you made for this, as Neon shows it under Connect: postgresql://<role>:<password>@ep-<name>.<region>.aws.neon.tech/<database>. Either the direct or the pooled host works. Everything after the database name (?sslmode=...) is ignored. It is stored encrypted and is never returned or logged.

Example:

"postgresql://widgetic_data:YOUR_PASSWORD@ep-cool-name-123456.eu-central-1.aws.neon.tech/neondb"

Response

The database passed the check and was saved

success
boolean
required

Always true on a success.

Example:

true

data
object
required

The Neon database your compositions keep what visitors leave in them (votes, ratings, answers, form submissions). The connection string and its password are never part of this: they are given once, when the database is set.

Example:
meta
object

Extra information about the answer: where a page sits in a list, the cursor of the next page, or warnings about a call that succeeded with a caveat.