Update an endpoint

Updates an existing endpoint.