<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title> Bugzilla::Webservice::Group</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" title="style" type="text/css" href="../.././../../../style.css" media="all" > </head> <body id="pod"> <p class="backlinktop"><b><a name="___top" href="../../index.html" accesskey="1" title="All Documents"><<</a></b></p> <h1>Bugzilla::Webservice::Group</h1> <div class='indexgroup'> <ul class='indexList indexList1'> <li class='indexItem indexItem1'><a href='#NAME'>NAME</a> <li class='indexItem indexItem1'><a href='#DESCRIPTION'>DESCRIPTION</a> <li class='indexItem indexItem1'><a href='#METHODS'>METHODS</a> <li class='indexItem indexItem1'><a href='#Group_Creation'>Group Creation</a> <ul class='indexList indexList2'> <li class='indexItem indexItem2'><a href='#create'>create</a> </ul> </ul> </div> <h1><a class='u' href='#___top' title='click to go to top of document' name="NAME" >NAME</a></h1> <p>Bugzilla::Webservice::Group - The API for creating, changing, and getting information about Groups.</p> <h1><a class='u' href='#___top' title='click to go to top of document' name="DESCRIPTION" >DESCRIPTION</a></h1> <p>This part of the Bugzilla API allows you to create Groups and get information about them.</p> <h1><a class='u' href='#___top' title='click to go to top of document' name="METHODS" >METHODS</a></h1> <p>See <a href="../../Bugzilla/WebService.html" class="podlinkpod" >Bugzilla::WebService</a> for a description of how parameters are passed, and what <b>STABLE</b>, <b>UNSTABLE</b>, and <b>EXPERIMENTAL</b> mean.</p> <h1><a class='u' href='#___top' title='click to go to top of document' name="Group_Creation" >Group Creation</a></h1> <h2><a class='u' href='#___top' title='click to go to top of document' name="create" >create</a></h2> <p><b>UNSTABLE</b></p> <dl> <dt><a name="Description" ><b>Description</b></a></dt> <dd> <p>This allows you to create a new group in Bugzilla.</p> <dt><a name="Params" ><b>Params</b></a></dt> <dd> <p>Some params must be set, or an error will be thrown. These params are marked <b>Required</b>.</p> <dl> <dt><a name="name" ><code class="code">name</code></a></dt> <dd> <p><b>Required</b> <code class="code">string</code> A short name for this group. Must be unique. This is not usually displayed in the user interface, except in a few places.</p> <dt><a name="description" ><code class="code">description</code></a></dt> <dd> <p><b>Required</b> <code class="code">string</code> A human-readable name for this group. Should be relatively short. This is what will normally appear in the UI as the name of the group.</p> <dt><a name="user_regexp" ><code class="code">user_regexp</code></a></dt> <dd> <p><code class="code">string</code> A regular expression. Any user whose Bugzilla username matches this regular expression will automatically be granted membership in this group.</p> <dt><a name="is_active" ><code class="code">is_active</code></a></dt> <dd> <p><code class="code">boolean</code> <code class="code">True</code> if new group can be used for bugs, <code class="code">False</code> if this is a group that will only contain users and no bugs will be restricted to it.</p> <dt><a name="icon_url" ><code class="code">icon_url</code></a></dt> <dd> <p><code class="code">string</code> A URL pointing to a small icon used to identify the group. This icon will show up next to users' names in various parts of Bugzilla if they are in this group.</p> </dd> </dl> <dt><a name="Returns" ><b>Returns</b></a></dt> <dd> <p>A hash with one element, <code class="code">id</code>. This is the id of the newly-created group.</p> <dt><a name="Errors" ><b>Errors</b></a></dt> <dd> <dl> <dt><a name="800_(Empty_Group_Name)" >800 (Empty Group Name)</a></dt> <dd> <p>You must specify a value for the <code class="code">name</code> field.</p> <dt><a name="801_(Group_Exists)" >801 (Group Exists)</a></dt> <dd> <p>There is already another group with the same <code class="code">name</code>.</p> <dt><a name="802_(Group_Missing_Description)" >802 (Group Missing Description)</a></dt> <dd> <p>You must specify a value for the <code class="code">description</code> field.</p> <dt><a name="803_(Group_Regexp_Invalid)" >803 (Group Regexp Invalid)</a></dt> <dd> <p>You specified an invalid regular expression in the <code class="code">user_regexp</code> field.</p> </dd> </dl> </dd> </dl> <p class="backlinkbottom"><b><a name="___bottom" href="../../index.html" title="All Documents"><<</a></b></p> <!-- end doc --> </body></html>