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

      normalize! params
      filter! VALID_MILESTONE_INPUTS, params
      assert_required_keys(%w[ name ], params)

      put_request("/1.0/repositories/#{user}/#{repo.downcase}/issues/milestones/#{milestone_id}", params)
    end
def update(user_name, repo_name, milestone_id, params={})
      _update_user_repo_params(user_name, repo_name)
      _validate_user_repo_params(user, repo) unless user? && repo?
      _validate_presence_of milestone_id

      normalize! params
      filter! VALID_MILESTONE_INPUTS, params
      assert_required_keys(%w[ name ], params)

      put_request("/1.0/repositories/#{user}/#{repo.downcase}/issues/milestones/#{milestone_id}", params)
    end
Update a milestone

 = Inputs
  <tt>:name</tt> - Required string

 = Examples
  bitbucket = BitBucket.new
  bitbucket.issues.milestones.update 'user-name', 'repo-name', 'milestone-id',
    :name => 'hello-world'