{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-ansible-automation-platform/json-schema/red-hat-ansible-automation-platform-patched-activation-update-schema.json",
  "title": "PatchedActivationUpdate",
  "description": "Serializer for updating the Activation.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-ansible-automation-platform-activations-api-openapi.yml#/components/schemas/PatchedActivationUpdate",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "is_enabled": {
      "type": "boolean"
    },
    "restart_on_project_update": {
      "type": "boolean",
      "description": "Auto-restart when rulebook changes after project sync"
    },
    "decision_environment_id": {
      "type": "integer"
    },
    "rulebook_id": {
      "type": "integer"
    },
    "extra_var": {
      "type": [
        "string",
        "null"
      ]
    },
    "organization_id": {
      "type": "integer"
    },
    "user": {
      "type": [
        "integer",
        "null"
      ]
    },
    "restart_policy": {
      "$ref": "#/$defs/RestartPolicyEnum"
    },
    "awx_token_id": {
      "type": [
        "integer",
        "null"
      ]
    },
    "log_level": {
      "$ref": "#/$defs/LogLevelEnum"
    },
    "eda_credentials": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "k8s_service_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "source_mappings": {
      "type": "string",
      "description": "Mapping between sources and event streams"
    },
    "skip_audit_events": {
      "type": "boolean",
      "description": "Skip audit events for activation"
    },
    "enable_persistence": {
      "type": "boolean",
      "description": "Enable persistence for activation"
    },
    "rule_engine_credential_id": {
      "type": [
        "integer",
        "null"
      ]
    },
    "k8s_pod_service_account_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "k8s_pod_labels": {},
    "k8s_pod_annotations": {},
    "k8s_pod_node_selector": {},
    "k8s_pod_tolerations": {}
  },
  "$defs": {
    "LogLevelEnum": {
      "enum": [
        "debug",
        "info",
        "error"
      ],
      "type": "string",
      "description": "* `debug` - debug\n* `info` - info\n* `error` - error"
    },
    "RestartPolicyEnum": {
      "enum": [
        "always",
        "on-failure",
        "never"
      ],
      "type": "string",
      "description": "* `always` - always\n* `on-failure` - on-failure\n* `never` - never"
    }
  }
}