From 4ccf1dc9545b997c833d9c2336cc9e6d49a39e66 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Fri, 31 Oct 2025 07:43:55 -0700 Subject: [PATCH 1/2] chore: Update `.codegen.json` with commit hash of `codegen` and `openapi` spec [skip ci] --- .codegen.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codegen.json b/.codegen.json index ce6cd801..d2dcc4da 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "8cdcb1b", "specHash": "1715587", "version": "4.0.0" } +{ "engineHash": "7c94f4f", "specHash": "1715587", "version": "4.0.0" } From 3f9f670958a6c276df5251c20030580f3c14e4b2 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Fri, 31 Oct 2025 09:14:26 -0700 Subject: [PATCH 2/2] fix: update descriptions of the user deletion endpoint (box/box-openapi#562) --- .codegen.json | 2 +- box_sdk_gen/managers/users.py | 10 +++++----- docs/box_sdk_gen/users.md | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.codegen.json b/.codegen.json index d2dcc4da..77d644c0 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "7c94f4f", "specHash": "1715587", "version": "4.0.0" } +{ "engineHash": "7c94f4f", "specHash": "a646ae6", "version": "4.0.0" } diff --git a/box_sdk_gen/managers/users.py b/box_sdk_gen/managers/users.py index 52df23cb..0bc8a85d 100644 --- a/box_sdk_gen/managers/users.py +++ b/box_sdk_gen/managers/users.py @@ -653,12 +653,12 @@ def delete_user_by_id( extra_headers: Optional[Dict[str, Optional[str]]] = None ) -> None: """ - Deletes a user. By default this will fail if the user + Deletes a user. By default, this operation fails if the user - still owns any content. Move their owned content first + still owns any content, was recently active, or recently joined the enterprise from a free account. - before proceeding, or use the `force` field to delete + To proceed, move their owned content first, or use the `force` parameter to delete the user and their files. @@ -669,8 +669,8 @@ def delete_user_by_id( :param notify: Whether the user will receive email notification of the deletion., defaults to None :type notify: Optional[bool], optional - :param force: Whether the user should be deleted even if this user - still own files., defaults to None + :param force: Specifies whether to delete the user even if they still own files, + were recently active, or recently joined the enterprise from a free account., defaults to None :type force: Optional[bool], optional :param extra_headers: Extra headers that will be included in the HTTP request., defaults to None :type extra_headers: Optional[Dict[str, Optional[str]]], optional diff --git a/docs/box_sdk_gen/users.md b/docs/box_sdk_gen/users.md index 63a8191d..45eaa9eb 100644 --- a/docs/box_sdk_gen/users.md +++ b/docs/box_sdk_gen/users.md @@ -278,9 +278,9 @@ Returns the updated user object. ## Delete user -Deletes a user. By default this will fail if the user -still owns any content. Move their owned content first -before proceeding, or use the `force` field to delete +Deletes a user. By default, this operation fails if the user +still owns any content, was recently active, or recently joined the enterprise from a free account. +To proceed, move their owned content first, or use the `force` parameter to delete the user and their files. This operation is performed by calling function `delete_user_by_id`. @@ -301,7 +301,7 @@ client.users.delete_user_by_id(user.id) - notify `Optional[bool]` - Whether the user will receive email notification of the deletion. - force `Optional[bool]` - - Whether the user should be deleted even if this user still own files. + - Specifies whether to delete the user even if they still own files, were recently active, or recently joined the enterprise from a free account. - extra_headers `Optional[Dict[str, Optional[str]]]` - Extra headers that will be included in the HTTP request.