Creates an archive.
Version header.
Value is always 2025.0
"Some Archive"
The name of the archive.
Returns a new archive object.
Returns an error if some of the parameters are missing or not valid.
Returned when the access token provided in the Authorization
header
is not recognized or not provided.
Returns an error if the authenticated user does not have the right permissions to create an archive.
Returns an error if an archive with the given name already exists.
An unexpected server error.
An unexpected client error.
curl -i -X POST "https://api.box.com/2.0/archives" \
-H "box-version: 2025.0" \
-H "authorization: Bearer <ACCESS_TOKEN>" \
-H "content-type: application/json" \
-d '{
"name": "Some Archive Name"
}'
await client.archives.createArchiveV2025R0({
name: archiveName,
} satisfies CreateArchiveV2025R0RequestBody);
client.archives.create_archive_v2025_r0(archive_name)
await client.Archives.CreateArchiveV2025R0Async(requestBody: new CreateArchiveV2025R0RequestBody(name: archiveName));
try await client.archives.createArchiveV2025R0(requestBody: CreateArchiveV2025R0RequestBody(name: archiveName))
client.getArchives().createArchiveV2025R0(new CreateArchiveV2025R0RequestBody(archiveName))
{
"id": "12345",
"type": "archive",
"name": "Archive",
"size": 123456789
}