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. |