Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 4e237fd705495e1e21ef20696443e053 > files > 964

bugzilla-5.0.4-3.mga7.noarch.rpm


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>6.1.10. Flag Types &#8212; Bugzilla 5.0.4 documentation</title>
    <link rel="stylesheet" href="../../../_static/bugzilla.css" type="text/css" />
    <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../../../',
        VERSION:     '5.0.4',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true,
        SOURCELINK_SUFFIX: '.txt'
      };
    </script>
    <script type="text/javascript" src="../../../_static/jquery.js"></script>
    <script type="text/javascript" src="../../../_static/underscore.js"></script>
    <script type="text/javascript" src="../../../_static/doctools.js"></script>
    <link rel="shortcut icon" href="../../../_static/favicon.ico"/>
    <link rel="search" title="Search" href="../../../search.html" />
    <link rel="next" title="6.1.11. Groups" href="group.html" />
    <link rel="prev" title="6.1.9. Bug Fields" href="field.html" /> 
  </head>
  <body>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="group.html" title="6.1.11. Groups"
             accesskey="N">next</a></li>
        <li class="right" >
          <a href="field.html" title="6.1.9. Bug Fields"
             accesskey="P">previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="../../../index.html">Bugzilla 5.0.4 documentation</a> &#187;</li>
          <li class="nav-item nav-item-1"><a href="../../index.html" >6. WebService API Reference</a> &#187;</li>
          <li class="nav-item nav-item-2"><a href="index.html" accesskey="U">6.1. Core API v1</a> &#187;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="flag-types">
<h1>6.1.10. Flag Types<a class="headerlink" href="#flag-types" title="Permalink to this headline">¶</a></h1>
<p>This part of the Bugzilla API allows you to get and create bug and attachment
flags.</p>
<div class="section" id="get-flag-type">
<span id="rest-flagtype-get"></span><h2>6.1.10.1. Get Flag Type<a class="headerlink" href="#get-flag-type" title="Permalink to this headline">¶</a></h2>
<p>Get information about valid flag types that can be set for bugs and attachments.</p>
<p><strong>Request</strong></p>
<p>To get information about all flag types for a product:</p>
<div class="highlight-text"><div class="highlight"><pre><span></span>GET /rest/flag_type/(product)
</pre></div>
</div>
<p>To get information about flag_types for a product and component:</p>
<div class="highlight-text"><div class="highlight"><pre><span></span>GET /rest/flag_type/(product)/(component)
</pre></div>
</div>
<div class="highlight-js"><div class="highlight"><pre><span></span><span class="p">{</span>
  <span class="s2">&quot;bug&quot;</span><span class="o">:</span> <span class="p">[</span>
    <span class="p">{</span>
      <span class="s2">&quot;is_multiplicable&quot;</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span>
      <span class="s2">&quot;is_requesteeble&quot;</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span>
      <span class="s2">&quot;values&quot;</span><span class="o">:</span> <span class="p">[</span>
        <span class="s2">&quot;X&quot;</span><span class="p">,</span>
        <span class="s2">&quot;?&quot;</span><span class="p">,</span>
        <span class="s2">&quot;+&quot;</span><span class="p">,</span>
        <span class="s2">&quot;-&quot;</span>
      <span class="p">],</span>
      <span class="s2">&quot;id&quot;</span><span class="o">:</span> <span class="mi">11</span><span class="p">,</span>
      <span class="s2">&quot;type&quot;</span><span class="o">:</span> <span class="s2">&quot;bug&quot;</span><span class="p">,</span>
      <span class="s2">&quot;is_active&quot;</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
      <span class="s2">&quot;description&quot;</span><span class="o">:</span> <span class="s2">&quot;Blocks the next release&quot;</span><span class="p">,</span>
      <span class="s2">&quot;name&quot;</span><span class="o">:</span> <span class="s2">&quot;blocker&quot;</span>
    <span class="p">},</span>
    <span class="p">{</span>
      <span class="s2">&quot;is_requesteeble&quot;</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span>
      <span class="s2">&quot;is_multiplicable&quot;</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span>
      <span class="s2">&quot;is_active&quot;</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
      <span class="s2">&quot;description&quot;</span><span class="o">:</span> <span class="s2">&quot;Regression found?&quot;</span><span class="p">,</span>
      <span class="s2">&quot;name&quot;</span><span class="o">:</span> <span class="s2">&quot;regression&quot;</span><span class="p">,</span>
      <span class="s2">&quot;id&quot;</span><span class="o">:</span> <span class="mi">10</span><span class="p">,</span>
      <span class="s2">&quot;type&quot;</span><span class="o">:</span> <span class="s2">&quot;bug&quot;</span><span class="p">,</span>
      <span class="s2">&quot;values&quot;</span><span class="o">:</span> <span class="p">[</span>
        <span class="s2">&quot;X&quot;</span><span class="p">,</span>
        <span class="s2">&quot;?&quot;</span><span class="p">,</span>
        <span class="s2">&quot;+&quot;</span><span class="p">,</span>
        <span class="s2">&quot;-&quot;</span>
      <span class="p">]</span>
    <span class="p">},</span>
  <span class="p">],</span>
  <span class="s2">&quot;attachment&quot;</span><span class="o">:</span> <span class="p">[</span>
    <span class="p">{</span>
      <span class="s2">&quot;is_requesteeble&quot;</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
      <span class="s2">&quot;is_multiplicable&quot;</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
      <span class="s2">&quot;name&quot;</span><span class="o">:</span> <span class="s2">&quot;review&quot;</span><span class="p">,</span>
      <span class="s2">&quot;is_active&quot;</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
      <span class="s2">&quot;description&quot;</span><span class="o">:</span> <span class="s2">&quot;Review the patch for correctness and applicability to the problem.&quot;</span><span class="p">,</span>
      <span class="s2">&quot;type&quot;</span><span class="o">:</span> <span class="s2">&quot;attachment&quot;</span><span class="p">,</span>
      <span class="s2">&quot;id&quot;</span><span class="o">:</span> <span class="mi">1</span><span class="p">,</span>
      <span class="s2">&quot;values&quot;</span><span class="o">:</span> <span class="p">[</span>
        <span class="s2">&quot;X&quot;</span><span class="p">,</span>
        <span class="s2">&quot;?&quot;</span><span class="p">,</span>
        <span class="s2">&quot;+&quot;</span><span class="p">,</span>
        <span class="s2">&quot;-&quot;</span>
      <span class="p">]</span>
    <span class="p">},</span>
    <span class="p">{</span>
      <span class="s2">&quot;name&quot;</span><span class="o">:</span> <span class="s2">&quot;approval&quot;</span><span class="p">,</span>
      <span class="s2">&quot;description&quot;</span><span class="o">:</span> <span class="s2">&quot;Approve the patch for check-in to the tree.&quot;</span><span class="p">,</span>
      <span class="s2">&quot;is_active&quot;</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
      <span class="s2">&quot;values&quot;</span><span class="o">:</span> <span class="p">[</span>
        <span class="s2">&quot;X&quot;</span><span class="p">,</span>
        <span class="s2">&quot;?&quot;</span><span class="p">,</span>
        <span class="s2">&quot;+&quot;</span><span class="p">,</span>
        <span class="s2">&quot;-&quot;</span>
      <span class="p">],</span>
      <span class="s2">&quot;type&quot;</span><span class="o">:</span> <span class="s2">&quot;attachment&quot;</span><span class="p">,</span>
      <span class="s2">&quot;id&quot;</span><span class="o">:</span> <span class="mi">3</span><span class="p">,</span>
      <span class="s2">&quot;is_multiplicable&quot;</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span>
      <span class="s2">&quot;is_requesteeble&quot;</span><span class="o">:</span> <span class="kc">false</span>
    <span class="p">}</span>
  <span class="p">]</span>
<span class="p">}</span>
</pre></div>
</div>
<p>You must pass a product name and an optional component name. If the product or
component names contains a <code class="docutils literal"><span class="pre">/</span></code> character, up will need to url encode it.</p>
<table border="1" class="docutils">
<colgroup>
<col width="14%" />
<col width="8%" />
<col width="78%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">name</th>
<th class="head">type</th>
<th class="head">description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><strong>product</strong></td>
<td>string</td>
<td>The name of a valid product.</td>
</tr>
<tr class="row-odd"><td>component</td>
<td>string</td>
<td>An optional valid component name associated with the
product.</td>
</tr>
</tbody>
</table>
<p><strong>Response</strong></p>
<p>An object containing two items, <code class="docutils literal"><span class="pre">bug</span></code> and <code class="docutils literal"><span class="pre">attachment</span></code>. Each value is an
array of objects, containing the following items:</p>
<table border="1" class="docutils">
<colgroup>
<col width="21%" />
<col width="9%" />
<col width="70%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">name</th>
<th class="head">type</th>
<th class="head">description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>id</td>
<td>int</td>
<td>An integer ID uniquely identifying this flag type.</td>
</tr>
<tr class="row-odd"><td>name</td>
<td>string</td>
<td>The name for the flag type.</td>
</tr>
<tr class="row-even"><td>type</td>
<td>string</td>
<td>The target of the flag type which is either <code class="docutils literal"><span class="pre">bug</span></code>
or <code class="docutils literal"><span class="pre">attachment</span></code>.</td>
</tr>
<tr class="row-odd"><td>description</td>
<td>string</td>
<td>The description of the flag type.</td>
</tr>
<tr class="row-even"><td>values</td>
<td>array</td>
<td>String values that the user can set on the flag type.</td>
</tr>
<tr class="row-odd"><td>is_requesteeble</td>
<td>boolean</td>
<td>Users can ask specific other users to set flags of
this type.</td>
</tr>
<tr class="row-even"><td>is_multiplicable</td>
<td>boolean</td>
<td>Multiple flags of this type can be set for the same
bug or attachment.</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="create-flag-type">
<h2>6.1.10.2. Create Flag Type<a class="headerlink" href="#create-flag-type" title="Permalink to this headline">¶</a></h2>
<p>Create a new flag type. You must be authenticated and be in the <em>editcomponents</em>
group to perform this action.</p>
<p><strong>Request</strong></p>
<div class="highlight-text"><div class="highlight"><pre><span></span>POST /rest/flag_type
</pre></div>
</div>
<div class="highlight-js"><div class="highlight"><pre><span></span><span class="p">{</span>
  <span class="s2">&quot;name&quot;</span> <span class="o">:</span> <span class="s2">&quot;feedback&quot;</span><span class="p">,</span>
  <span class="s2">&quot;description&quot;</span> <span class="o">:</span> <span class="s2">&quot;This attachment needs feedback&quot;</span><span class="p">,</span>
  <span class="s2">&quot;inclusions&quot;</span> <span class="o">:</span> <span class="p">[</span> <span class="s2">&quot;WorldControl &quot;</span><span class="p">],</span>
  <span class="s2">&quot;target_type&quot;</span> <span class="o">:</span> <span class="s2">&quot;attachment&quot;</span>
<span class="p">}</span>
</pre></div>
</div>
<p>Some params must be set, or an error will be thrown. The required params are
marked in <strong>bold</strong>.</p>
<table border="1" class="docutils">
<colgroup>
<col width="35%" />
<col width="9%" />
<col width="56%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">name</th>
<th class="head">type</th>
<th class="head">description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><strong>name</strong></td>
<td>string</td>
<td>The name of the new flag type.</td>
</tr>
<tr class="row-odd"><td><strong>description</strong></td>
<td>string</td>
<td>A description for the flag type.</td>
</tr>
<tr class="row-even"><td>target_type</td>
<td>string</td>
<td>The new flag is either for a <code class="docutils literal"><span class="pre">bug</span></code> or an
<code class="docutils literal"><span class="pre">attachment</span></code>.</td>
</tr>
<tr class="row-odd"><td>inclusions</td>
<td>array</td>
<td>An array of strings or an object containing
product names, and optionally component
names. If you provide a string, the flag
type will be shown on all bugs in that
product. If you provide an object, the key
represents the product name, and the value
is the components of the product to be
included.</td>
</tr>
<tr class="row-even"><td>exclusions</td>
<td>array</td>
<td>An array of strings or an object containing
product names. This uses the same format as
<code class="docutils literal"><span class="pre">inclusions</span></code>. This will exclude the flag
from all products and components specified.</td>
</tr>
<tr class="row-odd"><td>sortkey</td>
<td>int</td>
<td>A number between 1 and 32767 by which this
type will be sorted when displayed to users
in a list; ignore if you don't care what
order the types appear in or if you want
them to appear in alphabetical order.</td>
</tr>
<tr class="row-even"><td>is_active</td>
<td>boolean</td>
<td>Flag of this type appear in the UI and can
be set. Default is <code class="docutils literal"><span class="pre">true</span></code>.</td>
</tr>
<tr class="row-odd"><td>is_requestable</td>
<td>boolean</td>
<td>Users can ask for flags of this type to be
set. Default is <code class="docutils literal"><span class="pre">true</span></code>.</td>
</tr>
<tr class="row-even"><td>cc_list</td>
<td>array</td>
<td>If the flag type is requestable, who should
receive e-mail notification of requests.
This is an array of e-mail addresses whichdo not need to be Bugzilla logins.</td>
</tr>
<tr class="row-odd"><td>is_specifically_requestable</td>
<td>boolean</td>
<td>Users can ask specific other users to
set flags of this type as opposed to just
asking the wind. Default is <code class="docutils literal"><span class="pre">true</span></code>.</td>
</tr>
<tr class="row-even"><td>is_multiplicable</td>
<td>boolean</td>
<td>Multiple flags of this type can be set on
the same bug. Default is <code class="docutils literal"><span class="pre">true</span></code>.</td>
</tr>
<tr class="row-odd"><td>grant_group</td>
<td>string</td>
<td>The group allowed to grant/deny flags of
this type (to allow all users to grant/deny
these flags, select no group). Default is
no group.</td>
</tr>
<tr class="row-even"><td>request_group</td>
<td>string</td>
<td>If flags of this type are requestable, the
group allowed to request them (to allow all
users to request these flags, select no
group). Note that the request group alone
has no effect if the grant group is not
defined! Default is no group.</td>
</tr>
</tbody>
</table>
<p>An example for <code class="docutils literal"><span class="pre">inclusions</span></code> and/or <code class="docutils literal"><span class="pre">exclusions</span></code>:</p>
<div class="highlight-js"><div class="highlight"><pre><span></span><span class="p">[</span>
  <span class="s2">&quot;FooProduct&quot;</span>
<span class="p">]</span>

<span class="p">{</span>
  <span class="s2">&quot;BarProduct&quot;</span> <span class="o">:</span> <span class="p">[</span> <span class="s2">&quot;C1&quot;</span><span class="p">,</span> <span class="s2">&quot;C3&quot;</span> <span class="p">],</span>
  <span class="s2">&quot;BazProduct&quot;</span> <span class="o">:</span> <span class="p">[</span> <span class="s2">&quot;C7&quot;</span> <span class="p">]</span>
<span class="p">}</span>
</pre></div>
</div>
<p>This flag will be added to <strong>all</strong> components of <code class="docutils literal"><span class="pre">FooProduct</span></code>, components C1
and C3 of <code class="docutils literal"><span class="pre">BarProduct</span></code>, and C7 of <code class="docutils literal"><span class="pre">BazProduct</span></code>.</p>
<p><strong>Response</strong></p>
<div class="highlight-js"><div class="highlight"><pre><span></span><span class="p">{</span>
  <span class="s2">&quot;id&quot;</span><span class="o">:</span> <span class="mi">13</span>
<span class="p">}</span>
</pre></div>
</div>
<table border="1" class="docutils">
<colgroup>
<col width="12%" />
<col width="7%" />
<col width="81%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">name</th>
<th class="head">type</th>
<th class="head">description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>flag_id</td>
<td>int</td>
<td>ID of the new FlagType object is returned.</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="update-flag-type">
<span id="rest-flagtype-update"></span><h2>6.1.10.3. Update Flag Type<a class="headerlink" href="#update-flag-type" title="Permalink to this headline">¶</a></h2>
<p>This allows you to update a flag type in Bugzilla. You must be authenticated
and be in the <em>editcomponents</em> group to perform this action.</p>
<p><strong>Request</strong></p>
<div class="highlight-text"><div class="highlight"><pre><span></span>PUT /rest/flag_type/(id_or_name)
</pre></div>
</div>
<div class="highlight-js"><div class="highlight"><pre><span></span><span class="p">{</span>
  <span class="s2">&quot;ids&quot;</span> <span class="o">:</span> <span class="p">[</span><span class="mi">13</span><span class="p">],</span>
  <span class="s2">&quot;name&quot;</span> <span class="o">:</span> <span class="s2">&quot;feedback-new&quot;</span><span class="p">,</span>
  <span class="s2">&quot;is_requestable&quot;</span> <span class="o">:</span> <span class="kc">false</span>
<span class="p">}</span>
</pre></div>
</div>
<p>You can edit a single flag type by passing the ID or name of the flag type
in the URL. To edit more than one flag type, you can specify addition IDs or
flag type names using the <code class="docutils literal"><span class="pre">ids</span></code> or <code class="docutils literal"><span class="pre">names</span></code> parameters respectively.</p>
<p>One of the below must be specified.</p>
<table border="1" class="docutils">
<colgroup>
<col width="18%" />
<col width="6%" />
<col width="75%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">name</th>
<th class="head">type</th>
<th class="head">description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><strong>id_or_name</strong></td>
<td>mixed</td>
<td>Integer flag type ID or name.</td>
</tr>
<tr class="row-odd"><td><strong>ids</strong></td>
<td>array</td>
<td>Numeric IDs of the flag types that you wish to update.</td>
</tr>
<tr class="row-even"><td><strong>names</strong></td>
<td>array</td>
<td>Names of the flag types that you wish to update. If many
flag types have the same name, this will change <strong>all</strong>
of them.</td>
</tr>
</tbody>
</table>
<p>The following parameters specify the new values you want to set for the flag
types you are updating.</p>
<table border="1" class="docutils">
<colgroup>
<col width="35%" />
<col width="9%" />
<col width="56%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">name</th>
<th class="head">type</th>
<th class="head">description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>name</td>
<td>string</td>
<td>A short name identifying this type.</td>
</tr>
<tr class="row-odd"><td>description</td>
<td>string</td>
<td>A comprehensive description of this type.</td>
</tr>
<tr class="row-even"><td>inclusions</td>
<td>array</td>
<td>An array of strings or an object containing
product names, and optionally component
names. If you provide a string, the flag
type will be shown on all bugs in that
product. If you provide an object, the key
represents the product name, and the value
is the components of the product to be
included.</td>
</tr>
<tr class="row-odd"><td>exclusions</td>
<td>array</td>
<td>An array of strings or an object containing
product names. This uses the same format as
<code class="docutils literal"><span class="pre">inclusions</span></code>. This will exclude the flag
from all products and components specified.</td>
</tr>
<tr class="row-even"><td>sortkey</td>
<td>int</td>
<td>A number between 1 and 32767 by which this
type will be sorted when displayed to users
in a list; ignore if you don't care what
order the types appear in or if you want
them to appear in alphabetical order.</td>
</tr>
<tr class="row-odd"><td>is_active</td>
<td>boolean</td>
<td>Flag of this type appear in the UI and can
be set.</td>
</tr>
<tr class="row-even"><td>is_requestable</td>
<td>boolean</td>
<td>Users can ask for flags of this type to be
set.</td>
</tr>
<tr class="row-odd"><td>cc_list</td>
<td>array</td>
<td>If the flag type is requestable, who should
receive e-mail notification of requests.
This is an array of e-mail addresses
which do not need to be Bugzilla logins.</td>
</tr>
<tr class="row-even"><td>is_specifically_requestable</td>
<td>boolean</td>
<td>Users can ask specific other users to set
flags of this type as opposed to just
asking the wind.</td>
</tr>
<tr class="row-odd"><td>is_multiplicable</td>
<td>boolean</td>
<td>Multiple flags of this type can be set on
the same bug.</td>
</tr>
<tr class="row-even"><td>grant_group</td>
<td>string</td>
<td>The group allowed to grant/deny flags of
this type (to allow all users to grant/deny
these flags, select no group).</td>
</tr>
<tr class="row-odd"><td>request_group</td>
<td>string</td>
<td>If flags of this type are requestable, the
group allowed to request them (to allow all
users to request these flags, select no
group). Note that the request group alone
has no effect if the grant group is not
defined!</td>
</tr>
</tbody>
</table>
<p>An example for <code class="docutils literal"><span class="pre">inclusions</span></code> and/or <code class="docutils literal"><span class="pre">exclusions</span></code>:</p>
<div class="highlight-js"><div class="highlight"><pre><span></span><span class="p">[</span>
  <span class="s2">&quot;FooProduct&quot;</span><span class="p">,</span>
<span class="p">]</span>

<span class="p">{</span>
  <span class="s2">&quot;BarProduct&quot;</span> <span class="o">:</span> <span class="p">[</span> <span class="s2">&quot;C1&quot;</span><span class="p">,</span> <span class="s2">&quot;C3&quot;</span> <span class="p">],</span>
  <span class="s2">&quot;BazProduct&quot;</span> <span class="o">:</span> <span class="p">[</span> <span class="s2">&quot;C7&quot;</span> <span class="p">]</span>
<span class="p">}</span>
</pre></div>
</div>
<p>This flag will be added to <strong>all</strong> components of <code class="docutils literal"><span class="pre">FooProduct</span></code>,
components C1 and C3 of <code class="docutils literal"><span class="pre">BarProduct</span></code>, and C7 of <code class="docutils literal"><span class="pre">BazProduct</span></code>.</p>
<p><strong>Response</strong></p>
<div class="highlight-js"><div class="highlight"><pre><span></span><span class="p">{</span>
  <span class="s2">&quot;flagtypes&quot;</span><span class="o">:</span> <span class="p">[</span>
    <span class="p">{</span>
      <span class="s2">&quot;name&quot;</span><span class="o">:</span> <span class="s2">&quot;feedback-new&quot;</span><span class="p">,</span>
      <span class="s2">&quot;changes&quot;</span><span class="o">:</span> <span class="p">{</span>
        <span class="s2">&quot;is_requestable&quot;</span><span class="o">:</span> <span class="p">{</span>
          <span class="s2">&quot;added&quot;</span><span class="o">:</span> <span class="s2">&quot;0&quot;</span><span class="p">,</span>
          <span class="s2">&quot;removed&quot;</span><span class="o">:</span> <span class="s2">&quot;1&quot;</span>
        <span class="p">},</span>
        <span class="s2">&quot;name&quot;</span><span class="o">:</span> <span class="p">{</span>
          <span class="s2">&quot;removed&quot;</span><span class="o">:</span> <span class="s2">&quot;feedback&quot;</span><span class="p">,</span>
          <span class="s2">&quot;added&quot;</span><span class="o">:</span> <span class="s2">&quot;feedback-new&quot;</span>
        <span class="p">}</span>
      <span class="p">},</span>
      <span class="s2">&quot;id&quot;</span><span class="o">:</span> <span class="mi">13</span>
    <span class="p">}</span>
  <span class="p">]</span>
<span class="p">}</span>
</pre></div>
</div>
<p><code class="docutils literal"><span class="pre">flagtypes</span></code> (array) Flag change objects containing the following items:</p>
<table border="1" class="docutils">
<colgroup>
<col width="9%" />
<col width="8%" />
<col width="83%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">name</th>
<th class="head">type</th>
<th class="head">description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>id</td>
<td>int</td>
<td>The ID of the flag type that was updated.</td>
</tr>
<tr class="row-odd"><td>name</td>
<td>string</td>
<td>The name of the flag type that was updated.</td>
</tr>
<tr class="row-even"><td>changes</td>
<td>object</td>
<td><p class="first">The changes that were actually done on this flag type.
The keys are the names of the fields that were changed, and the
values are an object with two items:</p>
<ul class="last simple">
<li>added: (string) The value that this field was changed to.</li>
<li>removed: (string) The value that was previously set in this
field.</li>
</ul>
</td>
</tr>
</tbody>
</table>
<p>Booleans changes will be represented with the strings '1' and '0'.</p>
<hr class="docutils" />
<p>This documentation undoubtedly has bugs; if you find some, please file
them <a class="reference external" href="https://bugzilla.mozilla.org/enter_bug.cgi?product=Bugzilla&amp;component=Documentation">here</a>.</p>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="../../../index.html">
              <img class="logo" src="../../../_static/bugzilla.png" alt="Logo"/>
            </a></p>
  <h3><a href="../../../index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">6.1.10. Flag Types</a><ul>
<li><a class="reference internal" href="#get-flag-type">6.1.10.1. Get Flag Type</a></li>
<li><a class="reference internal" href="#create-flag-type">6.1.10.2. Create Flag Type</a></li>
<li><a class="reference internal" href="#update-flag-type">6.1.10.3. Update Flag Type</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="field.html"
                        title="previous chapter">6.1.9. Bug Fields</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="group.html"
                        title="next chapter">6.1.11. Groups</a></p>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <form class="search" action="../../../search.html" method="get">
      <div><input type="text" name="q" /></div>
      <div><input type="submit" value="Go" /></div>
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="group.html" title="6.1.11. Groups"
             >next</a></li>
        <li class="right" >
          <a href="field.html" title="6.1.9. Bug Fields"
             >previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="../../../index.html">Bugzilla 5.0.4 documentation</a> &#187;</li>
          <li class="nav-item nav-item-1"><a href="../../index.html" >6. WebService API Reference</a> &#187;</li>
          <li class="nav-item nav-item-2"><a href="index.html" >6.1. Core API v1</a> &#187;</li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.6.6.
    </div>
  </body>
</html>