---
title: "Regenerate the connection code for any stream target"
method: PUT
path: "/stream_targets/{id}/regenerate_connection_code"
tags: ["stream_targets"]
---

# Regenerate the connection code for any stream target

`PUT /stream_targets/{id}/regenerate_connection_code`

This operation regenerates the connection code of any kind of stream target.

## Path parameters

- `id` string, required

## Response `200`

Success

- object
  - `stream_target` object, required
    - `connection_code` string — A six-character, alphanumeric string that allows select encoders, such as Wowza Streaming Engine or the Wowza GoCoder app, to send an encoded stream to a stream target in Wowza Video. The code can be used once and expires 24 hours after it's created.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `410` — Gone
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/wowza/apis/wowza-video-rest-api-reference-documentation.md) · [All operations](https://skmtc.net/wowza/apis/wowza-video-rest-api-reference-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wowza/wowza-video-rest-api-reference-documentation/versions/157b6f741f2a/schema)
