Thursday, June 21st, 2012

v2 API Enhancements

By , Platform Manager

We’ve received a ton of feedback since we launched the v2 API beta in April. Many of you have taken advantage of our new presence on StackOverflow and helped other developers get up to speed quickly. We’ve been iterating quickly based on usage since then, but we have a few recent updates that we’d like to highlight.

Move, Copy, and Rename

In the v1 API, it was somewhat difficult to intuitively figure out how to do some file and folder operations. Naming conventions weren’t consistent and some methods only applied to files. In the v2 API, we’ve made it extremely easy to move, copy, or rename files or folders. Moving and renaming a file is now as easy as issuing a PUT request to https://api.box.com/2.0/files/{file id} with the body:

{
“name”: “A brand new name!”,
“parent”: { “id”: “a new parent id” }
}

You can see the full documentation here and here. We’ve also been making various backend enhancements to make sure the v2 API performs quickly and efficiently. As I mentioned, we’re still iterating on the API to make it as easy as possible for developers to work with, so please let us know if you have any suggestions or feedback.

By ,

Platform Manager

See all of Sean's articles.

  • Justin

    This is genius.