Retrieves archives for an enterprise.
To learn more about the archive APIs, see the Archive API Guide.
This operation is performed by calling function getArchivesV2025R0.
See the endpoint docs at API Reference.
await client.archives.getArchivesV2025R0({
limit: 100,
} satisfies GetArchivesV2025R0QueryParams);
GetArchivesV2025R0QueryParams
GetArchivesV2025R0HeadersInput
undefined | CancellationToken
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 createArchiveV2025R0.
See the endpoint docs at API Reference.
await client.archives.createArchiveV2025R0({
name: archiveName,
description: archiveDescription,
} satisfies CreateArchiveV2025R0RequestBody);
CreateArchiveV2025R0RequestBody
CreateArchiveV2025R0OptionalsInputThis 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 operation is performed by calling function deleteArchiveByIdV2025R0.
See the endpoint docs at API Reference.
await client.archives.deleteArchiveByIdV2025R0(archive.id);
string
DeleteArchiveByIdV2025R0OptionalsInputThis function returns a value of type undefined.
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 updateArchiveByIdV2025R0.
See the endpoint docs at API Reference.
await client.archives.updateArchiveByIdV2025R0(archive.id, {
requestBody: {
name: newArchiveName,
description: newArchiveDescription,
} satisfies UpdateArchiveByIdV2025R0RequestBody,
} satisfies UpdateArchiveByIdV2025R0OptionalsInput);
string
UpdateArchiveByIdV2025R0OptionalsInputThis function returns a value of type ArchiveV2025R0.
Returns the updated archive object.