There does not seem to be a method which allows you to call the upsert API call.
Create a new contact or update an existing, based on a value of a filter or a set of filters. At least a single filter - query parameter - is required. If no parameters are present, the request will return an error.
There does not seem to be a method which allows you to call the upsert API call.