> For the complete documentation index, see [llms.txt](https://docs.factpro.la/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.factpro.la/api-facturacion-v3/herramientas-empresa/cambiar-de-demo-a-produccion-por-api.md).

# Cambiar de demo a producción por API

Si requieres cambiar el entorno de demo a produccion via API , puede utilizar el siguiente endpoint

Método <mark style="background-color:purple;">PUT</mark>\
**Token:** token de la empresa<br>

<mark style="background-color:purple;">PUT</mark> <https://api.factpro.la/api/v3/empresas/entorno>

**Body**

<table><thead><tr><th width="184">Nombre</th><th width="80">Type</th><th>Codigo</th></tr></thead><tbody><tr><td>demo</td><td>string</td><td>1</td></tr><tr><td>produccion</td><td>string</td><td>2</td></tr></tbody></table>

**Body**

{% code overflow="wrap" lineNumbers="true" fullWidth="false" %}

```json
{
  "entorno": 2
}
```

{% endcode %}

**Response**

{% code lineNumbers="true" fullWidth="false" %}

```json
{
  "exito": true,
  "mensaje": "Empresa en entorno: PRODUCCION",
}
```

{% endcode %}

**Vía WEB**
