@@ -186,7 +186,12 @@ export type paths = {
186186 delete : operations [ "users-delete-user" ] ;
187187 options ?: never ;
188188 head ?: never ;
189- patch ?: never ;
189+ /**
190+ * Update multiple user account fields atomically. All submitted fields are validated first; if any fail, no changes are applied.
191+ * @description Unlike editUser (which updates one field at a time via key/value), this method accepts named fields and applies them all in a single request.
192+ * This endpoint requires password confirmation
193+ */
194+ patch : operations [ "users-edit-user-multi-field" ] ;
190195 trace ?: never ;
191196 } ;
192197 "/ocs/v2.php/cloud/user" : {
@@ -556,6 +561,10 @@ export type components = {
556561 website : string ;
557562 websiteScope ?: components [ "schemas" ] [ "UserDetailsScope" ] ;
558563 } ;
564+ UserDetailsGroupDisplayname : {
565+ id : string ;
566+ displayname : string ;
567+ } ;
559568 UserDetailsQuota : {
560569 free ?: number ;
561570 quota ?: number | string ;
@@ -788,6 +797,7 @@ export interface operations {
788797 id : string ;
789798 } ;
790799 } ;
800+ groups : components [ "schemas" ] [ "UserDetailsGroupDisplayname" ] [ ] ;
791801 } ;
792802 } ;
793803 } ;
@@ -1046,6 +1056,7 @@ export interface operations {
10461056 id : string ;
10471057 } ;
10481058 } ;
1059+ groups : components [ "schemas" ] [ "UserDetailsGroupDisplayname" ] [ ] ;
10491060 } ;
10501061 } ;
10511062 } ;
@@ -1335,6 +1346,114 @@ export interface operations {
13351346 } ;
13361347 } ;
13371348 } ;
1349+ "users-edit-user-multi-field" : {
1350+ parameters : {
1351+ query ?: never ;
1352+ header : {
1353+ /** @description Required to be true for the API request to pass */
1354+ "OCS-APIRequest" : boolean ;
1355+ } ;
1356+ path : {
1357+ /** @description The user to update */
1358+ userId : string ;
1359+ } ;
1360+ cookie ?: never ;
1361+ } ;
1362+ requestBody ?: {
1363+ content : {
1364+ "application/json" : {
1365+ /**
1366+ * @description New display name (null = no change)
1367+ * @default null
1368+ */
1369+ displayName ?: string | null ;
1370+ /**
1371+ * @description New password (null = no change)
1372+ * @default null
1373+ */
1374+ password ?: string | null ;
1375+ /**
1376+ * @description New primary email (null = no change, '' = clear)
1377+ * @default null
1378+ */
1379+ email ?: string | null ;
1380+ /**
1381+ * @description New quota e.g. "5 GB" (null = no change)
1382+ * @default null
1383+ */
1384+ quota ?: string | null ;
1385+ /**
1386+ * @description Language code e.g. "de" (null = no change)
1387+ * @default null
1388+ */
1389+ language ?: string | null ;
1390+ /**
1391+ * @description Manager user ID (null = no change, '' = clear)
1392+ * @default null
1393+ */
1394+ manager ?: string | null ;
1395+ /**
1396+ * @description Group IDs to assign (null = no change, [] = remove all)
1397+ * @default null
1398+ */
1399+ groups ?: string [ ] | null ;
1400+ /**
1401+ * @description Subadmin group IDs (null = no change, [] = remove all)
1402+ * @default null
1403+ */
1404+ subadminGroups ?: string [ ] | null ;
1405+ } ;
1406+ } ;
1407+ } ;
1408+ responses : {
1409+ /** @description User updated successfully */
1410+ 200 : {
1411+ headers : {
1412+ [ name : string ] : unknown ;
1413+ } ;
1414+ content : {
1415+ "application/json" : {
1416+ ocs : {
1417+ meta : components [ "schemas" ] [ "OCSMeta" ] ;
1418+ data : components [ "schemas" ] [ "UserDetails" ] ;
1419+ } ;
1420+ } ;
1421+ } ;
1422+ } ;
1423+ /** @description Current user is not logged in */
1424+ 401 : {
1425+ headers : {
1426+ [ name : string ] : unknown ;
1427+ } ;
1428+ content : {
1429+ "application/json" : {
1430+ ocs : {
1431+ meta : components [ "schemas" ] [ "OCSMeta" ] ;
1432+ data : unknown ;
1433+ } ;
1434+ } ;
1435+ } ;
1436+ } ;
1437+ /** @description One or more submitted fields failed validation */
1438+ 422 : {
1439+ headers : {
1440+ [ name : string ] : unknown ;
1441+ } ;
1442+ content : {
1443+ "application/json" : {
1444+ ocs : {
1445+ meta : components [ "schemas" ] [ "OCSMeta" ] ;
1446+ data : {
1447+ errors : {
1448+ [ key : string ] : string ;
1449+ } ;
1450+ } ;
1451+ } ;
1452+ } ;
1453+ } ;
1454+ } ;
1455+ } ;
1456+ } ;
13381457 "users-get-current-user" : {
13391458 parameters : {
13401459 query ?: never ;
0 commit comments