Transfer owned folders
AnsweredI am attempting to use the API to transfer owned folders to another account so that I can delete the original account.
Here is the API call that I'm making:
https://api.box.com/2.0/users/123456/folders/0 -H 'Authorization: Bearer redactedbearertoken' -H 'Content-Type: application/json' -d '{"owned_by": {"id": "987654"}}' -X PUT
123456 is the user's account, 987654 is the account transfer destination.
When I run this code I get a 400 error (bad_request) with the message "Cannot transfer to folder".
The OAUTH account that's running the script has the following administrative privileges:
- Manage users
- View users' content
- Edit users' content
- Log in to users' accounts
Not sure what to do. My script worked just fine (deleting accounts) until we had the Governance module installed, now it seems that I have to transfer ownership of all the files to another user before I can delete it.
Please sign in to leave a comment.
Comments
3 comments