Hello,
I got a error when using Content API and I would be very appreciate if anyone can provide any clue.
1. I can retrive file_id (assume removed for privacy96) using shared_link:
curl https://api.box.com/2.0/shared_items \
-H "Authorization: Bearer My_App_User_Access_Token" \
-H "BoxApi: My_File_Shared_Link"
2. Then I tried to use following command to get file information:
curl https://api.box.com/2.0/files/My_File_Id \
-H "Authorization: Bearer My_App_User_Access_Token"
3. I got following error response (removed for privacy96 is the file_id):
{"type":"error","status":404,"code":"not_found","context_info":{"errors":[{"reason":"invalid_parameter","name":"item","message":"Invalid value 'f_93315574096'. 'item' with value 'f_93315574096' not found"}]},"help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Not Found","request_id":"removed for privacy57c6dd38cce04"}
Could anyone tell me what I did wrong? I generated App User JWT, then use it to get Access Token and used it in statements above. I can upload file and create folder, but then I cannot download them. I always get 404 error.