Create or update an upstream

Creates an upstream with the specified ID, or updates it if it already exists.