restore item end point
I trying to use the restore item endpoint to restore a version of the file that was trashed. I am passing the "files" endpoint along with the version id that I want to restore (see below).
https://api.box.com/2.0/files/***number removed for privacy***281
I have confirmed that the version id is correct, but I keep getting the following result...
{"type":"error","status":404,"code":"not_found","context_info":{"errors":[{"reason":"invalid_parameter","name":"items","message":"Invalid value 'f_300131061281'. 'items' with value 'f_300131061281' not found"}]},"help_url":"http://developers.box.com/docs/#errors","message":"Not Found","request_id":"sb892efs0u2f71wt"}
I have tried making the request via code and also using the Box developer API portal with the same results. I have also tried using the
RestoreTrashedAsync
method of the .Net API and get the same results. Any ideas on what I am doing wrong? The error invalid parameter seems to refer to the user name but that is not part of the call.
Thanks. Chris Eddy.
Please sign in to leave a comment.
Comments
1 comment