---
title: "PUT /webrtc/state"
method: PUT
path: "/webrtc/state"
tags: ["webrtc"]
---

# PUT /webrtc/state

`PUT /webrtc/state`

自身のWebRTCの状態を変更します。

## Request body

- PutWebRTCState
  - `channelId` string, uuid — ユーザーの接続先チャンネルUUID(切断はnullを指定)
  - `state` string[] — ユーザーの状態の配列(切断は空配列を指定)

## Response `204`

正常に変更できました。

## Changes

- **2019-09-09** `f291e1b35a23` — 1 breaking
  - request body became required
- **2019-08-26** `98411c5c4e25` — 1 info
  - endpoint added
- **2019-07-05** `6956f2622a20` — 1 info
  - api path removed with deprecation

[Change history](https://skmtc.dev/traptitech/apis/traq-api/changes/webrtc/state/put.md)

---

[API](https://skmtc.dev/traptitech/apis/traq-api.md) · [All operations](https://skmtc.dev/traptitech/apis/traq-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/traptitech/traq-api/revisions/801af87793dd/schema)
