---
title: "Stream file actions"
method: PUT
path: "/v2/servers/{serverName}/vhosts/{vhostName}/streamfiles/{streamfileName}/actions/{action}"
tags: ["Virtual Hosts"]
---

# Stream file actions

`PUT /v2/servers/{serverName}/vhosts/{vhostName}/streamfiles/{streamfileName}/actions/{action}`

Stream file action. This API is available in builds 15089 or later.

## Path parameters

- `serverName` string, required
- `action` 'connect' | 'copy', required
- `vhostName` string, required
- `streamfileName` string, required

## Query parameters

- `connectAppName` string
- `appInstance` string
- `mediaCasterType` 'rtp' | ' rtp-record' | 'shoutcast' | 'shoutcast-record' | 'liverepeater', required
- `dstEntryName` string

## Response `200`

Successful response

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `402` — Payment Required
- `404` — Not found
- `415` — Unsupported Media Type
- `500` — Internal server error

---

[API](https://skmtc.net/wowza/apis/wowza-streaming-engine-rest-api.md) · [All operations](https://skmtc.net/wowza/apis/wowza-streaming-engine-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wowza/wowza-streaming-engine-rest-api/revisions/f2200a734783/schema)
