def edit(user_name, repo_name, service_id, params={})
      _update_user_repo_params(user_name, repo_name)
      _validate_user_repo_params(user, repo) unless user? && repo?
      _validate_presence_of(service_id)

      normalize! params

      put_request("/1.0/repositories/#{user}/#{repo.downcase}/services/#{service_id}", params)
    end
def edit(user_name, repo_name, service_id, params={})
      _update_user_repo_params(user_name, repo_name)
      _validate_user_repo_params(user, repo) unless user? && repo?
      _validate_presence_of(service_id)

      normalize! params

      put_request("/1.0/repositories/#{user}/#{repo.downcase}/services/#{service_id}", params)
    end
Edit a service

 = Inputs
 * <tt>:type</tt> - One of the supported services. The type is a case-insensitive value.

 = Examples
  bitbucket = BitBucket.new
  bitbucket.repos.services.edit 'user-name', 'repo-name', 109172378,
    "type"           => "Basecamp",
    "Password"       => "...",
    "Username"       => "...",
    "Discussion URL" => "..."