{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-synthetic-test-update-schema.json",
  "title": "SyntheticTestUpdate",
  "description": "Identifies the type of the synthetic tests updated on this request. Valid types are Deep and Shallow.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-synthetic-settings-api-openapi.yml#/components/schemas/SyntheticTestUpdate",
  "type": "object",
  "properties": {
    "active": {
      "type": "boolean"
    },
    "applications": {
      "$ref": "#/$defs/SyntheticResourceUpdateListStringListString"
    },
    "customProperties": {
      "$ref": "#/$defs/SyntheticResourceUpdateMapStringStringListString"
    },
    "ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "lastModifiedAt": {
      "type": "array",
      "items": {
        "type": "integer",
        "format": "int64"
      }
    },
    "locations": {
      "$ref": "#/$defs/SyntheticResourceUpdateListStringListString"
    },
    "mobileApps": {
      "$ref": "#/$defs/SyntheticResourceUpdateListStringListString"
    },
    "modifiedBy": {
      "type": "string"
    },
    "shallowUpdate": {
      "type": "boolean"
    },
    "syntheticUpdateType": {
      "type": "string",
      "description": "Indicates the type of update to apply to a set of tests of same syntheticType (Deep)\nor a mix of syntheticType values (Shallow). When Shallow is used, only the configuration properties\nretries, retryInterval and timeout can be updated\n",
      "enum": [
        "Deep",
        "Shallow"
      ]
    },
    "testFrequency": {
      "type": "integer",
      "format": "int32",
      "maximum": 1440,
      "minimum": 1
    },
    "websites": {
      "$ref": "#/$defs/SyntheticResourceUpdateListStringListString"
    }
  },
  "required": [
    "syntheticUpdateType"
  ],
  "$defs": {
    "SyntheticResourceUpdateListStringListString": {
      "type": "object",
      "properties": {
        "add": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "remove": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "SyntheticResourceUpdateMapStringStringListString": {
      "type": "object",
      "properties": {
        "add": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "remove": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}