Updates an archive.
To learn more about the archive APIs, see the Archive API Guide.
Version header.
Value is always 2025.0
982312The ID of the archive.
"This is an archive for important documents."The description of the archive.
"Some Archive"The name of the archive.
Returns the updated archive object.
Returned when some of the parameters are 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 update the archive.
Returned when the archive is not found.
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 PUT "https://api.box.com/2.0/archives/12345" \
-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.updateArchiveByIdV2025R0(archive.id, {
requestBody: {
name: newArchiveName,
description: newArchiveDescription,
} satisfies UpdateArchiveByIdV2025R0RequestBody,
} satisfies UpdateArchiveByIdV2025R0OptionalsInput);{
"id": "12345",
"type": "archive",
"description": "This is an archive for important documents.",
"name": "Archive",
"owned_by": {
"id": "12345",
"type": "user"
},
"size": 123456789
}