Update api endpoints

Update `updateWithMedia` resource url and add **OAuth 2** api endpoints.