Skip to main content
PUT

Authorizations

Authorization
string
header
required

For partners. Send your partner key as a bearer token: Authorization: Bearer <your partner key>. It starts with wgt_prt_ and you make it in your partner's home workspace, under Settings → API keys; any other key is refused with 403. See API keys and Partners.

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.