NAME
WebService::Mattermost::V4::API::Resource::Roles - Wrapped API methods for the roles API endpoints.
VERSION
version 0.30
DESCRIPTION
USAGE
use WebService::Mattermost;
my $mm = WebService::Mattermost->new({
authenticate => 1,
username => 'me@somewhere.com',
password => 'hunter2',
base_url => 'https://my.mattermost.server.com/api/v4/',
});
my $resource = $mm->api->roles;
METHODS
get_by_id()
-
my $response = $resource->get_by_id('ID-HERE');
get_by_name()
-
my $response = $resource->get_by_name('NAME-HERE');
update_by_id()
-
my $response = $resource->update_by_id('ID-HERE', { permissions => [ qw( PERMISSION-HERE ANOTHER-PERMISSION-HERE ) ], });
get_by_names()
-
my $response = $resource->get_by_names([ qw(NAME-1-HERE NAME-2-HERE) ]);
AUTHOR
Mike Jones <mike@netsplit.org.uk>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2023 by Mike Jones.
This is free software, licensed under:
The MIT (X11) License