{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/intruder/main/json-schema/intruder-patched-assessment-schedules-create-update-request-schema.json",
  "title": "PatchedAssessmentSchedulesCreateUpdateRequest",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/intruder-api-openapi.yml#/components/schemas/PatchedAssessmentSchedulesCreateUpdateRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1
    },
    "first_scan_time": {
      "type": "string",
      "format": "date-time",
      "description": "First scan time. Must be in the future and on the hour. Example: 2026-02-23T03:00:00.000Z not 2026-02-23T12:34:56.789Z"
    },
    "scan_frequency": {
      "allOf": [
        {
          "$ref": "#/$defs/ScanFrequencyEnum"
        }
      ],
      "description": "Scan frequency. One of: monthly, daily, weekly, quarterly.\n\n* `monthly` - monthly\n* `daily` - daily\n* `weekly` - weekly\n* `quarterly` - quarterly"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Tag names to include in scan."
    },
    "targets": {
      "type": "array",
      "items": {
        "type": "integer"
      },
      "description": "Target IDs to include in scan."
    },
    "throttled": {
      "type": "boolean",
      "default": false
    },
    "web_ports_only": {
      "type": "boolean",
      "default": false
    },
    "upload_to_drata": {
      "type": "boolean",
      "default": false
    },
    "upload_to_vanta": {
      "type": "boolean",
      "default": false
    }
  },
  "$defs": {
    "ScanFrequencyEnum": {
      "enum": [
        "monthly",
        "daily",
        "weekly",
        "quarterly"
      ],
      "type": "string",
      "description": "* `monthly` - monthly\n* `daily` - daily\n* `weekly` - weekly\n* `quarterly` - quarterly"
    }
  }
}