Change Screen Configuration
POSThttp://localhost:3000/api/room/screen
Update the screen configuration of the room.
Request
- application/json
Bodyrequired
widthinteger
The width of the screen.
Example:
1280
heightinteger
The height of the screen.
Example:
720
rateinteger
The refresh rate of the screen.
Example:
30
Responses
- 200
- 401
- 403
- 422
Screen configuration updated successfully.
- application/json
- Schema
- Example (auto)
Schema
widthinteger
The width of the screen.
Example:
1280
heightinteger
The height of the screen.
Example:
720
rateinteger
The refresh rate of the screen.
Example:
30
{
"width": 1280,
"height": 720,
"rate": 30
}
The request requires user authentication.
- application/json
- Schema
- Example (auto)
Schema
messagestring
Detailed error message.
{
"message": "string"
}
The server understood the request, but refuses to authorize it.
- application/json
- Schema
- Example (auto)
Schema
messagestring
Detailed error message.
{
"message": "string"
}
Invalid screen configuration.
- application/json
- Schema
- Example (auto)
Schema
messagestring
Detailed error message.
{
"message": "string"
}
Authorization: http
name: BearerAuthtype: httpscheme: bearerdescription: Authentication using a Bearer token.
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost:3000/api/room/screen");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"width\": 1280,\n \"height\": 720,\n \"rate\": 30\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear