Caution
box-python-sdk-gen is deprecated and no longer maintained. As of September 17, 2025, it receives no new features, bug fixes, or security patches. Do not use it for new projects.
Use box-python-sdk v10+ instead: pip install "boxsdk>=10".
The equivalent of this page is box-python-sdk/docs/archives.md. To migrate existing code, see the migration guide.
Retrieves archives for an enterprise.
This operation is performed by calling function get_archives_v2025_r0.
See the endpoint docs at API Reference.
client.archives.get_archives_v2025_r0(limit=100)- limit
Optional[int]- The maximum number of items to return per page.
- marker
Optional[str]- Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination.
- box_version
BoxVersionHeaderV2025R0- Version header.
- extra_headers
Optional[Dict[str, Optional[str]]]- Extra headers that will be included in the HTTP request.
This function returns a value of type ArchivesV2025R0.
Returns a list of archives in the enterprise.
Creates an archive.
This operation is performed by calling function create_archive_v2025_r0.
See the endpoint docs at API Reference.
client.archives.create_archive_v2025_r0(archive_name)- name
str- The name of the archive.
- box_version
BoxVersionHeaderV2025R0- Version header.
- extra_headers
Optional[Dict[str, Optional[str]]]- Extra headers that will be included in the HTTP request.
This function returns a value of type ArchiveV2025R0.
Returns a new archive object.
Permanently deletes an archive.
This operation is performed by calling function delete_archive_by_id_v2025_r0.
See the endpoint docs at API Reference.
client.archives.delete_archive_by_id_v2025_r0(archive.id)- archive_id
str- The ID of the archive. Example: "982312"
- box_version
BoxVersionHeaderV2025R0- Version header.
- extra_headers
Optional[Dict[str, Optional[str]]]- Extra headers that will be included in the HTTP request.
This function returns a value of type None.
Returns an empty response when the archive has been deleted.