# Stop, restart or set updates

Source: https://docs.vlayers.ai/reference/hosting/update-install

`PATCH /v1/installs/{install}` · scope `workspace:write`

Stops the package (your own off switch), starts it again, or changes whether updates install by themselves. A package VoiceLayer stopped for abuse stays stopped until VoiceLayer lifts it; the answer says why.

Requires an API key with the `workspace:write` scope.

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `install` | path | string | yes | The install id from `GET /v1/installs`. Example: `"0192f5c3-7a8b-7c9d-8e1f-3a4b5c6d7e89"` |
| `updateMode` | body | "manual" \| "automatic" | no | `manual` or `automatic`. |
| `state` | body | "active" \| "stopped" | no | `stopped` to stop the package, `active` to start it again. |
| `note` | body | string | no | Why you are stopping it (recorded; up to 500 characters). |

## Request

cURL:

```bash
curl -X PATCH "https://api.vlayers.ai/v1/installs/$INSTALL_ID" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "state": "stopped",
    "note": "Paused while we review it."
  }'
```

TypeScript:

```ts
import { VoiceLayer } from '@voicelayer/api';

const voicelayer = new VoiceLayer();

const { state } = await voicelayer.hosting.updateInstall('<install-id>', {
  state: 'stopped',
  note: 'Paused while we review it.'
});
console.log(state);
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.hosting.update_install(
    "<install-id>",
    state="stopped",
    note="Paused while we review it.",
)
print(result.state)
```

## Response `200`

```json
{
  "id": "0192f5c3-7a8b-7c9d-8e1f-3a4b5c6d7e89",
  "packageId": "com.example/orders-panel",
  "kind": "tool-set",
  "publisherWorkspaceId": "org_publisher",
  "versionId": "0192f5c1-5e6f-7a8b-9c0d-1e2f3a4b5c67",
  "label": "com.example/orders-panel@1.0.0",
  "state": "stopped",
  "updateMode": "manual",
  "summary": {
    "lines": [
      {
        "section": "hosts",
        "key": "host:api.example.com",
        "text": "It can send data to api.example.com."
      }
    ],
    "hash": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
  },
  "consentedBy": "user_2abc",
  "consentedAt": "2026-10-20T15:04:05.000Z",
  "notice": {
    "by": "customer",
    "reason": "Paused while we review it.",
    "at": "2026-10-20T15:04:05.000Z",
    "reportId": null
  },
  "pendingUpdate": null,
  "sizeClass": "small",
  "warmCount": 1,
  "screens": false
}
```
