1

我有一个客户在他们的 Box 帐户中有一个锁定的文件。我期望锁定文件的行为是我应该能够下载它,但不能修改它。相反,我似乎无法下载该文件或查看它的版本。以下所有请求都可以在同一用户文件夹中的相邻未锁定文件上正常工作。

这是预期的行为吗?通过 API 处理锁定文件的正确方法是什么?

信息请求:(作品)

curl 'https://api.box.com/2.0/files/<id>' -H 'Authorization: <auth_info>'

回复:

{"type":"file","id":"<id>","sequence_id":"0"...}

版本请求:(400 错误)

curl 'https://api.box.com/2.0/files/<id>/versions' -H 'Authorization: <auth_info>'

回复:

{"type":"error","status":400,"code":"bad_request","help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Bad Request","request_id":"2054523152510ff775496b6"}

下载请求:(403错误)

curl 'https://api.box.com/2.0/files/<id>/content' -H 'Authorization: <auth_info>'

回复:

{"type":"error","status":403,"code":"access_denied_item_locked","help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Access denied - item locked","request_id":"903163092510ff81985559"}
4

0 回答 0