{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/calypsoai-com/json-schema/calypsoai-com-post-run-campaign-body-schema.json",
  "title": "PostRunCampaignBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/calypsoai-com-campaign-runs-api-openapi.yml#/components/schemas/PostRunCampaignBody",
  "properties": {
    "campaignId": {
      "description": "ID of the campaign to run. If empty, run all attacks.",
      "format": "uuid",
      "title": "Campaignid",
      "type": "string"
    },
    "name": {
      "description": "Name to give the campaign run",
      "maxLength": 100,
      "minLength": 1,
      "title": "Name",
      "type": "string"
    },
    "providerIds": {
      "description": "IDs of the providers to target for the campaign",
      "items": {
        "format": "uuid",
        "type": "string"
      },
      "maxItems": 5,
      "minItems": 1,
      "title": "Providerids",
      "type": "array"
    },
    "remediationSettings": {
      "anyOf": [
        {
          "$ref": "#/$defs/CampaignRunRemediationSettings"
        },
        {
          "type": "null"
        }
      ],
      "description": "Remediation settings."
    }
  },
  "required": [
    "campaignId",
    "providerIds",
    "name"
  ],
  "type": "object",
  "$defs": {
    "CampaignRunRemediationSettings": {
      "properties": {
        "autorun": {
          "default": false,
          "description": "Run remediation once available.",
          "title": "Autorun",
          "type": "boolean"
        }
      },
      "title": "CampaignRunRemediationSettings",
      "type": "object"
    }
  }
}