{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-communication-services/json-schema/microsoft-azure-communication-services-rooms-collection-schema.json",
  "title": "RoomsCollection",
  "description": "A collection of rooms.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-communication-services-rooms-api-openapi.yml#/components/schemas/RoomsCollection",
  "required": [
    "value"
  ],
  "type": "object",
  "properties": {
    "value": {
      "description": "A collection of rooms.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/RoomModel"
      }
    },
    "nextLink": {
      "description": "If there are more rooms that can be retrieved, the next link will be populated.",
      "type": "string"
    }
  },
  "$defs": {
    "RoomModel": {
      "description": "The meeting room.",
      "type": "object",
      "required": [
        "createdAt",
        "id",
        "validFrom",
        "validUntil",
        "pstnDialOutEnabled"
      ],
      "properties": {
        "id": {
          "description": "Unique identifier of a room. This id is server generated.",
          "type": "string"
        },
        "createdAt": {
          "format": "date-time",
          "description": "The timestamp when the room was created at the server. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`.",
          "type": "string"
        },
        "validFrom": {
          "format": "date-time",
          "description": "The timestamp from when the room is open for joining. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`.",
          "type": "string"
        },
        "validUntil": {
          "format": "date-time",
          "description": "The timestamp from when the room can no longer be joined. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`.",
          "type": "string"
        },
        "pstnDialOutEnabled": {
          "description": "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.",
          "type": "boolean"
        }
      }
    }
  }
}