Rooms - Update

Update a room with given changes.

PATCH {endpoint}/rooms/{roomId}?api-version=2023-10-30-preview

URI Parameters

Name In Required Type Description
endpoint
path True

string

url

The endpoint of the Azure Communication resource.

roomId
path True

string

The id of the room requested.

api-version
query True

string

Version of API to invoke.

Request Header

Media Types: "application/merge-patch+json"

Name Required Type Description
Authorization True

string

An authentication string containing a signature generated using HMAC-SHA256 scheme.

Request Body

Media Types: "application/merge-patch+json"

Name Type Description
pstnDialOutEnabled

boolean

Set this flag to true if, at the time of the call, dial out to a PSTN number is enabled in a particular room. By default, this flag is set to false.

validFrom

string

(Optional) The timestamp from when the room is open for joining. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.

validUntil

string

(Optional) The timestamp from when the room can no longer be joined. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.

Responses

Name Type Description
200 OK

RoomModel

Request successful. The action returns an updated room.

Other Status Codes

CommunicationErrorResponse

Error response

Headers

x-ms-error-code: string

Security

Authorization

An authentication string containing a signature generated using HMAC-SHA256 scheme.

Type: apiKey
In: header

Examples

Update meeting room's properties.

Sample Request

PATCH https://contoso.communication.azure.com//rooms/99199690362660524?api-version=2023-10-30-preview

{
  "validFrom": "2023-06-30T00:00:00Z",
  "validUntil": "2023-07-30T00:00:00Z",
  "pstnDialOutEnabled": true
}

Sample Response

{
  "id": "99199690362660524",
  "createdAt": "2023-06-26T01:37:00.659722+00:00",
  "validFrom": "2023-06-30T00:00:00+00:00",
  "validUntil": "2023-07-30T00:00:00+00:00",
  "pstnDialOutEnabled": true
}

Definitions

Name Description
RoomModel

The meeting room.

UpdateRoomRequest

Request payload for updating a room.

RoomModel

The meeting room.

Name Type Description
createdAt

string

The timestamp when the room was created at the server. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.

id

string

Unique identifier of a room. This id is server generated.

pstnDialOutEnabled

boolean

Set this flag to true if, at the time of the call, dial out to a PSTN number is enabled in a particular room. By default, this flag is set to false.

validFrom

string

The timestamp from when the room is open for joining. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.

validUntil

string

The timestamp from when the room can no longer be joined. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.

UpdateRoomRequest

Request payload for updating a room.

Name Type Description
pstnDialOutEnabled

boolean

Set this flag to true if, at the time of the call, dial out to a PSTN number is enabled in a particular room. By default, this flag is set to false.

validFrom

string

(Optional) The timestamp from when the room is open for joining. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.

validUntil

string

(Optional) The timestamp from when the room can no longer be joined. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.