In the Box API document, there is this section about "Move Folder into Another User’s Folder". I tried to follow the instructions there but it did not seem to work for me. This is what I did:
- I logged in as a co-admin of my Box account,
I used the following command to move the root folder of another user to me:
curl https://api.box.com/2.0/users/OTHER_USER_ID/folders/0 -k -H "Authorization: Bearer ACCESS_TOKEN" -d '{"owned_by":{"id":"ADMIN_USER_ID"}}' -X PUT
This command returns
400 error "bad_request" Invalid value ''{owned_by:{id:ADMIN_USER_ID}}''. Entity body should be a correctly nested resource attribue name\/value pair
Anyone has an idea about what I have done wrong ?