{"action":"created","issue":{"url":"https://api.github.com/repos/box/box-python-sdk/issues/341","repository_url":"https://api.github.com/repos/box/box-python-sdk","labels_url":"https://api.github.com/repos/box/box-python-sdk/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/box/box-python-sdk/issues/341/comments","events_url":"https://api.github.com/repos/box/box-python-sdk/issues/341/events","html_url":"https://github.com/box/box-python-sdk/issues/341","id":361461696,"node_id":"MDU6SXNzdWUzNjE0NjE2OTY=","number":341,"title":"Cannot upload file to folder other than root. ","user":{"login":"nataliagalant","id":15127102,"node_id":"MDQ6VXNlcjE1MTI3MTAy","avatar_url":"https://avatars0.githubusercontent.com/u/15127102?v=4","gravatar_id":"","url":"https://api.github.com/users/nataliagalant","html_url":"https://github.com/nataliagalant","followers_url":"https://api.github.com/users/nataliagalant/followers","following_url":"https://api.github.com/users/nataliagalant/following{/other_user}","gists_url":"https://api.github.com/users/nataliagalant/gists{/gist_id}","starred_url":"https://api.github.com/users/nataliagalant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nataliagalant/subscriptions","organizations_url":"https://api.github.com/users/nataliagalant/orgs","repos_url":"https://api.github.com/users/nataliagalant/repos","events_url":"https://api.github.com/users/nataliagalant/events{/privacy}","received_events_url":"https://api.github.com/users/nataliagalant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-18T20:03:54Z","updated_at":"2018-09-18T20:35:26Z","closed_at":null,"author_association":"NONE","body":"```\r\nclient.folder(\"0\").upload(\"C:/Users/ngalant/Desktop/vid_play2.PNG\", \"vid_play2.PNG\")\r\n<Box File - 319716586629 (vid_play2.PNG)>\r\n```\r\nThrows no errors (although I am not an admin so I can't confirm the file is actually in the root directory). When I attempt to upload the same file into a folder shared with me: \r\n```\r\nclient.folder(\"63624631\").upload(\"C:/Users/ngalant/Desktop/vid_play2.PNG\", \"vid_play2.PNG\")\r\n\r\nboxsdk.exception.BoxAPIException:\r\nMessage: Not Found\r\nStatus: 404\r\nCode: not_found\r\nRequest id: 9a6w4fvebuldjsu\r\nHeaders: {'Date': 'Tue, 18 Sep 2018 19:58:49 GMT', 'Content-Type': 'application/json', 'Content-Length': '315', 'Connection': 'keep-alive', 'Cache-Control': 'no-cache, no-store', 'Strict-Transport-Security': 'max-age=31536000', 'Vary': 'Accept-Encoding', 'Age': '0'}\r\nURL: https://upload.box.com/api/2.0/files/content\r\nMethod: POST\r\nContext info: {'errors': [{'reason': 'invalid_parameter', 'name': 'parent', 'message': \"Invalid value 'd_63624631'. 'parent' with value 'd_63624631' not found\"}]}\r\n```\r\n\r\nWhy the \"d_\" in front of the folder ID? Are there some permissions I haven't appropriately configured? \r\n"},"comment":{"url":"https://api.github.com/repos/box/box-python-sdk/issues/comments/422544100","html_url":"https://github.com/box/box-python-sdk/issues/341#issuecomment-422544100","issue_url":"https://api.github.com/repos/box/box-python-sdk/issues/341","id":422544100,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjU0NDEwMA==","user":{"login":"carycheng","id":6364733,"node_id":"MDQ6VXNlcjYzNjQ3MzM=","avatar_url":"https://avatars3.githubusercontent.com/u/6364733?v=4","gravatar_id":"","url":"https://api.github.com/users/carycheng","html_url":"https://github.com/carycheng","followers_url":"https://api.github.com/users/carycheng/followers","following_url":"https://api.github.com/users/carycheng/following{/other_user}","gists_url":"https://api.github.com/users/carycheng/gists{/gist_id}","starred_url":"https://api.github.com/users/carycheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carycheng/subscriptions","organizations_url":"https://api.github.com/users/carycheng/orgs","repos_url":"https://api.github.com/users/carycheng/repos","events_url":"https://api.github.com/users/carycheng/events{/privacy}","received_events_url":"https://api.github.com/users/carycheng/received_events","type":"User","site_admin":false},"created_at":"2018-09-18T20:35:26Z","updated_at":"2018-09-18T20:35:26Z","author_association":"NONE","body":"Hey @nataliagalant, \r\n\r\nYou have two options here:\r\n\r\n1.) If you only intend on working in your own Box account we would recommend you use the ['as-user' header ](https://github.com/box/box-python-sdk/blob/1.5/README.rst#as-user) with a user that has been invited into that folder. \r\n\r\n2.) The second way would be to invite your service account(the token you are using with the developer account) into that specific folder. You can retrieve the service account email from the Content Manager tab in admin console by searching your app name.\r\n<img width=\"1239\" alt=\"screen shot 2018-09-18 at 1 33 31 pm\" src=\"https://user-images.githubusercontent.com/6364733/45714861-af204580-bb47-11e8-897a-2dfb936d1f4f.png\">\r\n"}}
{"actor":{"display_login":"carycheng"}}