fixed issue creating content via the an API call
Added basic auth to API methods