Update password strength policy
Update the password strength requirements for users in the project.
/project/policies/password-strengthScope policies.writeSDK: @owbase/node only
Update the password strength requirements for users in the project.
Parameters
Section titled “Parameters”min number
Minimum password length. Value must be between 8 and 256. Default is 8.
uppercase boolean
Whether passwords must include at least one uppercase letter.
lowercase boolean
Whether passwords must include at least one lowercase letter.
number boolean
Whether passwords must include at least one number.
symbols boolean
Whether passwords must include at least one symbol.
Access: API key with the policies.write scope (also accepts project.policies.write).
Responses
Section titled “Responses”200Success400Invalid or missing parameter401No session, no permission on the resource or key without the scope429Rate limitEvery error comes as JSON with code, type and message: see Errors.
import { Client, Project } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updatePasswordStrengthPolicy({ min: 8, // optional uppercase: false, // optional lowercase: false, // optional number: false, // optional symbols: false, // optional});curl -X PATCH "https://cloud.owbase.dev/v1/project/policies/password-strength" \ -H "X-Owbase-Project: <PROJECT_ID>" \ -H "X-Owbase-Key: $OWBASE_API_KEY"{ "$id": "password-dictionary", "min": 12, "uppercase": true, "lowercase": true, "number": true, "symbols": true}The descriptions on this page come from the server API specification (BSD-3-Clause license), and the examples come from the SDK generator (MIT license). The full notices are in the NOTICE file of the @owbase/web and @owbase/node packages.