PATCH
/projects/{project_id}/branches/{branch_id}/auth/allow_localhostUpdate localhost allow settingUpdates the localhost allow setting for the specified branch's Neon Auth integration. When enabled, authentication flows work from localhost without adding it to the redirect URI whitelist.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe Neon branch ID
Request body
requiredapplication/json
objectUpdateNeonAuthAllowLocalhostRequest
allow_localhostbooleanrequiredWhether to allow localhost connections
{
"allow_localhost": true
}Responses
objectNeonAuthAllowLocalhostResponse
allow_localhostbooleanrequiredWhether to allow localhost connections
{
"allow_localhost": true
}objectGeneralError
codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}