PATCH
/projects/{project_id}/branches/{branch_id}/auth/plugins/magic-linkUpdate magic link plugin configurationUpdates the magic link plugin configuration for Neon Auth. The magic link plugin enables passwordless authentication via email magic links.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe Neon branch ID
Request body
requiredapplication/json
objectNeonAuthMagicLinkConfigUpdate
disable_sign_upbooleanWhen true, sign-up via magic link is disabled.
enabledbooleanWhether to enable the magic link plugin.
expires_ininteger · int32Minutes until the magic link expires.
{
"disable_sign_up": true,
"enabled": true,
"expires_in": 0
}Responses
objectNeonAuthMagicLinkConfig
disable_sign_upbooleanrequiredWhether to disable sign-up via magic link.
enabledbooleanrequiredWhether the magic link plugin is enabled.
expires_ininteger · int32requiredMinutes until the magic link expires.
{
"disable_sign_up": false,
"enabled": false,
"expires_in": 5
}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"
}