# Alterar Usuário em Lote

<table data-header-hidden><thead><tr><th width="190"></th><th></th></tr></thead><tbody><tr><td><strong>URL</strong></td><td><code>/corporation-user</code></td></tr><tr><td><strong>Methods</strong></td><td><code>PATCH</code></td></tr><tr><td><strong>Headers</strong></td><td></td></tr><tr><td><code>Authorization</code></td><td><code>Bearer ***</code> onde <code>***</code> é o token obtido na <a href="/pages/Uqo6oRfrxcnZRlyKREYB#autenticacao-de-usuario">autenticação de usuário</a></td></tr><tr><td><strong>Data Params</strong></td><td><code>{data: {}}</code></td></tr><tr><td><code>status</code></td><td><code>Int</code> | Requerido | Status que os usuários deverão receber.<br>habilitado = 0; bloqueado = 2; removido = 4;</td></tr><tr><td><code>usernames</code></td><td><code>Array[String]</code> | Requerido | Lista de CPF dos usuários a serem alterados.</td></tr><tr><td><strong>Success Response</strong></td><td><strong>Code:</strong> <code>200</code></td></tr><tr><td><strong>Error Response</strong></td><td><p><strong>Code:</strong> <code>401</code><br><strong>Content:</strong> </p><pre class="language-json"><code class="lang-json">{
    "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html",
    "title": "Unauthorized",
    "status": 401,
    "detail": "User auth error."
}
</code></pre></td></tr></tbody></table>

#### **Exemplo**

```sh
curl --location --request PATCH 'https://billing.hom.vaultid.com.br/corporation-user' \
--header 'Authorization: Bearer 131dc93fd6570705c5868b6' \
--header 'Content-Type: application/json' \
--data '{
    "data":{
        "status":0,
        "usernames":["24882551810"]
    }
}'
```

### Ambientes

* Homologação: [https://billing.hom.vaultid.com.br](https://billing.hom.vaultid.com.br/auth)
* Produção: [https://billing.vaultid.com.br](https://billing.vaultid.com.br/auth)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.vaultid.com.br/workspace/wings/corporativo/alterar-usuario-em-lote.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
