Skip to main content
Version: v3

Change Screen Configuration

POST 

http://localhost:3000/api/room/screen

Update the screen configuration of the room.

Request

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

Screen configuration updated successfully.

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

Authorization: http

name: BearerAuthtype: httpscheme: bearerdescription: Authentication using a Bearer token.
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());
Request Collapse all
Base URL
http://localhost:3000
Auth
Body required
{
  "width": 1280,
  "height": 720,
  "rate": 30
}
ResponseClear

Click the Send API Request button above and see the response here!