Create or update an upstream

Inserts or replaces an Upstream by ID or name.