Creates an archive.
To learn more about the archive APIs, see the Archive API Guide.
Version header.
Value is always 2025.0
"This is an archive for important documents."The description of the archive.
"Some Archive"The name of the archive.
"100001"The ID of the storage policy that the archive is assigned to.
Returns a new archive object.
Returned when 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.
Returned when the authenticated user does not have the right permissions to create an archive.
Returned when an archive with the given name already exists.
Returned when an unexpected server error occurs.
Returned when an unexpected client error occurs.
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",
"description": "Some Archive Description"
}'await client.archives.createArchiveV2025R0({
name: archiveName,
description: archiveDescription,
} 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",
"description": "This is an archive for important documents.",
"name": "Archive",
"owned_by": {
"id": "12345",
"type": "user"
},
"size": 123456789
}