Method: Github::Client::Orgs::Teams#edit

Defined in:
lib/github_api2/client/orgs/teams.rb

#edit(*args) ⇒ Object

Edit a team

In order to edit a team, the authenticated user must be an owner of the org that the team is associated with.

Examples:

github = Github.new oauth_token: '...'
github.orgs.teams.edit 'team-id',
  name: "new team name",
  permission: "push"

Parameters:

See Also:



140
141
142
143
144
145
146
# File 'lib/github_api2/client/orgs/teams.rb', line 140

def edit(*args)
  arguments(args, required: [:id]) do
    assert_required %w(name)
  end

  patch_request("/teams/#{arguments.id}", arguments.params)
end