Create or Update Room

๐Ÿงพ Create or Update Room

Endpoint: PUT /api/v3/rooms

Auth Required: โœ… Yes (Bearer Token)


๐Ÿ“ Description

Creates a new room or updates an existing one based on the data provided. Rooms are typically used for scheduling in-person visits, briefings, or virtual meetings. If the room already exists (based on internal logic), it will be updated instead of created.


๐Ÿ” Query Parameters

Parameter Type Required Default Description
languageId integer No โ€” Language ID for localized content.

๐Ÿ“ฅ Request Body

Content-Type: application/json

Include room properties you wish to create or update.

๐Ÿ”ง Sample Schema

{  "<roomField>": "<value>",  "<anotherRoomField>": 0 }  

๐Ÿ“ค Request Example

PUT https://api.briefingedge.com/api/v3/rooms?languageId=1 Authorization: Bearer <token> Content-Type: application/json  {  "name": "Executive Briefing Room A",  "capacity": 20 }  

โœ… Success Response (200 OK)

Returns the created or updated Room object.

Example:

{  "RoomID": 101,  "Name": "Executive Briefing Room A",  "Capacity": 20,  "IsActive": true }  

โŒ Error Responses

Code Message Description
400 Bad Request Invalid room data or payload format.
401 Unauthorized Missing or invalid bearer token.
500 Internal Server Error Unexpected server-side failure.