---
title: "Create room"
method: POST
path: "/rooms"
tags: ["rooms"]
---

# Create room

`POST /rooms`

Create a new room with a name

## Request body

- object — Create room properties
  - `name` string, required — Name of the room
  - `active` boolean — If the room is active
  - `type` string, required — RoomType of the room
  - `origin` string — Tracks where refocus room was created from
  - `owner` string — The name of the user to assign as the owner. Defaults to the user that created it

## Response `201`

Created room

- RoomResponse — A response for information about a room
  - `id` integer — The room number of the specified room
  - `name` string — The unique readable name for the room
  - `active` boolean — Flag for whether the room is still active or closed
  - `type` string — The roomType being used in the specified room
  - `createdBy` string — Id of the User who created this room.
  - `origin` string — Tracks where refocus room was created from

## Other responses

- `400` — Bad Request
- `401` — Authentication Error
- `403` — Forbidden
- `default` — Error

---

[API](https://skmtc.dev/salesforce/apis/refocus-api.md) · [All operations](https://skmtc.dev/salesforce/apis/refocus-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/salesforce/refocus-api/revisions/42c2153b047e/schema)
