Retrieves archives for an enterprise.
To learn more about the archive APIs, see the Archive API Guide.
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.
To learn more about the archive APIs, see the Archive API Guide.
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, description=archive_description)- name
str- The name of the archive.
- description
Optional[str]- The description of the archive.
- storage_policy_id
Optional[str]- The ID of the storage policy that the archive is assigned to.
- 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.
To learn more about the archive APIs, see the Archive API Guide.
This endpoint is currently unavailable. Please contact support for assistance.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.
Updates an archive.
To learn more about the archive APIs, see the Archive API Guide.
This operation is performed by calling function update_archive_by_id_v2025_r0.
See the endpoint docs at API Reference.
client.archives.update_archive_by_id_v2025_r0(
archive.id, name=new_archive_name, description=new_archive_description
)- archive_id
str- The ID of the archive. Example: "982312"
- name
Optional[str]- The name of the archive.
- description
Optional[str]- The description 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 the updated archive object.