From cd78d6fc9dda519256ff404254b8ed6590b6de3f Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Thu, 6 Nov 2025 08:44:36 -0800 Subject: [PATCH 1/7] 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 76d169ba9..16fb525af 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "7c94f4f", "specHash": "8b51a89", "version": "4.0.0" } +{ "engineHash": "0ca4cc8", "specHash": "8b51a89", "version": "4.0.0" } From 26afe7a0c0beb50b379b7829aa2b8b98bfeaff44 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Fri, 7 Nov 2025 05:00:37 -0800 Subject: [PATCH 2/7] test: Update archive tests (box/box-codegen#865) --- .codegen.json | 2 +- docs/box_sdk_gen/archives.md | 8 ++++++-- test/box_sdk_gen/test/archives.py | 13 ++++++++++++- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.codegen.json b/.codegen.json index 16fb525af..05c7678a6 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "0ca4cc8", "specHash": "8b51a89", "version": "4.0.0" } +{ "engineHash": "5898d26", "specHash": "8b51a89", "version": "4.0.0" } diff --git a/docs/box_sdk_gen/archives.md b/docs/box_sdk_gen/archives.md index be0bd7892..fe1c26bd6 100644 --- a/docs/box_sdk_gen/archives.md +++ b/docs/box_sdk_gen/archives.md @@ -53,7 +53,7 @@ See the endpoint docs at ```python -client.archives.create_archive_v2025_r0(archive_name) +client.archives.create_archive_v2025_r0(archive_name, description=archive_description) ``` ### Arguments @@ -118,7 +118,11 @@ This operation is performed by calling function `update_archive_by_id_v2025_r0`. See the endpoint docs at [API Reference](https://developer.box.com/reference/v2025.0/put-archives-id/). -_Currently we don't have an example for calling `update_archive_by_id_v2025_r0` in integration tests_ + + +```python +client.archives.update_archive_by_id_v2025_r0(archive.id, name=new_archive_name, description=new_archive_description) +``` ### Arguments diff --git a/test/box_sdk_gen/test/archives.py b/test/box_sdk_gen/test/archives.py index 4424ef987..df6b2c710 100644 --- a/test/box_sdk_gen/test/archives.py +++ b/test/box_sdk_gen/test/archives.py @@ -21,9 +21,20 @@ def testArchivesCreateListDelete(): archive_name: str = get_uuid() - archive: ArchiveV2025R0 = client.archives.create_archive_v2025_r0(archive_name) + archive_description: str = 'Test Archive Description' + archive: ArchiveV2025R0 = client.archives.create_archive_v2025_r0( + archive_name, description=archive_description + ) assert to_string(archive.type) == 'archive' assert archive.name == archive_name + assert archive.description == archive_description + new_archive_name: str = get_uuid() + new_archive_description: str = 'Updated Archive Description' + updated_archive: ArchiveV2025R0 = client.archives.update_archive_by_id_v2025_r0( + archive.id, name=new_archive_name, description=new_archive_description + ) + assert updated_archive.name == new_archive_name + assert updated_archive.description == new_archive_description archives: ArchivesV2025R0 = client.archives.get_archives_v2025_r0(limit=100) assert len(archives.entries) > 0 client.archives.delete_archive_by_id_v2025_r0(archive.id) From 98cafcf9493999e02f6d5a645487c6b90b65cde9 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Fri, 7 Nov 2025 05:03:07 -0800 Subject: [PATCH 3/7] 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 05c7678a6..454fe4b15 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "5898d26", "specHash": "8b51a89", "version": "4.0.0" } +{ "engineHash": "eaa2648", "specHash": "8b51a89", "version": "4.0.0" } From 492c87f5b091f291195366707c9a98263e3b41cc Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Fri, 7 Nov 2025 06:12:57 -0800 Subject: [PATCH 4/7] 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 454fe4b15..1b512b9d5 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "eaa2648", "specHash": "8b51a89", "version": "4.0.0" } +{ "engineHash": "0a2740f", "specHash": "8b51a89", "version": "4.0.0" } From a5e39b53134897536b654430eef731f11105375e Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Wed, 12 Nov 2025 03:43:18 -0800 Subject: [PATCH 5/7] feat: List folder content and AI QA Hub integration tests (box/box-codegen#878) --- .codegen.json | 2 +- test/boxsdk/unit/test_exception.py | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.codegen.json b/.codegen.json index 1b512b9d5..82f16c049 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "0a2740f", "specHash": "8b51a89", "version": "4.0.0" } +{ "engineHash": "522a2bf", "specHash": "8b51a89", "version": "4.0.0" } diff --git a/test/boxsdk/unit/test_exception.py b/test/boxsdk/unit/test_exception.py index dbc109d45..8086f3a1c 100644 --- a/test/boxsdk/unit/test_exception.py +++ b/test/boxsdk/unit/test_exception.py @@ -32,9 +32,7 @@ def test_box_api_exception(): assert box_exception.url == url assert box_exception.method == method assert box_exception.context_info == context_info - assert ( - str(box_exception) - == f'''Message: {message} + assert str(box_exception) == f'''Message: {message} Status: {status} Code: {code} Request ID: {request_id} @@ -42,7 +40,6 @@ def test_box_api_exception(): URL: {url} Method: {method} Context Info: {context_info}''' - ) @pytest.mark.parametrize('has_network_response', [True, False]) @@ -62,13 +59,10 @@ def test_box_oauth_exception(has_network_response): method=method, network_response=network_response, ) - assert ( - str(box_exception) - == f''' + assert str(box_exception) == f''' Message: {message} Status: {status} URL: {url} Method: {method} Headers: {headers if has_network_response else 'N/A'}''' - ) assert box_exception.network_response is network_response From d34026b95daff50719ec88d49d6e20aaeda18509 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Wed, 12 Nov 2025 03:45:15 -0800 Subject: [PATCH 6/7] 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 82f16c049..6bd7d9b73 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "522a2bf", "specHash": "8b51a89", "version": "4.0.0" } +{ "engineHash": "68017aa", "specHash": "8b51a89", "version": "4.0.0" } From be4c3658f3dfd6460058909cae7040f8f6c46209 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Wed, 12 Nov 2025 03:47:04 -0800 Subject: [PATCH 7/7] 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 6bd7d9b73..9df17f71a 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "68017aa", "specHash": "8b51a89", "version": "4.0.0" } +{ "engineHash": "87a3288", "specHash": "8b51a89", "version": "4.0.0" }