   @param platform is the source of the request to upsert the resource
 
 ###
-upsertResource = (data, handlerFunc, platform) ->
+_upsertResource = (data, handlerFunc, platform) ->
 
   @.setContentType _jsonContentType
   resource = parseRequestData data, @.requestHeaders["content-type"]

          Apollos.debug "Dropping request because of unknown platform"
          return

        handler = Apollos[singular].update
        if options.subDocName
          handler = handler[options.subDocName]

        return upsertResource.call @, data, handler, platform.name

      catch error
        @.setStatusCode _unexpectedError

  @param context should be the HTTP.methods handler function

###
_authenticatePlatform = (collection) ->

  sentToken = @.requestHeaders[Apollos.api.tokenName]

