First of all, thanks for all the help. I got all api calls working that are read-only, but the put options don't work, they give the following error:

{"errors":[{"code":"accessDenied","title":"current user is not allowed to access this resource"}]}

Any idea what is wrong?