<!DOCTYPE html>
<html>
<head>
  <title>Documentação da API</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link type='text/css' rel='stylesheet' href='../../../apidoc/stylesheets/bundled/bootstrap.min.css'/>
<link type='text/css' rel='stylesheet' href='../../../apidoc/stylesheets/bundled/prettify.css'/>
<link type='text/css' rel='stylesheet' href='../../../apidoc/stylesheets/bundled/bootstrap-responsive.min.css'/>
  <link type='text/css' rel='stylesheet' href='../../../apidoc/stylesheets/application.css'/>
  <!-- IE6-8 support of HTML5 elements -->
  <!--[if lt IE 9]>
    <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
  <![endif]-->
</head>
<body>
  <div class="container-fluid">
    <div class="row-fluid">
      <div id='container'>
        <ul class='breadcrumb'>
  <li>
    <a href='../../../apidoc/v2.pt_BR.html'>Foreman v2</a>
    <span class='divider'>/</span>
  </li>
  <li>
    <a href='../../../apidoc/v2/locations.pt_BR.html'>
      Locations
      
    </a>
    <span class='divider'>/</span>
  </li>
  <li class='active'>update</li>
  <li class='pull-right'>
  &nbsp;[ <a href="../../../apidoc/v2/locations/update.ca.html">ca</a> | <a href="../../../apidoc/v2/locations/update.cs_CZ.html">cs_CZ</a> | <a href="../../../apidoc/v2/locations/update.de.html">de</a> | <a href="../../../apidoc/v2/locations/update.en.html">en</a> | <a href="../../../apidoc/v2/locations/update.en_GB.html">en_GB</a> | <a href="../../../apidoc/v2/locations/update.es.html">es</a> | <a href="../../../apidoc/v2/locations/update.fr.html">fr</a> | <a href="../../../apidoc/v2/locations/update.gl.html">gl</a> | <a href="../../../apidoc/v2/locations/update.it.html">it</a> | <a href="../../../apidoc/v2/locations/update.ja.html">ja</a> | <a href="../../../apidoc/v2/locations/update.ko.html">ko</a> | <a href="../../../apidoc/v2/locations/update.nl_NL.html">nl_NL</a> | <a href="../../../apidoc/v2/locations/update.pl.html">pl</a> | <b><a href="../../../apidoc/v2/locations/update.pt_BR.html">pt_BR</a></b> | <a href="../../../apidoc/v2/locations/update.ru.html">ru</a> | <a href="../../../apidoc/v2/locations/update.sv_SE.html">sv_SE</a> | <a href="../../../apidoc/v2/locations/update.zh_CN.html">zh_CN</a> | <a href="../../../apidoc/v2/locations/update.zh_TW.html">zh_TW</a> ]
</li>


</ul>

  <div class='page-header'>
    <h1>
      PUT /api/locations/:id
      <br>
      <small>Update a location</small>
    </h1>
  </div>

<div>

  



  <h2>Exemplos</h2>
    <pre class="prettyprint">POST /api/locations/447626473
{
  &quot;location&quot;: {
    &quot;name&quot;: &quot;XOJvGidQ3V&quot;
  }
}
201
{
  &quot;select_all_types&quot;: [],
  &quot;description&quot;: null,
  &quot;created_at&quot;: &quot;2019-11-07 09:01:49 UTC&quot;,
  &quot;updated_at&quot;: &quot;2019-11-07 09:01:49 UTC&quot;,
  &quot;ancestry&quot;: null,
  &quot;parent_id&quot;: null,
  &quot;parent_name&quot;: null,
  &quot;id&quot;: 447626473,
  &quot;name&quot;: &quot;XOJvGidQ3V&quot;,
  &quot;title&quot;: &quot;XOJvGidQ3V&quot;,
  &quot;users&quot;: [],
  &quot;smart_proxies&quot;: [],
  &quot;subnets&quot;: [],
  &quot;compute_resources&quot;: [],
  &quot;media&quot;: [],
  &quot;config_templates&quot;: [],
  &quot;ptables&quot;: [],
  &quot;provisioning_templates&quot;: [],
  &quot;domains&quot;: [],
  &quot;realms&quot;: [],
  &quot;environments&quot;: [],
  &quot;hostgroups&quot;: [],
  &quot;organizations&quot;: [],
  &quot;hosts_count&quot;: 0,
  &quot;parameters&quot;: []
}</pre>

  <h2>Parâmentros</h2>
  <table class='table'>
    <thead>
      <tr>
        <th>Nome parâmetro</th>
        <th>Descrição</th>
      </tr>
    </thead>
    <tbody>
        <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>location_id </strong><br>
      <small>
        opcional
        
      </small>
    </td>
    <td>
      
<p>Set the current location context for the request</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a Integer</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>organization_id </strong><br>
      <small>
        opcional
        
      </small>
    </td>
    <td>
      
<p>Set the current organization context for the request</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a Integer</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>location </strong><br>
      <small>
        requerido
        
      </small>
    </td>
    <td>
      
        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a Hash</p>
</li>
        </ul>

    </td>

  </tr>

    <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>location[name] </strong><br>
      <small>
        opcional
        
      </small>
    </td>
    <td>
      
        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>location[description] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>location[user_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs dos Usuários</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be an array of any type</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>location[smart_proxy_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs do proxy inteligente</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be an array of any type</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>location[compute_resource_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs do recurso de computação</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be an array of any type</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>location[medium_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs de mídia</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be an array of any type</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>location[ptable_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs do modelo de partição</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be an array of any type</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>location[provisioning_template_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs de modelo de provisionamento</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be an array of any type</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>location[domain_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs de Domínio</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be an array of any type</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>location[realm_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs de Realm</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be an array of any type</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>location[hostgroup_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs do grupo de host</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be an array of any type</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>location[environment_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs de Ambiente</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be an array of any type</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>location[subnet_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>Ids de Subrede</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be an array of any type</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>location[parent_id] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>ID Pai</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a number.</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>location[ignore_types] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>Lista de tipos de recurso que serão associados automaticamente</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be an array of any type</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>location[organization_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>Associated organization IDs</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be an array of any type</p>
</li>
        </ul>

    </td>

  </tr>

  

  <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>id </strong><br>
      <small>
        requerido
        
      </small>
    </td>
    <td>
      
        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.</p>
</li>
        </ul>

    </td>

  </tr>

  

    </tbody>
  </table>




</div>

  

        
      </div>
    </div>
    <hr>
    <footer></footer>
  </div>
  <script type='text/javascript' src='../../../apidoc/javascripts/bundled/jquery.js'></script>
<script type='text/javascript' src='../../../apidoc/javascripts/bundled/bootstrap-collapse.js'></script>
<script type='text/javascript' src='../../../apidoc/javascripts/bundled/prettify.js'></script>
<script type='text/javascript' src='../../../apidoc/javascripts/apipie.js'></script>
</body>
</html>
