def update(*args)
      raise_authentication_error unless authenticated?
      arguments(args, required: [:id])

      patch_request("/authorizations/#{arguments.id}", arguments.params)
    end
def update(*args)
      raise_authentication_error unless authenticated?
      arguments(args, required: [:id])

      patch_request("/authorizations/#{arguments.id}", arguments.params)
    end
Update an existing authorization

 @see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization

 @param [Hash] inputs
 @option inputs [Array] :scopes
   Optional array - A list of scopes that this authorization is in.
 @option inputs [Array] :add_scopes
   Optional array - A list of scopes to add to this authorization.
 @option inputs [Array] :remove_scopes
   Optional array - A list of scopes to remove from this authorization.
 @option inputs [String] :note
   Optional string - A note to remind you what the OAuth token is for.
 @optoin inputs [String] :note_url
   Optional string - A URL to remind you what the OAuth token is for.
 @option params [String] :fingerprint
   A unique string to distinguish an authorization from others
   created for the same client ID and user.

 @example
   github = Github.new basic_auth: 'login:password'
   github.oauth.update "authorization-id", add_scopes: ["repo"]

 @api public