v1
latestOpenAPI 3.0.3agpl2026-07-172217.0 KBapi
Generate a random password that validates against the enabled password policy rules
get/ocs/v2.php/apps/password_policy/api/v1/generate
Query parameters
contextstring
The context for which the password is generated (account or sharing)
Headers
OCS-APIRequestboolean required
Required to be true for the API request to pass
Response
Password generated