/projects/{project_id}/branches/{branch_id}/auth/plugins/organizationUpdate organization plugin configurationUpdates the organization plugin configuration for Neon Auth. The organization plugin enables multi-tenant organization support.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe Neon branch ID
Request body
requiredapplication/json
creator_rolestringRole of the organization's creator. `owner`: full control, including deleting the org and transferring ownership. `admin`: manage members and settings only.
enabledbooleanControls whether the organization plugin is active for the organization.
membership_limitinteger · int32Maximum members per organization.
organization_limitinteger · int32Maximum organizations a user can belong to (created or joined). At the limit, the user cannot create or join more.
send_invitation_emailbooleanWhen true, invited users receive an email containing an accept link. Requires that the invited user has a verified email address.
{
"creator_role": "admin",
"enabled": true,
"membership_limit": 0,
"organization_limit": 0,
"send_invitation_email": true
}Responses
creator_rolestringrequiredRole of the organization's creator. `owner`: full control, including deleting the org and transferring ownership. `admin`: manage members and settings only.
enabledbooleanrequiredWhether the organization plugin is enabled.
membership_limitinteger · int32requiredMaximum number of members per organization.
organization_limitinteger · int32requiredMaximum organizations a user can belong to (created or joined). At the limit, the user cannot create or join more.
send_invitation_emailbooleanrequiredWhether to send invitation emails when inviting members to an organization.
{
"creator_role": "owner",
"enabled": true,
"membership_limit": 100,
"organization_limit": 10,
"send_invitation_email": false
}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"
}