REST 1.1 API changes.

Now works with the new 1.1 API