Skip to content
This repository was archived by the owner on Nov 6, 2026. It is now read-only.

Latest commit

 

History

History
104 lines (69 loc) · 2.98 KB

archives.md

File metadata and controls

104 lines (69 loc) · 2.98 KB

ArchivesManager

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.

List archives

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)

Arguments

  • 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.

Returns

This function returns a value of type ArchivesV2025R0.

Returns a list of archives in the enterprise.

Create archive

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)

Arguments

  • 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.

Returns

This function returns a value of type ArchiveV2025R0.

Returns a new archive object.

Delete archive

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)

Arguments

  • 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.

Returns

This function returns a value of type None.

Returns an empty response when the archive has been deleted.