Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mattermost/team.rb')
-rw-r--r--lib/mattermost/team.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/mattermost/team.rb b/lib/mattermost/team.rb
index 09dfd082b3a..9e80f7f8571 100644
--- a/lib/mattermost/team.rb
+++ b/lib/mattermost/team.rb
@@ -1,7 +1,12 @@
module Mattermost
class Team < Client
+ # Returns **all** teams for an admin
def all
session_get('/api/v3/teams/all')
end
+
+ def create(params)
+ session_post('/api/v3/teams/create', body: params.to_json)
+ end
end
end