---
title: "Enable or disable a stream application."
method: PATCH
path: "/_fabric/{fabric}/_api/streamapps/{appname}/active"
tags: ["Stream Workers"]
---

# Enable or disable a stream application.

`PATCH /_fabric/{fabric}/_api/streamapps/{appname}/active`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_fabric/:fabric/_api/streamapps/:appname/active/patch.ts> (a function with typed inputs; its response is checked against the schema)

Enable or disable a stream application.

## Path parameters

- `fabric` string, required
- `appname` string, required

## Query parameters

- `active` boolean, required

## Response `200`

Successfully set the stream application active status.

- GetAllStreamAppsResponse
  - `code` integer: HTTP response code.
  - `error` boolean: Flag if there is an error in response. *False* for this response.
  - `streamApps` StreamAppInformation[]
    - `name` string
    - `definition` string
    - `regions` string[]
    - `isActive` boolean

## Other responses

- `404`: Failed to find specified stream application.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
