{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/digitraffic-fi/json-schema/digitraffic-fi-weathercam-stations-presets-publicity-history-v1-schema.json",
  "title": "WeathercamStationsPresetsPublicityHistoryV1",
  "description": "Weathercam stations presets publicity changes",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/digitraffic-fi-weathercam-v1-api-openapi.yml#/components/schemas/WeathercamStationsPresetsPublicityHistoryV1",
  "type": "object",
  "properties": {
    "dataUpdatedTime": {
      "type": "string",
      "description": "Latest history change time. Use this value as parameter for next query in api.",
      "format": "date-time"
    },
    "stations": {
      "type": "array",
      "description": "Stations data",
      "items": {
        "$ref": "#/$defs/WeathercamStationPresetsPublicityHistoryV1"
      }
    }
  },
  "$defs": {
    "WeathercamPresetPublicityHistoryV1": {
      "required": [
        "id"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Id of the weathercam preset"
        },
        "measuredTime": {
          "type": "string",
          "description": "The time when change took place. Same as the last modified date of the related image version.",
          "format": "date-time"
        },
        "publishableTo": {
          "type": "boolean",
          "description": "New state for publicity"
        },
        "modifiedTime": {
          "type": "string",
          "description": "Modification time of the history.",
          "format": "date-time"
        }
      },
      "description": "Weathercam station preset's publicity changes"
    },
    "WeathercamStationPresetsPublicityHistoryV1": {
      "required": [
        "id",
        "presets"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Id of the road station"
        },
        "dataUpdatedTime": {
          "type": "string",
          "description": "Time when data was last updated",
          "format": "date-time"
        },
        "presets": {
          "type": "array",
          "description": "Id of the weathercam station",
          "items": {
            "$ref": "#/$defs/WeathercamPresetPublicityHistoryV1"
          }
        }
      },
      "description": "Weathercam station presets publicity changes"
    }
  }
}