---
title: "Update and redeploy a stream application."
method: PUT
path: "/_fabric/{fabric}/_api/streamapps/{appname}"
tags: ["Stream Workers"]
---

# Update and redeploy a stream application.

`PUT /_fabric/{fabric}/_api/streamapps/{appname}`

## 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/put.ts> (a function with typed inputs; its response is checked against the schema)

Update and redeploy a stream application.

## Path parameters

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

## Request body

- StreamAppRequest
  - `definition` string
  - `regions` string[]

## Response `200`

Successfully updated stream application.

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

## Other responses

- `400`: Failed due to missing or malformed data. Verify that all parameters are complete.
- `404`: Failed to find specified stream application.
- `422`: Failed to update stream application because there is an error in the definition.

---

[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)
