{
  "openapi": "3.0.0",
  "x-hideTryItPanel": true,
  "info": {
    "version": "Cortex Cloud 2.2",
    "title": "Cortex Cloud Platform APIs",
    "description": " Using the Cortex Platform APIs, you can configure and manage authentication settings, datasets, cases, issues, and script executions. Additionally, the APIs allow you to run XQL queries and perform various other operations across the platform.\n\nThe license requirements for each API are listed individually.",
    "contact": {
      "email": "docs-cortex@paloaltonetworks.com",
      "name": "Cortex Documentation Team",
      "url": "https://cortex-docs.paloaltonetworks.com/"
    }
  },
  "servers": [
    {
      "url": "https://api-yourfqdn"
    }
  ],
  "paths": {
    "/public_api/v1/cli/releases/version": {
      "get": {
        "operationId": "GetPublicCLIVersion",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Cortex CLI"
        ],
        "x-go-middlewares": [
          "CustomLogging"
        ],
        "x-public": true,
        "summary": "Get the latest version of the Cortex CLI.",
        "description": "Get the latest version of Cortex CLI.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VersionObj"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Invalid Input."
          },
          "401": {
            "description": "Unauthorized access. User does not have the required license type to run this API."
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API."
          },
          "500": {
            "description": "Service had unexpected internal error"
          }
        }
      }
    },
    "/public_api/v1/xql/start_xql_query": {
      "post": {
        "tags": [
          "XQL query"
        ],
        "summary": "Start an XQL query",
        "description": "Execute an XQL query.\n\nFor more information on how to run XQL queries, see [Run XQL Query APIs](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/run-xql-query-apis).\n\n<!-- theme: info -->\n\n> #### Note\n>\n> To ensure you don't surpass your quota, Cortex allows you to run up to four API queries in parallel.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "postStartXqlQuery",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "query": {
                        "type": "string",
                        "description": "String of the XQL query."
                      },
                      "tenants": {
                        "type": "array",
                        "description": "Note: This is only used when querying tenants managed by Managed Security Services Providers (MSSP).\n\nList of strings used for running APIs on local and Managed Security tenants. Valid values:\n- For single tenant (local tenant) query, enter a single-item list with your tenant_id. Additional valid values are, empty list ([]) or null (default).\n- For multi-tenant investigations (Managed Security parent who investigate children and/or local), enter multi-item list with the required tenant_id. List of IDs can contain the parent, children, or both parent and children.",
                        "items": {
                          "type": "string"
                        }
                      },
                      "timeframe": {
                        "type": "object",
                        "description": "Integer in timestamp epoch milliseconds.\r\nValid values include:\r\n- Absolute Unix timestamp representing a date period: {\"from\" : 1598907600000, \"to\" : 1599080399000} = date period: 31/08/20 09:00:00 PM UTC - 02/09/20 8:59:59 PM UTC\r\n- Relative Unix timestamp representing the last 24 hours: {\"relativeTime\": 86400000} = (24 * 60 * 60 * 1000 = 86400000).",
                        "properties": {
                          "from": {
                            "type": "integer",
                            "description": "Use for an absolute timeframe in Unix timestamp.",
                            "example": 1598907600000
                          },
                          "to": {
                            "type": "integer",
                            "description": "Use for an absolute timeframe in Unix timestamp.",
                            "example": 1599080399000
                          },
                          "relativeTime": {
                            "type": "integer",
                            "description": "Use for a relative Unix timestamp.",
                            "example": 86400000
                          }
                        }
                      }
                    },
                    "required": [
                      "query"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "example": {
                  "request_data": {
                    "query": "dataset=xdr_data | fields event_id, event_type, event_sub_type | limit 3",
                    "tenants": [],
                    "timeframe": {
                      "from": 1598907600000,
                      "to": 1599080399000
                    }
                  }
                }
              },
              "examples": {
                "default": {
                  "value": {
                    "request_data": {
                      "query": "dataset=xdr_data | fields event_id, event_type, event_sub_type | limit 3",
                      "tenants": [],
                      "timeframe": {
                        "from": 1598907600000,
                        "to": 1599080399000
                      }
                    }
                  }
                },
                "example-1": {
                  "value": {
                    "request_data": {
                      "query": "dataset=xdr_data | fields event_id, event_type, event_sub_type | limit 3",
                      "tenants": [
                        "431509831",
                        "401387390"
                      ],
                      "timeframe": {
                        "from": 1598907600000,
                        "to": 1599080399000
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": "ad21c1e1492d4c_667_inv"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": "ad21c1e1492d4c_667_inv"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "err_code": {
                          "type": "integer"
                        },
                        "err_msg": {
                          "type": "string"
                        },
                        "err_extra": {
                          "type": "object",
                          "properties": {
                            "err_msg": {
                              "type": "string"
                            },
                            "query_cost": {
                              "type": "integer"
                            },
                            "remaining_quota": {
                              "type": "integer"
                            },
                            "total_daily_running_queries": {
                              "type": "integer",
                              "description": "The number of daily active queries."
                            },
                            "total_daily_concurrent_rejected_queries": {
                              "type": "integer",
                              "description": "The number of daily queries rejected due to too many concurrent XQL queries being run through the API."
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "err_code": 500,
                        "err_msg": "An error occurred while processing XDR - XQL query",
                        "err_extra": {
                          "err_msg": "reached max allowed amount of parallel running queries. please wait for some queries to finish and submit your query again",
                          "query_cost": 0,
                          "remaining_quota": 5,
                          "total_daily_running_queries": 4,
                          "total_daily_concurrent_rejected_queries": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "err_code": 500,
                        "err_msg": "An error occurred while processing XDR - XQL query",
                        "err_extra": {
                          "err_msg": "reached max allowed amount of parallel running queries. please wait for some queries to finish and submit your query again",
                          "query_cost": 0,
                          "remaining_quota": 5,
                          "total_daily_running_queries": 4,
                          "total_daily_concurrent_rejected_queries": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "err_code": {
                          "type": "integer"
                        },
                        "err_msg": {
                          "type": "string"
                        },
                        "err_extra": {
                          "type": "object",
                          "properties": {
                            "err_msg": {
                              "type": "string"
                            },
                            "query_cost": {
                              "type": "integer"
                            },
                            "remaining_quota": {
                              "type": "integer"
                            },
                            "total_daily_running_queries": {
                              "type": "integer",
                              "description": "The number of daily active queries."
                            },
                            "total_daily_concurrent_rejected_queries": {
                              "type": "integer",
                              "description": "The number of daily queries rejected due to too many concurrent XQL queries being run through the API."
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "err_code": 500,
                        "err_msg": "An error occurred while processing XDR - XQL query",
                        "err_extra": {
                          "err_msg": "reached max allowed amount of parallel running queries. please wait for some queries to finish and submit your query again",
                          "query_cost": 0,
                          "remaining_quota": 5,
                          "total_daily_running_queries": 4,
                          "total_daily_concurrent_rejected_queries": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "err_code": 500,
                        "err_msg": "An error occurred while processing XDR - XQL query",
                        "err_extra": {
                          "err_msg": "reached max allowed amount of parallel running queries. please wait for some queries to finish and submit your query again",
                          "query_cost": 0,
                          "remaining_quota": 5,
                          "total_daily_running_queries": 4,
                          "total_daily_concurrent_rejected_queries": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "err_code": {
                          "type": "integer"
                        },
                        "err_msg": {
                          "type": "string"
                        },
                        "err_extra": {
                          "type": "object",
                          "properties": {
                            "err_msg": {
                              "type": "string"
                            },
                            "query_cost": {
                              "type": "integer"
                            },
                            "remaining_quota": {
                              "type": "integer"
                            },
                            "total_daily_running_queries": {
                              "type": "integer",
                              "description": "The number of daily active queries."
                            },
                            "total_daily_concurrent_rejected_queries": {
                              "type": "integer",
                              "description": "The number of daily queries rejected due to too many concurrent XQL queries being run through the API."
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "err_code": 500,
                        "err_msg": "An error occurred while processing XDR - XQL query",
                        "err_extra": {
                          "err_msg": "reached max allowed amount of parallel running queries. please wait for some queries to finish and submit your query again",
                          "query_cost": 0,
                          "remaining_quota": 5,
                          "total_daily_running_queries": 4,
                          "total_daily_concurrent_rejected_queries": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "err_code": 500,
                        "err_msg": "An error occurred while processing XDR - XQL query",
                        "err_extra": {
                          "err_msg": "reached max allowed amount of parallel running queries. please wait for some queries to finish and submit your query again",
                          "query_cost": 0,
                          "remaining_quota": 5,
                          "total_daily_running_queries": 4,
                          "total_daily_concurrent_rejected_queries": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "err_code": {
                          "type": "integer"
                        },
                        "err_msg": {
                          "type": "string"
                        },
                        "err_extra": {
                          "type": "object",
                          "properties": {
                            "err_msg": {
                              "type": "string"
                            },
                            "query_cost": {
                              "type": "integer"
                            },
                            "remaining_quota": {
                              "type": "integer"
                            },
                            "total_daily_running_queries": {
                              "type": "integer",
                              "description": "The number of daily active queries."
                            },
                            "total_daily_concurrent_rejected_queries": {
                              "type": "integer",
                              "description": "The number of daily queries rejected due to too many concurrent XQL queries being run through the API."
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "err_code": 500,
                        "err_msg": "An error occurred while processing XDR - XQL query",
                        "err_extra": {
                          "err_msg": "reached max allowed amount of parallel running queries. please wait for some queries to finish and submit your query again",
                          "query_cost": 0,
                          "remaining_quota": 5,
                          "total_daily_running_queries": 4,
                          "total_daily_concurrent_rejected_queries": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "err_code": 500,
                        "err_msg": "An error occurred while processing XDR - XQL query",
                        "err_extra": {
                          "err_msg": "reached max allowed amount of parallel running queries. please wait for some queries to finish and submit your query again",
                          "query_cost": 0,
                          "remaining_quota": 5,
                          "total_daily_running_queries": 4,
                          "total_daily_concurrent_rejected_queries": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "err_code": {
                          "type": "integer"
                        },
                        "err_msg": {
                          "type": "string"
                        },
                        "err_extra": {
                          "type": "object",
                          "properties": {
                            "err_msg": {
                              "type": "string"
                            },
                            "query_cost": {
                              "type": "integer"
                            },
                            "remaining_quota": {
                              "type": "integer"
                            },
                            "total_daily_running_queries": {
                              "type": "integer",
                              "description": "The number of daily active queries."
                            },
                            "total_daily_concurrent_rejected_queries": {
                              "type": "integer",
                              "description": "The number of daily queries rejected due to too many concurrent XQL queries being run through the API."
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "err_code": 500,
                        "err_msg": "An error occurred while processing XDR - XQL query",
                        "err_extra": {
                          "err_msg": "reached max allowed amount of parallel running queries. please wait for some queries to finish and submit your query again",
                          "query_cost": 0,
                          "remaining_quota": 5,
                          "total_daily_running_queries": 4,
                          "total_daily_concurrent_rejected_queries": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "err_code": 500,
                        "err_msg": "An error occurred while processing XDR - XQL query",
                        "err_extra": {
                          "err_msg": "reached max allowed amount of parallel running queries. please wait for some queries to finish and submit your query again",
                          "query_cost": 0,
                          "remaining_quota": 5,
                          "total_daily_running_queries": 4,
                          "total_daily_concurrent_rejected_queries": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/xql/get_query_results": {
      "post": {
        "tags": [
          "XQL query"
        ],
        "summary": "Get XQL query results",
        "description": "Retrieve results of an executed XQL query API. \n\nNote: This endpoint only works on XQL queries initiated by `/public_api/v1/xql/start_xql_query/`.\n\nMaximum result set size is 1000. The API does not support pagination, therefore, you can set values to determine the result size limitation and how to wait for the results. To view response with greater than 1000 results you must call **Get XQL query results Stream**.\n\nFor more information on how to run XQL queries, see [Run XQL Query APIs](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/run-xql-query-apis).\n\n<!-- theme: info -->\n\n> #### Note\n>\n> To ensure you don't surpass your quota, Cortex allows you to run up to four API queries in parallel.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "postGetQueryResults",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "query_id": {
                        "type": "string",
                        "description": "String representing the unique execution ID generated by the response to [Start an XQL query](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/xql-query#post-public_api-v1-xql-start_xql_query) API.\nYou can also enter the execution ID of a query generated in Cortex XDR and listed in the Query Center table."
                      },
                      "pending_flag": {
                        "type": "boolean",
                        "description": "Boolean flag indicating whether the API call should operate in synchronous/blocking mode, or in asynchronous/non-blocking mode. Valid Values:\n- True (default): The call returns immediately with one of the following options:\n1) PENDING status indicating query hasn't yet completed or results are not yet ready to be returned. Need to execute the API call again.\n2) SUCCESS/FAIL status\n- False: The API will block until query completes and results are ready to be returned."
                      },
                      "limit": {
                        "type": "integer",
                        "description": "Integer representing the maximum number of results to return.\nIf the 'limit' is not specified or if 'limit' is greater than 1000 and the query yields more than 1000 valid results, a `stream id` will be generated for use in the *Get XQL query results Stream** API.\nIn the context of multi-tenant investigations, when you specify the parameter value (x),\nit will return x results across all tenants combined, rather than x results for each individual tenant.\nFor example, if there are y tenants participating in the investigation, the maximum number of results returned can be x*y (up to the limit of 1,000,000)."
                      },
                      "format": {
                        "type": "string",
                        "enum": [
                          "json",
                          "csv"
                        ],
                        "description": "The type of response output."
                      }
                    },
                    "required": [
                      "query_id"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "example": {
                  "request_data": {
                    "query_id": "061880b4867446_4356_inv",
                    "pending_flag": true,
                    "limit": 100,
                    "format": "json"
                  }
                }
              },
              "examples": {
                "default": {
                  "value": {
                    "request_data": {
                      "query_id": "061880b4867446_4356_inv",
                      "pending_flag": true,
                      "limit": 100,
                      "format": "json"
                    }
                  }
                },
                "example-1": {
                  "value": {
                    "request_data": {
                      "query_id": "061880b4867446_4356_inv",
                      "pending_flag": true,
                      "limit": 100,
                      "format": "json"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string"
                        },
                        "number_of_results": {
                          "type": "integer"
                        },
                        "query_cost": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "number"
                          }
                        },
                        "remaining_quota": {
                          "type": "number"
                        },
                        "results": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "event_id": {
                                    "type": "string"
                                  },
                                  "agent_version": {
                                    "type": "string"
                                  },
                                  "_product": {
                                    "type": "string"
                                  },
                                  "_time": {
                                    "type": "integer"
                                  },
                                  "_vendor": {
                                    "type": "string"
                                  },
                                  "insert_timestamp": {
                                    "type": "integer"
                                  },
                                  "agent_os_type": {
                                    "type": "string"
                                  },
                                  "event_type": {
                                    "type": "string"
                                  },
                                  "event_sub_type": {
                                    "type": "string"
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "status": "SUCCESS",
                        "number_of_results": 1,
                        "query_cost": {
                          "9995067425505": 0.01298138888888889
                        },
                        "remaining_quota": 4.969819444444444,
                        "results": {
                          "data": [
                            {
                              "event_id": "MTQ5MDE0OTI5NjE2NDY2NTI3NA==",
                              "agent_version": "7.7.0.60725",
                              "_product": "Fusion",
                              "_time": 1690877704746,
                              "_vendor": "PANW",
                              "insert_timestamp": 1690877878272,
                              "agent_os_type": "AGENT_OS_WINDOWS",
                              "event_type": "STORY",
                              "event_sub_type": "event_sub_type_4"
                            }
                          ]
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "pending_flag=true": {
                    "value": {
                      "reply": {
                        "status": "PENDING"
                      }
                    }
                  },
                  "Up to 1,000 results, JSON format, Single Tenant Investigation": {
                    "value": {
                      "reply": {
                        "status": "SUCCESS",
                        "number_of_results": 3,
                        "query_cost": {
                          "tenant_id_1": 0.001596388888888889
                        },
                        "remaining_quota": 4.998403611111111,
                        "results": {
                          "data": [
                            {
                              "event_id": "eventID1",
                              "_vendor": "PANW",
                              "_product": "Fusion",
                              "insert_timestamp": 1621541825324,
                              "_time": 1621541523000,
                              "event_type": "STORY",
                              "event_sub_type": "NULL"
                            },
                            {
                              "event_id": "eventID2",
                              "_vendor": "PANW",
                              "_product": "Fusion",
                              "insert_timestamp": 1621541825326,
                              "_time": 1621541528000,
                              "event_type": "STORY",
                              "event_sub_type": "NULL"
                            },
                            {
                              "event_id": "eventID3",
                              "_vendor": "PANW",
                              "_product": "Fusion",
                              "insert_timestamp": 1621541825325,
                              "_time": 1621541517000,
                              "event_type": "STORY",
                              "event_sub_type": "NULL"
                            }
                          ]
                        }
                      }
                    }
                  },
                  "Up to 1,000 results, JSON format, Multi Tenant Investigation": {
                    "value": {
                      "reply": {
                        "status": "SUCCESS",
                        "number_of_results": 6,
                        "query_cost": {
                          "tenant_id_1": 0.001596388888888889,
                          "tenant_id_2": 0.00179989
                        },
                        "remaining_quota": 4.995007332222222,
                        "results": {
                          "data": [
                            {
                              "event_id": "eventID1",
                              "_vendor": "PANW",
                              "_product": "Fusion",
                              "insert_timestamp": 1621541825324,
                              "_time": 1621541523000,
                              "event_type": "STORY",
                              "event_sub_type": "NULL"
                            },
                            {
                              "event_id": "eventID2",
                              "_vendor": "PANW",
                              "_product": "Fusion",
                              "insert_timestamp": 1621541825326,
                              "_time": 1621541528000,
                              "event_type": "STORY",
                              "event_sub_type": "NULL"
                            },
                            {
                              "event_id": "eventID3",
                              "_vendor": "PANW",
                              "_product": "Fusion",
                              "insert_timestamp": 1621541825325,
                              "_time": 1621541517000,
                              "event_type": "STORY",
                              "event_sub_type": "NULL"
                            },
                            {
                              "event_id": "eventID4",
                              "_vendor": "PANW",
                              "_product": "Fusion",
                              "insert_timestamp": 1621541825324,
                              "_time": 1621541523000,
                              "event_type": "STORY",
                              "event_sub_type": "NULL"
                            },
                            {
                              "event_id": "eventID5",
                              "_vendor": "PANW",
                              "_product": "Fusion",
                              "insert_timestamp": 1621541825326,
                              "_time": 1621541528000,
                              "event_type": "STORY",
                              "event_sub_type": "NULL"
                            },
                            {
                              "event_id": "eventID6",
                              "_vendor": "PANW",
                              "_product": "Fusion",
                              "insert_timestamp": 1621541825325,
                              "_time": 1621541517000,
                              "event_type": "STORY",
                              "event_sub_type": "NULL"
                            }
                          ]
                        }
                      }
                    }
                  },
                  "More than 1,000 results": {
                    "value": {
                      "reply": {
                        "status": "SUCCESS",
                        "number_of_results": 1000000,
                        "query_cost": {
                          "tenant_id_1": 0.011742777777777777
                        },
                        "remaining_quota": 4.984442777777778,
                        "results": {
                          "stream_id": "streamID"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/xql/get_quota": {
      "post": {
        "tags": [
          "XQL query"
        ],
        "summary": "Get XQL query Quota",
        "description": "Retrieve the amount of query quota available and used. \n\nNote: This endpoint only works on XQL queries initiated by `/public_api/v1/xql/start_xql_query/`.\n\nFor more information on how to run XQL queries, see [Run XQL Query APIs](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/run-xql-query-apis).\n\n<!-- theme: info -->\n\n> #### Note\n>\n> To ensure you don't surpass your quota, Cortex allows you to run up to four API queries in parallel.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "postGetQuota",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "example": {
                  "request_data": {}
                }
              },
              "examples": {
                "default": {
                  "value": {
                    "request_data": {}
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "license_quota": {
                          "type": "integer"
                        },
                        "additional_purchased_quota": {
                          "type": "integer"
                        },
                        "used_quota": {
                          "type": "number"
                        },
                        "eval_quota": {
                          "type": "integer"
                        },
                        "total_daily_running_queries": {
                          "type": "integer",
                          "description": "The number of daily active queries. This value is reset nightly."
                        },
                        "total_daily_concurrent_rejected_queries": {
                          "type": "integer",
                          "description": "The number of daily queries rejected due to too many concurrent XQL queries being run through the API.  This value is reset nightly."
                        },
                        "current_concurrent_active_queries": {
                          "type": "object",
                          "description": "Currently running XQL queries with their current duration.",
                          "additionalProperties": {
                            "type": "string"
                          }
                        },
                        "current_concurrent_active_queries_count": {
                          "type": "integer",
                          "description": "The number of active queries currently running."
                        },
                        "max_daily_concurrent_active_query_count": {
                          "type": "integer",
                          "description": "The maximum number of queries that ran concurrently today on this tenant.  This value is reset nightly."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "license_quota": 5,
                        "additional_purchased_quota": 0,
                        "used_quota": 0.07041027777777777,
                        "eval_quota": 0
                      }
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "reply": {
                        "license_quota": 5,
                        "additional_purchased_quota": 0,
                        "used_quota": 0,
                        "eval_quota": 0,
                        "total_daily_running_queries": 4,
                        "total_daily_concurrent_rejected_queries": 8,
                        "current_concurrent_active_queries": {
                          "debee6b0c41f47_911_inv": {
                            "xql": "config timeframe = 1mo | dataset=xdr_data | limit 1000000",
                            "duration": 61
                          }
                        },
                        "current_concurrent_active_queries_count": 1,
                        "max_daily_concurrent_active_query_count": 4
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "err_code": {
                          "type": "integer"
                        },
                        "err_msg": {
                          "type": "string"
                        },
                        "err_extra": {
                          "type": "object",
                          "properties": {
                            "err_msg": {
                              "type": "string"
                            },
                            "query_cost": {
                              "type": "integer"
                            },
                            "remaining_quota": {
                              "type": "integer"
                            },
                            "total_daily_running_queries": {
                              "type": "integer"
                            },
                            "total_daily_concurrent_rejected_queries": {
                              "type": "integer"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "err_code": 500,
                        "err_msg": "An error occurred while processing XDR - XQL query",
                        "err_extra": {
                          "err_msg": "reached max allowed amount of parallel running queries. please wait for some queries to finish and submit your query again",
                          "query_cost": 0,
                          "remaining_quota": 5,
                          "total_daily_running_queries": 4,
                          "total_daily_concurrent_rejected_queries": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "err_code": 500,
                        "err_msg": "An error occurred while processing XDR - XQL query",
                        "err_extra": {
                          "err_msg": "reached max allowed amount of parallel running queries. please wait for some queries to finish and submit your query again",
                          "query_cost": 0,
                          "remaining_quota": 5,
                          "total_daily_running_queries": 4,
                          "total_daily_concurrent_rejected_queries": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/xql/get_query_results_stream": {
      "post": {
        "tags": [
          "XQL query"
        ],
        "summary": "Get XQL query results Stream",
        "description": "Retrieve XQL query results with more than 1000 results. \n\nNote: This endpoint only works on XQL queries initiated by `/public_api/v1/xql/start_xql_query/`.\n\nResponse is returned as chunked (Transfer-Encoding: chunked). To retrieve a compressed gzipped response (Content-Encoding: gzip), in your header add Accept-Encoding: gzip.\n\nFor more information on how to run XQL queries, see [Run XQL Query APIs](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/run-xql-query-apis).\n\n<!-- theme: info -->\n\n> #### Note\n>\n> To ensure you don't surpass your quota, Cortex allows you to run up to four API queries in parallel.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "postGetQueryResultsStream",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept-Encoding",
            "in": "header",
            "description": "For retrieving a compressed gzipped response",
            "schema": {
              "type": "string",
              "default": "gzip"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "stream_id": {
                        "type": "string",
                        "description": "String representing the unique ID generate by the response to [Get XQL query results](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/xql-query#post-public_api-v1-xql-get_query_results) API."
                      },
                      "is_gzip_compressed": {
                        "type": "boolean",
                        "description": "A boolean flag."
                      }
                    },
                    "required": [
                      "stream_id"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "example": {
                  "request_data": {
                    "stream_id": "563c5e24-===-9a1f8139d3c5",
                    "is_gzip_compressed": true
                  }
                }
              },
              "examples": {
                "default": {
                  "value": {
                    "request_data": {
                      "stream_id": "563c5e24-===-9a1f8139d3c5",
                      "is_gzip_compressed": true
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {}
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/distributions/get_versions": {
      "post": {
        "tags": [
          "Endpoint Management"
        ],
        "summary": "Get Distribution version",
        "description": "Get a list of all the agent versions to use for creating a distribution list.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "postGetVersions",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "windows": {
                          "type": "array",
                          "description": "List of Windows agent versions.",
                          "items": {
                            "type": "string"
                          }
                        },
                        "linux": {
                          "type": "array",
                          "description": "List of Linux agent versions.",
                          "items": {
                            "type": "string"
                          }
                        },
                        "macos": {
                          "type": "array",
                          "description": "List of Mac agent versions.",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "windows": [
                          "<version1>",
                          "<version2>",
                          "<version3>",
                          "<version4>"
                        ],
                        "linux": [
                          "<version1>",
                          "<version2>",
                          "<version3>",
                          "<version4>"
                        ],
                        "macos": [
                          "<version1>",
                          "<version2>",
                          "<version3>"
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/endpoints/get_endpoints": {
      "post": {
        "tags": [
          "Endpoint Management"
        ],
        "summary": "Get all Endpoints",
        "description": "Gets a list of all of your endpoints. The response is concatenated using AND condition (OR is not supported).\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postGetEndpoints",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "agent_id": {
                            "type": "string"
                          },
                          "agent_status": {
                            "type": "string"
                          },
                          "operational_status": {
                            "type": "string"
                          },
                          "host_name": {
                            "type": "string"
                          },
                          "agent_type": {
                            "type": "string"
                          },
                          "ip": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "last_seen": {
                            "type": "integer"
                          },
                          "tags": {
                            "type": "object",
                            "properties": {
                              "server_tags": {
                                "type": "array",
                                "items": {
                                  "type": "object"
                                }
                              },
                              "endpoint_tags": {
                                "type": "array",
                                "items": {
                                  "type": "object"
                                }
                              }
                            }
                          },
                          "users": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": [
                        {
                          "agent_id": "<agent_id>",
                          "agent_status": "DISCONNECTED",
                          "operational_status": "PROTECTED",
                          "host_name": "<hostname>",
                          "agent_type": "Workstation",
                          "ip": [
                            "<ip_address>"
                          ],
                          "last_seen": 1678012587521,
                          "tags": {
                            "server_tags": [],
                            "endpoint_tags": []
                          },
                          "users": [
                            "user"
                          ]
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "reply": [
                        {
                          "agent_id": "<agent_id>",
                          "agent_status": "DISCONNECTED",
                          "operational_status": "PROTECTED",
                          "host_name": "<hostname>",
                          "agent_type": "Workstation",
                          "ip": [
                            "<ip_address>"
                          ],
                          "last_seen": 1678012587521,
                          "tags": {
                            "server_tags": [],
                            "endpoint_tags": []
                          },
                          "users": [
                            "user"
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/endpoints/get_policy": {
      "post": {
        "tags": [
          "Endpoint Management"
        ],
        "summary": "Get Policy",
        "description": "Get the policy name for a specific endpoint.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postGetPolicy",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "endpoint_id": {
                        "type": "string",
                        "description": "Endpoint ID."
                      }
                    },
                    "required": [
                      "endpoint_id"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "endpoint_id": "<endpoint ID>"
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "endpoint_id": "<endpoint ID>"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "policy_name": {
                          "type": "string",
                          "description": "Name of the policy allocated with the endpoint."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "policy_name": "Windows Default"
                      }
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "reply": {
                        "policy_name": "Windows Default"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/endpoints/delete": {
      "post": {
        "tags": [
          "Endpoint Management"
        ],
        "summary": "Delete Endpoints",
        "description": "Delete the selected endpoints. You can delete up to 1000 endpoints.\n\nNote: Endpoints are deleted from Cortex UI, however they still exist in the database.\n\nWhen filtering by multiple fields:\n- Response is concatenated using AND condition (OR is not supported).\n- Maximum result set size is 1000.\n- Offset is the zero-based number of cases from the start of the result set.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postDelete",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "Array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "description": "String that identifies a list the filters match. Filters are based on the following keywords:\n- `endpoint_id_list`: List of endpoint IDs."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "in"
                              ],
                              "description": "String that identifies the comparison operator you want to use for this filter. Valid keywords and values are:\n`in`\n- `endpoint_id_list`: List of strings"
                            },
                            "value": {
                              "type": "array",
                              "description": "Value that this filter must match. Valid keywords:\n- `endpoint_id_list`: List of strings",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ]
                        }
                      }
                    }
                  }
                },
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<endpoint ID>"
                          ]
                        }
                      ]
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<endpoint ID>"
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {}
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/distributions/create": {
      "post": {
        "operationId": "postCreate",
        "summary": "Create distributions",
        "description": "Create an installation package. This is an async call that returns the distribution ID; it does not mean that the creation succeeded. To confirm the package has been created, check the status of the distribution by running the **Get Distribution Status** API.\r\n\r\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "name": "<installation package name>",
                      "platform": "windows",
                      "package_type": "standalone",
                      "agent_version": "<agent version>"
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "required": [
                      "name",
                      "package_type",
                      "agent_version",
                      "deployment_platform",
                      "default_namespace",
                      "run_on_master_node",
                      "run_on_all_nodes"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "The name of the installation package."
                      },
                      "platform": {
                        "type": "string",
                        "description": "The installation platform.",
                        "enum": [
                          "windows",
                          "linux",
                          "macos",
                          "android",
                          "serverless"
                        ]
                      },
                      "package_type": {
                        "type": "string",
                        "description": "A string representing the type of package to create. Each JSON object must contain *one* of the following keywords:\n- `standalone`: Installation for a new agent. When using this, you must include the `platform` field with one of the following values: `windows`, `linux`, `macos`, `android`, `kubernetes`, `helm`.\n- `upgrade`: Upgrade of an agent from ESM. When using this, you must include the `agent_version` field with  one of the following values: `windows_version`, `linux_version`, or `macos_version`.\n- `serverless`: Create a serverless distribution. When using this, you must include the `yaml_preferences` field with the following properties: `runtime` (Node.js or python), `deployment_type` (embedded or layers), `cloud_provider` (aws), and `restrictions_profile` (Serverless restrictions profile ID).\n- `caas_embedded`: Container-embedded XDR agent installation using the CaaS Generic Installer (Linux dockerfile-based deployment)."
                      },
                      "agent_version": {
                        "type": "string",
                        "description": "Use `agent_version` when creating a standalone installer. The value should be the agent version number.\n"
                      },
                      "windows_version": {
                        "type": "string",
                        "description": "Use `windows_version` when creating an upgrade package. The value is the relevant version number."
                      },
                      "linux_version": {
                        "type": "string",
                        "description": "Use `linux_version` when creating an upgrade package. The value is the relevant version number."
                      },
                      "macos_version": {
                        "type": "string",
                        "description": "Use `macos_version` when creating an upgrade package. The value is the relevant version number."
                      },
                      "deployment_platform": {
                        "type": "string",
                        "description": "When the `package_type` is `kubernetes` or `helm`, use the `deployment_platform` to indicate the type of platform. Valid values include:\n- `standard`\n- `openshift`\n- `gcos`\n- `bottlerocket`\n- `gke_autopilot`"
                      },
                      "default_namespace": {
                        "type": "string",
                        "description": "The default namespace"
                      },
                      "node_selector": {
                        "type": "object",
                        "description": "The node selector in the following format:\n`\"node_selector\": {\"key\": \"val\"}'",
                        "additionalProperties": {}
                      },
                      "proxy": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "cluster_name": {
                        "type": "string",
                        "description": "Cluster name"
                      },
                      "run_on_master_node": {
                        "type": "boolean",
                        "description": "Whether or not to run on the master node."
                      },
                      "run_on_all_nodes": {
                        "type": "boolean",
                        "description": "Whether or not to run on all nodes."
                      },
                      "description": {
                        "type": "string",
                        "description": "A description for the distribution package."
                      },
                      "endpoint_tags": {
                        "type": "array",
                        "description": "List of endpoint tags to associate with the distribution package. Tags must already exist in the system.",
                        "items": {
                          "type": "string"
                        }
                      },
                      "yaml_preferences": {
                        "type": "object",
                        "description": "Configuration for serverless distributions.",
                        "properties": {
                          "runtime": {
                            "type": "string",
                            "enum": [
                              "Node.js",
                              "python"
                            ],
                            "description": "The runtime environment for the serverless function."
                          },
                          "deployment_type": {
                            "type": "string",
                            "enum": [
                              "embedded",
                              "layers"
                            ],
                            "description": "The deploy method used for the serverless agent."
                          },
                          "cloud_provider": {
                            "type": "string",
                            "enum": [
                              "aws"
                            ],
                            "description": "The cloud service provider hosting the serverless function. Currently only AWS is supported."
                          },
                          "restrictions_profile": {
                            "type": "string",
                            "description": "The serverless restrictions profile ID."
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "New Installation example": {
                  "value": {
                    "request_data": {
                      "name": "<installation package name>",
                      "package_type": "upgrade",
                      "agent_version": "windows_version",
                      "deployment_platform": "standard",
                      "default_namespace": "cortex-xdr",
                      "run_on_master_node": true,
                      "run_on_all_nodes": false,
                      "endpoint_tags": [
                        "Administrator",
                        "DevTeam"
                      ],
                      "description": "Created using Public APIs"
                    }
                  }
                },
                "Upgrade example": {
                  "value": {
                    "request_data": {
                      "name": "Upgrade package",
                      "package_type": "upgrade",
                      "agent_version": "windows_version",
                      "deployment_platform": "standard",
                      "default_namespace": "cortex-xdr",
                      "run_on_master_node": true,
                      "run_on_all_nodes": false,
                      "endpoint_tags": [
                        "Administrator",
                        "DevTeam"
                      ],
                      "description": "Created using Public APIs"
                    }
                  }
                },
                "Kubernetes distribution": {
                  "value": {
                    "request_data": {
                      "name": "PAPI Dist K8s",
                      "description": "Created using PAPI",
                      "endpoint_tags": [
                        "new-tag"
                      ],
                      "package_type": "kubernetes",
                      "platform": "linux",
                      "agent_version": "8.8.0.10594",
                      "deployment_platform": "standard",
                      "default_namespace": "cortex-xdr",
                      "node_selector": {
                        "key": "val"
                      },
                      "proxy": [
                        "10.10.10.1:8080"
                      ],
                      "cluster_name": "some_name",
                      "run_on_master_node": true,
                      "run_on_all_nodes": false
                    }
                  }
                },
                "Serverless distribution": {
                  "value": {
                    "request_data": {
                      "name": "Serverless distribution",
                      "package_type": "serverless",
                      "description": "Description",
                      "agent_version": "{version}",
                      "platform": "serverless",
                      "deployment_platform": "standard",
                      "default_namespace": "cortex-xdr",
                      "run_on_master_node": false,
                      "run_on_all_nodes": false,
                      "yaml_preferences": {
                        "runtime": "Node.js",
                        "deployment_type": "embedded",
                        "cloud_provider": "aws",
                        "restrictions_profile": "28"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "distribution_id": "<distribution ID value>"
                      }
                    }
                  },
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "distribution_id": {
                          "type": "string",
                          "description": "Installation package ID."
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "tags": [
          "Endpoint Management"
        ]
      }
    },
    "/public_api/v1/distributions/get_distributions": {
      "post": {
        "summary": "Get Distributions",
        "description": "Retrieves a paginated list of existing agent installations and metadata based on optional filters and sorting criteria.\n\nThis endpoint allows you to:\n\n- Retrieve existing agent installations or filter by specific criteria\n- Paginate through large result sets\n- Sort results by any field in ascending or descending order\n- Get total count and filtered count of agent installations\n",
        "operationId": "get_distributions",
        "tags": [
          "Endpoint Management"
        ],
        "requestBody": {
          "required": true,
          "description": "Request body containing pagination, sorting, and filtering criteria for agent distributions",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "search_from": 0,
                      "search_to": 5,
                      "sort": {
                        "field": "distribution_id",
                        "keyword": "asc"
                      },
                      "filters": [
                        {
                          "field": "distribution_id",
                          "operator": "eq",
                          "value": "068bcaad02974ac5b223bfa786e7573c"
                        },
                        {
                          "field": "name",
                          "operator": "contains",
                          "value": "macos-369121"
                        },
                        {
                          "field": "description",
                          "operator": "contains",
                          "value": "macos-369121"
                        },
                        {
                          "field": "package_type",
                          "operator": "eq",
                          "value": "standalone"
                        },
                        {
                          "field": "package_type",
                          "operator": "eq",
                          "value": "standalone"
                        },
                        {
                          "field": "platform",
                          "operator": "eq",
                          "value": "macos"
                        },
                        {
                          "field": "agent_version",
                          "operator": "contains",
                          "value": "9.1."
                        },
                        {
                          "field": "status",
                          "operator": "eq",
                          "value": "completed"
                        }
                      ]
                    }
                  }
                },
                "properties": {
                  "request_data": {
                    "$ref": "#/components/schemas/GetDataRequest"
                  }
                }
              },
              "examples": {
                "Sorting and all filter options": {
                  "value": {
                    "request_data": {
                      "search_from": 0,
                      "search_to": 5,
                      "sort": {
                        "field": "distribution_id",
                        "keyword": "asc"
                      },
                      "filters": [
                        {
                          "field": "distribution_id",
                          "operator": "eq",
                          "value": "068bcaad02974ac5b223bfa786e7573c"
                        },
                        {
                          "field": "name",
                          "operator": "contains",
                          "value": "macos-369121"
                        },
                        {
                          "field": "description",
                          "operator": "contains",
                          "value": "Production-ready macos agent installer with enhanced monitoring capabilities"
                        },
                        {
                          "field": "package_type",
                          "operator": "eq",
                          "value": "standalone"
                        },
                        {
                          "field": "platform",
                          "operator": "eq",
                          "value": "macos"
                        },
                        {
                          "field": "agent_version",
                          "operator": "contains",
                          "value": "9.1."
                        },
                        {
                          "field": "status",
                          "operator": "eq",
                          "value": "completed"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response containing the list of distributions matching the criteria",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicGetDataResponse"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "data": [
                          {
                            "distribution_id": "068bcaad02974ac5b223bfa786e7573c",
                            "name": "macos-369121",
                            "description": "Production-ready macos agent installer with enhanced monitoring capabilities",
                            "package_type": "standalone",
                            "platform": "macos",
                            "agent_version": "9.1.0.9877",
                            "status": "completed",
                            "tags": [
                              "production",
                              "stable"
                            ],
                            "eol_time": 1735689600,
                            "created_by": "John Doe",
                            "creation_time": 1704067200,
                            "modification_time": 1704153600,
                            "supported_packages": [
                              "pkg"
                            ]
                          }
                        ],
                        "filter_count": 1,
                        "total_count": 10
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Invalid request parameters or malformed JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "err_code": 400,
                        "err_msg": "Got an invalid input while processing XDR public API",
                        "err_extra": "search_from: Input should be greater than or equal to 0"
                      }
                    }
                  },
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "err_code": {
                          "type": "integer",
                          "description": "Numeric error code returned by the API."
                        },
                        "err_msg": {
                          "type": "string",
                          "description": "Human-readable summary of the error."
                        },
                        "err_extra": {
                          "type": "string",
                          "description": "Detailed description of the error, including the cause and how to resolve it when applicable."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "summary": "Invalid pagination parameters",
                    "value": {
                      "reply": {
                        "err_code": 400,
                        "err_msg": "Got an invalid input while processing XDR public API",
                        "err_extra": "Unsupported operator 'contains' for field platform"
                      }
                    }
                  },
                  "Example 2": {
                    "value": {
                      "reply": {
                        "err_code": 400,
                        "err_msg": "Got an invalid input while processing XDR public API.",
                        "err_extra": "Search size must fulfill the requirement: 0 < search_size <= 100"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error - An unexpected error occurred on the server",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "err_code": 500,
                        "err_msg": "An unexpected error occurred by XDR public API",
                        "err_extra": "Invalid value 'serverless_functions' for field platform"
                      }
                    }
                  },
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "err_code": {
                          "type": "integer",
                          "description": "Numeric error code returned by the API."
                        },
                        "err_msg": {
                          "type": "string",
                          "description": "Human-readable summary of the error."
                        },
                        "err_extra": {
                          "type": "string",
                          "description": "Detailed description of the error, including the cause and how to resolve it when applicable."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "summary": "Internal server error",
                    "value": {
                      "reply": {
                        "err_code": 500,
                        "err_msg": "An unexpected error occurred by XDR public API",
                        "err_extra": "Invalid value 'serverless_functions' for field platform"
                      }
                    }
                  },
                  "Example 2": {
                    "value": {
                      "reply": {
                        "err_code": 500,
                        "err_msg": "Got an invalid input while processing XDR public API",
                        "err_extra": "Invalid parameter names: creation_time"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "example": "UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP"
            },
            "in": "header",
            "required": true,
            "name": "Authorization",
            "description": "{api_key}"
          },
          {
            "schema": {
              "type": "string",
              "example": "241"
            },
            "in": "header",
            "required": true,
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}"
          }
        ]
      }
    },
    "/public_api/v1/device_control/get_violations": {
      "post": {
        "tags": [
          "Endpoint Management"
        ],
        "summary": "Get Violations",
        "description": "Gets a list of device control violations filtered by selected fields. You can retrieve up to 100 violations.\n\nWhen filtering by multiple fields:\n- Response is concatenated using AND condition (OR is not supported).\n- Maximum result set size is 100.\n- Offset is the zero-based number of cases from the start of the result set.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postGetViolations",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "You can send a request to retrieve either *all* or *filtered* results.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "An empty object returns all results.",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "Provides an array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "endpoint_id_list",
                                "type",
                                "timestamp",
                                "ip_list",
                                "vendor",
                                "vendor_id",
                                "product",
                                "product_id",
                                "serial",
                                "hostname",
                                "violation_id_list",
                                "username"
                              ],
                              "description": "String that identifies the violation field the filter is matching. Filters are based on the following keywords:\n- `endpoint_id_list`: List of endpoint IDs.\n- `type`: Type of violation.\n- `timestamp`: Timestamp of the violation.\n- `ip_list`: List of IP addresses.\n- `vendor`: Name of vendor.\n- `vendor_id`: Vendor ID.\n- `product`: Name of product.\n- `product_id`: Product ID.\n- `serial`: Serial number.\n- `hostname`: Hostname.\n- `violation_id_list`: List of violation IDs.\n- `username`: Username."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "in",
                                "gte",
                                "lte"
                              ],
                              "description": "String that identifies the comparison operator you want to use for this filter. Valid keywords are:\n`in`\n— Permitted for all fields except `timestamp`.\n`gte` / `lte`\n— Permitted only for `timestamp`."
                            },
                            "value": {
                              "description": "Value that this filter must match. The contents of this field will differ depending on the violation field that you specified for this filter:\n- `timestamp`: Integer, in UTC timezone epoch milliseconds\n- `violation_id_list`: List of integers\n- `ip_list`: Must contain an IP string\n- `type`: Must be either `cd-rom`, `disk drive`, `floppy disk`, `portable device`\n- All other fields need to be list of strings.",
                              "oneOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "oneOf": [
                                      {
                                        "type": "integer"
                                      },
                                      {
                                        "type": "string"
                                      }
                                    ]
                                  }
                                },
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ]
                        }
                      },
                      "search_from": {
                        "type": "integer",
                        "description": "Integer representing the starting offset within the query result set from which you want violations returned.\nViolations are returned as a zero-based list. Any violation indexed less than this value is not returned in the final result set and defaults to zero."
                      },
                      "search_to": {
                        "type": "integer",
                        "description": "An integer representing the end of offset within the result set after which you do not want violations returned.\nViolations in the violation list that are indexed higher than this value are not returned in the final results set. Defaults to zero, which returns all alerts to the end of the list."
                      },
                      "sort": {
                        "type": "object",
                        "description": "Identifies the sort order for the result set.",
                        "properties": {
                          "field": {
                            "type": "string",
                            "enum": [
                              "endpoint_id_list",
                              "type",
                              "timestamp",
                              "ip_list",
                              "vendor",
                              "vendor_id",
                              "product",
                              "product_id",
                              "serial",
                              "hostname",
                              "violation_id_list",
                              "username"
                            ],
                            "description": "The field you want to sort by."
                          },
                          "value": {
                            "type": "string",
                            "enum": [
                              "asc",
                              "desc"
                            ],
                            "description": "Can be either `asc` (ascending) or `desc` (descending).",
                            "default": "desc"
                          }
                        },
                        "required": [
                          "field",
                          "value"
                        ]
                      }
                    }
                  }
                },
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "type",
                          "operator": "in",
                          "value": [
                            "disk drivE"
                          ]
                        }
                      ],
                      "search_to": 1
                    }
                  }
                }
              },
              "examples": {
                "Request all results": {
                  "value": {
                    "request_data": {}
                  }
                },
                "Request filtered results": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "type",
                          "operator": "in",
                          "value": [
                            "disk drive"
                          ]
                        }
                      ],
                      "search_to": 1
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "total_count": {
                          "type": "integer",
                          "description": "Number of total results of this filter without paging."
                        },
                        "result_count": {
                          "type": "integer",
                          "description": "Number of alerts actually returned as a result."
                        },
                        "violations": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/violation"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "total_count": 10,
                        "result_count": 1,
                        "violations": [
                          {
                            "hostname": "<host name>",
                            "username": "test",
                            "ip": "<IP address>",
                            "timestamp": 1576260019000,
                            "violation_id": 11,
                            "type": "Disk Drive",
                            "vendor_id": "<vendor ID>",
                            "vendor": "<vendor name>",
                            "product_id": "<product ID>",
                            "product": "<product name>",
                            "serial": "<serial number>",
                            "endpoint_id": "<endpoint ID>"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/distributions/get_status": {
      "post": {
        "tags": [
          "Endpoint Management"
        ],
        "summary": "Get Distribution status",
        "description": "Check the status of the installation package.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postGetStatus",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "distribution_id": {
                        "type": "string",
                        "description": "The installation package ID."
                      }
                    },
                    "required": [
                      "distribution_id"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "distribution_id": "<distribution ID>"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "description": "The status of the installation package."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "status": "Completed"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/distributions/get_dist_url": {
      "post": {
        "tags": [
          "Endpoint Management"
        ],
        "summary": "Get Distribution URL",
        "description": "Get the distribution URL for downloading the installation package.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postGetDistUrl",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "distribution_id": {
                        "type": "string",
                        "description": "Installation package ID."
                      },
                      "package_type": {
                        "type": "string",
                        "description": "A string representing the type of installation package. Select *one* of the following valid keywords and values:\n- `upgrade`\nPackage type should match the distribution type or platform:\n- `sh`: x86_64 Linux SH installer\n- `rpm`: x86_64 Linux RPM installer\n- `deb`: x86_64 Linux DEB installer\n- `aarch64_sh`: aarch64 Linux SH installer\n- `aarch64_rpm`: aarch64 Linux RPM installer\n- `aarch64_deb`: aarch64 Linux DEB installer\n- `pkg`: Mac\n- `x86`: Windows\n- `x64`: Windows\n- `arm`: Windows ARM64"
                      }
                    },
                    "required": [
                      "distribution_id",
                      "package_type"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "distribution_id": "<distribution ID>",
                      "package_type": "x86"
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "distribution_id": "<distribution ID>",
                      "package_type": "x86"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "distribution_url": {
                          "type": "string",
                          "description": "URL for downloading the installation package."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "distribution_url": "<DOWNLOAD_URL>"
                      }
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "reply": {
                        "distribution_url": "<DOWNLOAD_URL>"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/endpoints/update_agent_name": {
      "post": {
        "tags": [
          "Endpoint Management"
        ],
        "summary": "Set an Endpoint Alias",
        "description": "Set or modify an Alias field for your endpoints.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postUpdateAgentName",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "endpoint_id_list",
                                "endpoint_status",
                                "dist_name",
                                "ip_list",
                                "group_name",
                                "platform",
                                "alias",
                                "isolate",
                                "hostname",
                                "cloud_provider",
                                "cloud_region",
                                "cloud_provider_account_id",
                                "cloud_instance_id",
                                "cloud_id"
                              ],
                              "description": "String that identifies the field the filter is matching. Filters are based on the following keywords:\n- `endpoint_id_list`: List of endpoint IDs.\n- `endpoint_status`: Status of the endpoint ID.\n- `dist_name`: Distribution / Installation Package name.\n- `ip_list`: List of IP addresses.\n- `group_name`: Group name the agent belongs to.\n- `platform`: Platform name.\n- `alias`: Alias name.\n- `isolate`: If the endpoint was isolated.\n- `hostname`: Hostname.\n- `cloud_provider`: Cloud provider (for example, AWS, GCP, Azure).\n- `cloud_region`: Cloud region where the endpoint is deployed.\n- `cloud_provider_account_id`: Cloud provider account ID.\n- `cloud_instance_id`: Cloud instance ID of the endpoint.\n- `cloud_id`: Cloud ID of the endpoint."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "in",
                                "gte",
                                "lte"
                              ],
                              "description": "String that identifies the comparison operator you want to use for this filter. Valid keywords and values are:\n`in`\n- `endpoint_id_list`, `dist_name`, `group_name`, `alias`, `hostname`, `username`: List of strings.\n- `endpoint_status`: Permitted values are `connected` or `disconnected`\n- `ip_list`: List of strings, for example 192.168.5.12.\n- `platform`: Permitted values are `windows`, `linux`, `macos`, or `android`\n- `isolate`: Permitted values are `isolated` or `unisolated`.\n- `scan_status`: Permitted values are `none`, `pending`, `in_progress`, `canceled`, `aborted`, `pending_cancellation`, `success`, or `error`.\n`gte` / `lte`\n- `first_seen` and `last_seen`: Integer in timestamp epoch milliseconds.\n- `cloud_provider`, `cloud_region`, `cloud_provider_account_id`, `cloud_instance_id`, `cloud_id`: List of strings."
                            },
                            "value": {
                              "description": "Value that this filter must match. The contents of this field will differ depending on the endpoint field that you specified for this filter:\n- `endpoint_id_list`, `dist_name`, `hostname`, `alias`, `group_name`: List of strings.\n- `endpoint_status`: Must contain only the following valid values: `connected` or `disconnected`\n- `ip_list`: String list of IP addresses.\n- `platform`: Must contain only the following valid values: `windows`, `linux`, `macos`, or `android`.\n- `isolate`: Must contain only the following valid values: `isolated` or `unisolated`.\n- `cloud_provider`, `cloud_region`, `cloud_provider_account_id`, `cloud_instance_id`, `cloud_id`: List of strings.",
                              "oneOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ]
                        }
                      },
                      "alias": {
                        "type": "string",
                        "description": "The alias name you want to set or modify.\n\nNote: If you send an empty field, the current alias name is deleted."
                      }
                    }
                  }
                },
                "x-examples": {
                  "example-1": {
                    "context": {
                      "lcaas_id": "<tenant_id>"
                    },
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<distribution_id"
                          ]
                        }
                      ],
                      "alias": "<alias_name>"
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<distribution_id>"
                          ]
                        }
                      ],
                      "alias": "<alias_name>"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean",
                  "description": "true=The alias name was set or modified successfully."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/tags/agents/create": {
      "post": {
        "tags": [
          "Endpoint Management"
        ],
        "summary": "Create Tag",
        "description": "Create a new agent tag in the `endpoint_tags` family.\n\nThe tag name must be a string of no more than 64 characters and must not contain wildcard characters (for example, `*`). If a tag with the same name already exists, the request fails with a 409 error.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postCreateTag",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "tag": {
                        "type": "string",
                        "maxLength": 64,
                        "description": "The name of the tag to create. Maximum 64 characters. Wildcard characters (for example, `*`) are not allowed."
                      }
                    },
                    "required": [
                      "tag"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ]
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "tag": "my-tag"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "description": "Confirmation message, for example: \"Successfully created a new tag - my-tag\"."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. The tag is missing, not a string, exceeds 64 characters, or contains invalid characters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "409": {
            "description": "Conflict. A tag with the same name already exists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/tags/agents/assign": {
      "post": {
        "tags": [
          "Endpoint Management"
        ],
        "summary": "Assign Tags",
        "description": "Assign one or more tags to one or more endpoints.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postAssign",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "endpoint_id",
                                "endpoint_id_list",
                                "last_seen",
                                "first_seen",
                                "dist_name",
                                "ip_list",
                                "platform",
                                "alias",
                                "hostname",
                                "isolate",
                                "username",
                                "scan_status",
                                "group_name",
                                "endpoint_status",
                                "operational_status",
                                "public_ip_list",
                                "cloud_provider",
                                "cloud_region",
                                "cloud_provider_account_id",
                                "cloud_instance_id",
                                "cloud_id"
                              ],
                              "description": "String that identifies the field the filter is matching. Filters are based on the following keywords:\n- `endpoint_id_list`: List of endpoint IDs.\n- `last_seen`: When an endpoint was last seen.\n- `first_seen`: When an endpoint was first seen.\n- `dist_name`: Distribution / Installation Package name.\n- `ip_list`: List of IP addresses.\n- `platform`: Platform name.\n- `alias`: Alias name.\n- `hostname`: Hostname.\n- `isolate`: If the endpoint was isolated.\n- `username`: Name of user.\n- `scan_status`: Status of the scan.\n- `group_name`: Group name the agent belongs to.\n- `endpoint_status`: Status of the endpoint ID.\n- `operational_status`: Operational status.\n- `public_ip_list`: List of public IP addresses.\n- `cloud_provider`: Cloud provider (for example, AWS, GCP, Azure).\n- `cloud_region`: Cloud region where the endpoint is deployed.\n- `cloud_provider_account_id`: Cloud provider account ID.\n- `cloud_instance_id`: Cloud instance ID of the endpoint.\n- `cloud_id`: Cloud ID of the endpoint."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "in",
                                "gte",
                                "lte"
                              ],
                              "description": "String that identifies the comparison operator you want to use for this filter. Valid keywords and values are:\n`in`\n- `endpoint_id_list`, `dist_name`, `group_name`, `alias`, `hostname`, `username`, `operational_status`: List of strings.\n- `endpoint_status`: Permitted values are `connected`, `lost`, `disconnected`, `uninstalled`.\n- `ip_list`, `public_ip_list`: List of strings, for example \"192.168.5.12\".\n- `platform`: Permitted values are `windows`, `linux`, `macos`, `android`, `ios`.\n- `isolate`: Permitted values are `isolated` or `unisolated`.\n- `scan_status`: Permitted values are `none`, `pending`, `in_progress`, `canceled`, `aborted`, `pending_cancellation`, `success`, or `error`.\n- `operational_status`: Permitted values are `protected`, `partially_protected`, `unprotected`.\n`gte` / `lte`\n- `first_seen` and `last_seen`: Integer in timestamp epoch milliseconds.\n- `cloud_provider`, `cloud_region`, `cloud_provider_account_id`, `cloud_instance_id`, `cloud_id`: List of strings."
                            },
                            "value": {
                              "description": "Value that this filter must match. The contents of this field will differ depending on the endpoint field that you specified for this filter:\n- `endpoint_id_list`, `dist_name`, `group_name`, `alias`, `hostname`, `username`, `operational_status`: List of strings.\n- `endpoint_status`: Must contain only the following valid values: `connected`, `disconnected`, `lost`, or `uninstalled`.\n- `operational_status`: Must contain only the following valid values: `protected`, `partially_protected`, `unprotected`.\n- `ip_list`, `public_ip_list`: String list of IP addresses.\n- `platform`: Must contain only the following valid values: `windows`, `linux`, `macos`, `android`, or `ios`.\n- `isolate`: Must contain only the following valid values: `isolated` or `unisolated`.\n- `scan_status`: Must contain only the following valid values: `none`, `pending`, `in_progress`, `canceled`, `aborted`, `pending_cancellation`, `success`, or `error`.\n- `first_seen` and `last_seen`: Integer in timestamp epoch milliseconds.\n- `cloud_provider`, `cloud_region`, `cloud_provider_account_id`, `cloud_instance_id`, `cloud_id`: List of strings.",
                              "oneOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "integer"
                                }
                              ]
                            }
                          },
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ]
                        }
                      },
                      "tag": {
                        "type": "string",
                        "description": "The tag you want to assign."
                      }
                    }
                  }
                },
                "x-examples": {
                  "example-1": {
                    "context": {
                      "lcaas_id": "<tenant_id>"
                    },
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<distribution_id"
                          ]
                        }
                      ],
                      "tag": "<tag_name>"
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<distribution_id>"
                          ]
                        }
                      ],
                      "tag": "<tag_name>"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean",
                  "description": "true=The tag name was assigned successfully."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "x  Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/tags/agents/remove": {
      "post": {
        "tags": [
          "Endpoint Management"
        ],
        "summary": "Remove Tags",
        "description": "Remove one or more tags from one or more endpoints.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postRemove",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the following API request fields.",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "Array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "endpoint_id_list",
                                "endpoint_status",
                                "dist_name",
                                "ip_list",
                                "group_name",
                                "platform",
                                "alias",
                                "isolate",
                                "hostname",
                                "cloud_provider",
                                "cloud_region",
                                "cloud_provider_account_id",
                                "cloud_instance_id",
                                "cloud_id"
                              ],
                              "description": "String that identifies the field the filter is matching. Filters are based on the following keywords:\n- `endpoint_id_list`: List of endpoint IDs.\n- `endpoint_status`: Status of the endpoint ID.\n- `dist_name`: Distribution / Installation Package name.\n- `ip_list`: List of IP addresses.\n- `group_name`: Group name the agent belongs to.\n- `platform`: Platform name.\n- `alias`: Alias name.\n- `isolate`: If the endpoint was isolated.\n- `hostname`: Hostname.\n- `cloud_provider`: Cloud provider (for example, AWS, GCP, Azure).\n- `cloud_region`: Cloud region where the endpoint is deployed.\n- `cloud_provider_account_id`: Cloud provider account ID.\n- `cloud_instance_id`: Cloud instance ID of the endpoint.\n- `cloud_id`: Cloud ID of the endpoint."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "in",
                                "gte",
                                "lte"
                              ],
                              "description": "String that identifies the comparison operator you want to use for this filter. Valid keywords and values are:\n`in`\n- `endpoint_id_list`, `dist_name`, `group_name`, `alias`, `hostname`, `username`: List of strings.\n- `endpoint_status`: Permitted values are `connected` or `disconnected`.\n- `ip_list`: List of strings, for example 192.168.5.12.\n- `platform`: Permitted values are `windows`, `linux`, `macos`, or `android`.\n- `isolate`: Permitted values are `isolated` or `unisolated`.\n- `scan_status`: Permitted values are `none`, `pending`, `in_progress`, `canceled`, `aborted`, `pending_cancellation`, `success`, or `error`.\n`gte` / `lte`\n- `first_seen` and `last_seen`: Integer in timestamp epoch milliseconds.\n- `cloud_provider`, `cloud_region`, `cloud_provider_account_id`, `cloud_instance_id`, `cloud_id`: List of strings."
                            },
                            "value": {
                              "description": "Value that this filter must match. The contents of this field will differ depending on the endpoint field that you specified for this filter:\n- `endpoint_id_list`, `distribution_name`, `hostname`, `alias`, `group_name`: List of strings.\n- `endpoint_status`: Must contain only the following valid values: `connected` or `disconnected`\n- `ip_list`: String list of IP addresses.\n- `platform`: Must contain only the following valid values: `windows`, `linux`, `macos`, or `android`.\n- `isolate`: Must contain only the following valid values: `isolated` or `unisolated`.\n- `cloud_provider`, `cloud_region`, `cloud_provider_account_id`, `cloud_instance_id`, `cloud_id`: List of strings.",
                              "oneOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "integer"
                                }
                              ]
                            }
                          },
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ]
                        }
                      },
                      "tag": {
                        "type": "string",
                        "description": "The tag you want to remove."
                      }
                    }
                  }
                },
                "x-examples": {
                  "example-1": {
                    "context": {
                      "lcaas_id": "<tenant_id>"
                    },
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<distribution_id"
                          ]
                        }
                      ],
                      "tag": "<tag_name>"
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<distribution_id>"
                          ]
                        }
                      ],
                      "tag": "<tag_name>"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean",
                  "description": "true=tag name removed successfully."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/endpoints/restore": {
      "post": {
        "tags": [
          "Response Action"
        ],
        "summary": "Restore File",
        "description": "Restore a quarantined file on a requested endpoints.\nWhen filtering by multiple fields:\n- Response is concatenated using AND condition (OR is not supported).\n- Maximum result set size is 100.\n- Offset is the zero-based number of cases from the start of the result set.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postRestore",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "file_hash": {
                        "type": "string",
                        "description": "String that represents the file in hash. Hash must be a valid SHA256."
                      },
                      "endpoint_id": {
                        "type": "string",
                        "description": "String that represents the endpoint ID.\nNote: if it is not specified, the request will run restore on all endpoints which relate to the quarantined file you defined."
                      },
                      "incident_id": {
                        "type": "integer",
                        "description": "String representing the case ID.\nWhen included in the request, the Restore File action will appear in the Cortex Case View Timeline tab."
                      }
                    },
                    "required": [
                      "file_hash"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "file_hash": "<hash value>",
                      "incident_id": 302
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "file_hash": "<hash value>",
                      "incident_id": 302
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "action_id": {
                          "type": "string"
                        },
                        "endpoints_count": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "action_id": "<action ID>",
                        "endpoints_count": "673"
                      }
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "reply": {
                        "action_id": "<action ID>",
                        "status": 1,
                        "endpoints_count": "673"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/actions/file_retrieval_details": {
      "post": {
        "tags": [
          "Response Action"
        ],
        "summary": "File Retrieval Details",
        "description": "View the API required to call in order to download the file retrieved by the [Retrieve File](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/response-action#post-public_api-v1-endpoints-file_retrieval) API request according to the action ID.\n\nThe response contains a file hash you need to download and then unzip to view:\n1. Download the file.\n\n<!--\ntitle: \"Request Example\"\n-->\n``` curl\ncurl -XPOST \"https://api-{fqdn}/public_api/v1/download/<api_value>\" \n-H \"x-xdr-auth-id:{API_KEY_ID}\"  \n-H \"Authorization:{API_KEY}\" \n-H 'Content-Type:application/json' \n--output /tmp/file.zip\n```\n2. Unzip the file: `unzip /tmp/file.zip`\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postFileRetrievalDetails",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "group_action_id": {
                        "type": "string",
                        "description": "The action ID of the [Retrieve File](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/response-action#post-public_api-v1-endpoints-file_retrieval) API response."
                      }
                    },
                    "required": [
                      "group_action_id"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "group_action_id": "<action ID>"
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "group_action_id": "<action ID>"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "object",
                          "properties": {
                            "endpoint_ID": {
                              "type": "string",
                              "description": "API required to call in order to download the retrieved result."
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "data": {
                          "<endpoint_ID>": "https://api-{fqdn}/public_api/v1/download/<api_value>"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "data": {
                          "<endpoint_ID>": "https://api-{fqdn}/public_api/v1/download/<api_value>"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/hash_exceptions/allowlist": {
      "post": {
        "tags": [
          "Response Action"
        ],
        "summary": "Allow List Files",
        "description": "Add files which do not exist in the allow or block lists to an allow list.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postAllowlist",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "hash_list": {
                        "type": "array",
                        "description": "A list of hashed files you want to add to the allow list. Hash must be a valid SH256.",
                        "items": {
                          "type": "string"
                        }
                      },
                      "comment": {
                        "type": "string",
                        "description": "Additional information regarding the action."
                      },
                      "incident_id": {
                        "type": "integer",
                        "description": "The case ID related to the hash.\nWhen included in the request, the **Allow List** action will appear in the **Cortex Case View Timeline** tab."
                      }
                    },
                    "required": [
                      "hash_list"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "hash_list": [
                        "032196FB1A---DFCF69E5D553F0",
                        "365296EB1B---FCF29E5D553E4",
                        "365296EB1B---FCF69E3D553E4",
                        "365296EB1B---FCF69E5D553D4",
                        "365296EB1B---FCF79E5D553D4"
                      ],
                      "comment": "test",
                      "incident_id": 5
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "hash_list": [
                        "032196FB1A---DFCF69E5D553F0",
                        "365296EB1B---FCF29E5D553E4",
                        "365296EB1B---FCF69E3D553E4",
                        "365296EB1B---FCF69E5D553D4",
                        "365296EB1B---FCF79E5D553D4"
                      ],
                      "comment": "test",
                      "incident_id": 5
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean",
                  "description": "true=File successfully added to the allow list."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/quarantine/status": {
      "post": {
        "tags": [
          "Response Action"
        ],
        "summary": "Get Quarantine Status",
        "description": "Retrieve the quarantine status for specified files.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postStatus",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "files": {
                        "type": "array",
                        "description": "Array of endpoint IDs, filepaths, and file hash.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "endpoint_id": {
                              "type": "string",
                              "description": "Endpoint ID"
                            },
                            "file_path": {
                              "type": "string",
                              "description": "File hash. Must be a valid SHA256."
                            },
                            "file_hash": {
                              "type": "string",
                              "description": "File path."
                            }
                          }
                        }
                      }
                    },
                    "required": [
                      "files"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "files": [
                        {
                          "endpoint_id": "<endpoint ID>",
                          "file_path": "C:\\<file path>\\test_x64.msi",
                          "file_hash": "<hash value>"
                        }
                      ]
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "files": [
                        {
                          "endpoint_id": "<endpoint ID>",
                          "file_path": "C:\\<file path>\\test_x64.msi",
                          "file_hash": "<hash value>"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "endpoint_id": {
                            "type": "string",
                            "description": "Endpoint ID."
                          },
                          "file_path": {
                            "type": "string",
                            "description": "File path."
                          },
                          "file_hash": {
                            "type": "string",
                            "description": "File hash."
                          },
                          "status": {
                            "type": "boolean",
                            "description": "The file's status.\nTrue: The file is quarantined.\nFalse: The file is not quarantined."
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": [
                        {
                          "endpoint_id": "<endpoint ID>",
                          "file_path": "C:\\<file path>\\test_x64.msi",
                          "file_hash": "<hash value>",
                          "status": false
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "reply": [
                        {
                          "endpoint_id": "<endpoint ID>",
                          "file_path": "C:\\<file path>\\test_x64.msi",
                          "file_hash": "<hash value>",
                          "status": false
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/endpoints/quarantine": {
      "post": {
        "tags": [
          "Response Action"
        ],
        "summary": "Quarantine Files",
        "description": "Quarantine file on selected endpoints. You can select up to 1000 endpoints.\n\nNote: A success response means that the request reached the defined endpoints, however if the file was not found there, no quarantine action will take place. To ensure if the file has been quarantined, check the Cortex XDR Action Center.\n\nWhen filtering by multiple fields:\n- Response is concatenated using AND condition (OR is not supported).\n- Maximum result set size is 1000.\n- Offset is the zero-based number of cases from the start of the result set.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postQuarantine",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "endpoint_id_list"
                              ],
                              "description": "String that identifies a list the filters match. Filters are based on the following keywords:\n- `endpoint_id_list`: List of endpoint IDs."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "in"
                              ],
                              "description": "String that identifies the comparison operator you want to use for this filter. Valid keywords and values are:\n`in`\n- `endpoint_id_list`: List of strings"
                            },
                            "value": {
                              "type": "array",
                              "description": "Value that this filter must match. Valid keywords:\n- `endpoint_id_list`: Array of strings",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ]
                        }
                      },
                      "file_path": {
                        "type": "string",
                        "description": "The path of the file you want to quarantine. You must enter a proper path and not symbolic links."
                      },
                      "file_hash": {
                        "type": "string",
                        "description": "Case ID.\nWhen included in the request, the **Quarantine File** action will appear in the **Cortex Case View Timeline** tab."
                      }
                    },
                    "required": [
                      "filters",
                      "file_path",
                      "file_hash"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<endpoint ID>"
                          ]
                        }
                      ],
                      "file_path": "C:\\<file path>\\test_x64.msi",
                      "file_hash": "<hash value>"
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<endpoint ID>"
                          ]
                        }
                      ],
                      "file_path": "C:\\<file path>\\test_x64.msi",
                      "file_hash": "<hash value>"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "action_id": {
                          "type": "string",
                          "description": "Action ID of action to quarantine selected endpoints.\nResponse only indicates the request was successfully sent to the endpoint. To track if the file quarantine succeeded either:\n- In the Cortex console, navigate to **Response** > **Action Center** and search for the action ID. Make sure the **Action ID** field is selected in the table **Layout** settings.\n- Send a [Get Action Status](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/response-action#post-public_api-v1-actions-get_action_status) API request."
                        },
                        "status": {
                          "type": "string",
                          "description": "Integer representing whether the action:\n- 1: succeeded\n- 0: failed"
                        },
                        "endpoints_count": {
                          "type": "string",
                          "description": "Number of endpoints included in the request."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "action_id": "[ID value]",
                        "status": "1",
                        "endpoints_count": "673"
                      }
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "reply": {
                        "action_id": "[ID value]",
                        "status": "1",
                        "endpoints_count": "673"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/hash_exceptions/blocklist": {
      "post": {
        "tags": [
          "Response Action"
        ],
        "summary": "Block List Files",
        "description": "Add files which do not exist in the allow or block lists to a block list. You can view the block list in the UI at **Investigation & Response** > Response > **Action Center** > **Block List**.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postBlocklist",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "hash_list": {
                        "type": "array",
                        "description": "A list of hashed files you want add to a block list. Hash must be a valid SH256.",
                        "items": {
                          "type": "string"
                        }
                      },
                      "comment": {
                        "type": "string",
                        "description": "Additional information regarding the action."
                      },
                      "incident_id": {
                        "type": "integer",
                        "description": "The case ID related to the hash.\nWhen included in the request, the **Block List** action appears in the **Cortex Case View Timeline** tab."
                      }
                    },
                    "required": [
                      "hash_list"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "hash_list": [
                        "032196FB1A---DFCF69E5D553F0",
                        "365296EB1B---FCF69E7D553E4",
                        "365296EB1B---FCF69E5D523E4",
                        "365296EB1B---FCF69E5D553D4",
                        "365296EB1B---FCF63E5D553D4"
                      ],
                      "comment": "test",
                      "incident_id": 5
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "hash_list": [
                        "032196FB1A---DFCF69E5D553F0",
                        "365296EB1B---FCF69E7D553E4",
                        "365296EB1B---FCF69E5D523E4",
                        "365296EB1B---FCF69E5D553D4",
                        "365296EB1B---FCF63E5D553D4"
                      ],
                      "comment": "test",
                      "incident_id": 5
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean",
                  "description": "true=File successfully added to block list."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/endpoints/unisolate": {
      "post": {
        "tags": [
          "Response Action"
        ],
        "summary": "Unisolate Endpoints",
        "description": "Reverse the isolation of one or more endpoints in single request.\n\nNote: You can only send a request with either `endpoint_id` to unisolate one endpoint or with filters to unisolate more than one endpoint. An error is raised if you try to use both `endpoint_id` and the filters.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postUnisolate",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "One of `endpoint_id` of `filters` is required, but not both.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields for unisolating a number of endpoints at once.\nNote: This field is only required if unisolating more than one endpoint.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "endpoint_id_list"
                              ],
                              "description": "String that identifies a list the filters match. Filters are based on the following keywords:\n- `endpoint_id_list`: List of endpoint IDs."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "in"
                              ],
                              "description": "String that identifies the comparison operator you want to use for this filter. Valid keywords and values are:\n`in`\n- `endpoint_id_list`: List of strings"
                            },
                            "value": {
                              "type": "array",
                              "description": "Value that this filter must match. Valid keywords:\n- `endpoint_id_list`: List of strings",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ]
                        }
                      },
                      "endpoint_id": {
                        "type": "string",
                        "description": "The ID of the endpoint to unisolate.\n\nNote: this field is only required if unisolating one endpoint."
                      },
                      "incident_id": {
                        "type": "string",
                        "description": "Case ID.\nWhen included in the request, the **Unisolate Endpoints** action will appear in the **Cortex Case View Timeline** tab."
                      }
                    },
                    "required": [
                      "endpoint_id"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "dist_name",
                          "operator": "IN",
                          "value": [
                            "MG"
                          ]
                        }
                      ]
                    }
                  }
                }
              },
              "examples": {
                "Unisolate one endpoint": {
                  "value": {
                    "request_data": {
                      "endpoint_id": "<endpoint ID>"
                    }
                  }
                },
                "Unisolate more than one endpoint": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "IN",
                          "value": [
                            "<endpoint_id_1>",
                            "<endpoint_id_2>",
                            "<endpoint_id_3>"
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "action_id": {
                          "type": "string",
                          "description": "ID of the action to unisolate selected endpoints.\nResponse only indicates the request was successfully sent to the endpoint. To track if the endpoint was restored either:\n- In the Cortex XDR console, navigate to **Response** > **Action Center** > **Isolation** and search for the action ID. Make sure the **Action ID** field is selected in the table **Layout** settings.\n- Send a [Get Action Status](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/response-action#post-public_api-v1-actions-get_action_status) API request."
                        },
                        "endpoints_count": {
                          "type": "string",
                          "description": "Number of endpoints included in the request."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "action_id": "<action ID>",
                        "status": "1",
                        "endpoints_count": "673"
                      }
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "reply": {
                        "action_id": "<action ID>",
                        "status": "1",
                        "endpoints_count": "673"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/endpoints/abort_scan": {
      "post": {
        "tags": [
          "Response Action"
        ],
        "summary": "Cancel Scan Endpoints",
        "description": "Cancel the scan of selected endpoints. A scan can only be aborted if the selected endpoints are in **Pending** or in **Progress** status.\n\nWhen filtering by multiple fields:\n- Response is concatenated using AND condition (OR is not supported).\n- Offset is the zero-based number of endpoints from the start of the result set.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postAbortScan",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "filters": {
                        "description": "An array of filter fields to filter which endpoints to cancel scanning.\nTo cancel scan of all endpoints, use the value \"all\".",
                        "oneOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "enum": [
                                    "endpoint_id_list",
                                    "dist_name",
                                    "first_seen",
                                    "last_seen",
                                    "ip_list",
                                    "group_name",
                                    "platform",
                                    "alias",
                                    "isolate",
                                    "hostname",
                                    "username"
                                  ],
                                  "description": "String that identifies a list the filters match. Filters are based on the following keywords:\n- `endpoint_id_list`: List of endpoint IDs.\n- `dist_name`: Name of the distribution list.\n- `first_seen`: When an endpoint was first seen.\n- `last_seen`: When an endpoint was last seen.\n- `ip_list`: List of IP addresses.\n- `group_name`: Name of endpoint group.\n- `platform`: Type of operating system.\n- `alias`: Endpoint alias name.\n- `isolate`: If an endpoint has been isolated.\n- `hostname`: Name of host.\n- `username`: Name of user."
                                },
                                "operator": {
                                  "type": "string",
                                  "enum": [
                                    "in",
                                    "gte",
                                    "lte"
                                  ],
                                  "description": "String that identifies the comparison operator you want to use for this filter. Valid keywords and values are:\n`in`\n- `endpoint_id_list`, `dist_name`, `group_name`, `alias`, `hostname`, `username`: List of strings\n- `ip_list`: List of strings, for example 192.168.5.12\n- `platform`: Permitted values are `windows`, `linux`, `macos`, `android`\n- `isolate`: Permitted values are `isolated` or `unisolated`\n- `scan_status`: Permitted values are `none`, `pending`, `in_progress`, `canceled`, `aborted`, `pending_cancellation`, `success`, or `error`\n`gte` / `lte`\n- `first_seen` and `last_seen`:  Integer in timestamp epoch milliseconds."
                                },
                                "value": {
                                  "description": "Value that this filter must match. Valid keywords:\n- `first_seen`, `last_seen`: Integer in timestamp epoch milliseconds, UTC timezone\n- `endpoint_id_list`, `dist_name`, `hostname`, `alias`, `group_name`: List of strings\n- `ip_list`: List of strings, for example 192.168.5.12\n- `isolate`: Permitted values are `isolated` or `unisolated`.\n- `platform`: Permitted values are `windows`, `linux`, `macos`, or `android`.",
                                  "oneOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "string"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ]
                            }
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "incident_id": {
                        "type": "string",
                        "description": "Case ID.\nWhen included in the request, the **Cancel Scan Endpoints** action will appear in the **Cortex Case View Timeline** tab."
                      }
                    },
                    "required": [
                      "filters"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<endpoint ID>"
                          ]
                        },
                        {
                          "field": "dist_name",
                          "operator": "in",
                          "value": [
                            "WinInstaller"
                          ]
                        },
                        {
                          "field": "group_name",
                          "operator": "in",
                          "value": [
                            "test"
                          ]
                        },
                        {
                          "field": "scan_status",
                          "operator": "in",
                          "value": [
                            "none",
                            "pending",
                            "in_progress",
                            "pending_cancellation",
                            "aborted",
                            "success"
                          ]
                        },
                        {
                          "field": "group_name",
                          "operator": "in",
                          "value": [
                            "test"
                          ]
                        }
                      ]
                    }
                  }
                }
              },
              "examples": {
                "To cancel scan of all endpoints": {
                  "value": {
                    "request_data": {
                      "filters": "all"
                    }
                  }
                },
                "To cancel scan of filtered endpoints": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<endpoint ID>"
                          ]
                        },
                        {
                          "field": "dist_name",
                          "operator": "in",
                          "value": [
                            "WinInstaller"
                          ]
                        },
                        {
                          "field": "group_name",
                          "operator": "in",
                          "value": [
                            "test"
                          ]
                        },
                        {
                          "field": "scan_status",
                          "operator": "in",
                          "value": [
                            "none",
                            "pending",
                            "in_progress",
                            "pending_cancellation",
                            "aborted",
                            "success"
                          ]
                        },
                        {
                          "field": "group_name",
                          "operator": "in",
                          "value": [
                            "test"
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "action_id": {
                          "type": "string",
                          "description": "ID of action to cancel scan selected endpoints.\nResponse only indicates the request was successfully sent to the endpoint. To track if the scan succeeded either:\n- In Cortex XDR console, navigate to **Response** > **Action Center** and search for the action ID. Make sure the **Action ID** field is selected in the table Layout settings.\n- Send a [Get Action Status](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/response-action#post-public_api-v1-actions-get_action_status) API request."
                        },
                        "endpoints_count": {
                          "type": "string",
                          "description": "Number of endpoints included in the request."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "action_id": "<action ID value>",
                        "status": "1",
                        "endpoints_count": "673"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/endpoints/scan": {
      "post": {
        "tags": [
          "Response Action"
        ],
        "summary": "Scan Endpoints",
        "description": "Run a scan on selected endpoints.\n- Response is concatenated using AND condition (OR is not supported).\n- Offset is the zero-based number of cases from the start of the result set.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postScan",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Note: You can send a request to retrieve either **all** or **filtered** results.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "filters": {
                        "type": "string",
                        "enum": [
                          "all"
                        ],
                        "description": "An array of filter fields. To scan all endpoints, use the value `all`."
                      },
                      "incident_id": {
                        "type": "string",
                        "description": "Case ID.\nWhen included in the request, the **Scan Endpoints** action will appear in the **Cortex Case View Timeline** tab."
                      }
                    },
                    "required": [
                      "filters"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<endpoint ID>"
                          ]
                        },
                        {
                          "field": "dist_name",
                          "operator": "in",
                          "value": [
                            "WinInstaller"
                          ]
                        },
                        {
                          "field": "group_name",
                          "operator": "in",
                          "value": [
                            "test"
                          ]
                        },
                        {
                          "field": "scan_status",
                          "operator": "in",
                          "value": [
                            "none",
                            "pending",
                            "in_progress",
                            "pending_cancellation",
                            "aborted",
                            "success"
                          ]
                        },
                        {
                          "field": "group_name",
                          "operator": "in",
                          "value": [
                            "test"
                          ]
                        }
                      ]
                    }
                  }
                }
              },
              "examples": {
                "Scan all endpoints": {
                  "value": {
                    "request_data": {
                      "filters": "all"
                    }
                  }
                },
                "Scan filtered endpoints": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<endpoint ID>"
                          ]
                        },
                        {
                          "field": "dist_name",
                          "operator": "in",
                          "value": [
                            "WinInstaller"
                          ]
                        },
                        {
                          "field": "group_name",
                          "operator": "in",
                          "value": [
                            "test\""
                          ]
                        },
                        {
                          "field": "scan_status",
                          "operator": "in",
                          "value": [
                            "none",
                            "pending",
                            "in_progress",
                            "pending_cancellation",
                            "aborted",
                            "success"
                          ]
                        },
                        {
                          "field": "group_name",
                          "operator": "in",
                          "value": [
                            "test"
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "action_id": {
                          "type": "string",
                          "description": "ID of action to scan selected endpoints.\nResponse only indicates the request was successfully sent to the endpoint. To track if the scan was successful either:\n- In Cortex XDR console, navigate to **Response** > **Action Center** > **All Actions** and search for the action ID. Make sure the **Action ID** field is selected in the table **Layout** settings.\n- Send a [Get Action Status](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/response-action#post-public_api-v1-actions-get_action_status) API request."
                        },
                        "endpoints_count": {
                          "type": "string",
                          "description": "Number of endpoints included in the request."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "action_id": "<action ID>",
                        "endpoints_count": "673"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/actions/get_action_status": {
      "post": {
        "tags": [
          "Response Action"
        ],
        "summary": "Get Action Status",
        "description": "Retrieve the status of the requested actions according to the action ID.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postGetActionStatus",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "group_action_id": {
                        "type": "integer",
                        "description": "Action ID of the selected request."
                      }
                    },
                    "required": [
                      "group_action_id"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "group_action_id": "<action ID>"
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "group_action_id": 123456789
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "data": {
                          "type": "object",
                          "properties": {
                            "agent_id": {
                              "type": "string",
                              "enum": [
                                "PENDING",
                                "IN_PROGRESS",
                                "CANCELLED",
                                "PENDING_ABORT",
                                "ABORTED",
                                "EXPIRED",
                                "COMPLETED_PARTIAL",
                                "COMPLETED_SUCCESSFULLY",
                                "FAILED",
                                "TIMEOUT"
                              ]
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "data": {
                          "<agent ID>": "COMPLETED_SUCCESSFULLY"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "reply": {
                        "data": {
                          "<agent ID>": "COMPLETED_SUCCESSFULLY"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "object",
                          "description": "JSON object containing the query result.",
                          "additionalProperties": {}
                        },
                        "errorReasons": {
                          "type": "object",
                          "description": "Returns all error messages the agent returns to allow for easier analysis."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "data": {
                          "5a763600a3e44928a94ba84b6088380f": "FAILED"
                        },
                        "errorReasons": {
                          "5a763600a3e44928a94ba84b6088380f": {
                            "errorData": "{\"reportIds\":[\"0ca3c1ace7694fcd8b44b735e5ba6c04\"],\"errorText\":\"\"}",
                            "terminated_by": "instance_id",
                            "errorDescription": "Element not found.\r\n",
                            "terminate_result": [
                              {
                                "path": null,
                                "status": 1
                              }
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "object",
                          "description": "JSON object containing the query result.",
                          "additionalProperties": {}
                        },
                        "errorReasons": {
                          "type": "object",
                          "description": "Returns all error messages the agent returns to allow for easier analysis."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "data": {
                          "5a763600a3e44928a94ba84b6088380f": "FAILED"
                        },
                        "errorReasons": {
                          "5a763600a3e44928a94ba84b6088380f": {
                            "errorData": "{\"reportIds\":[\"0ca3c1ace7694fcd8b44b735e5ba6c04\"],\"errorText\":\"\"}",
                            "terminated_by": "instance_id",
                            "errorDescription": "Element not found.\r\n",
                            "terminate_result": [
                              {
                                "path": null,
                                "status": 1
                              }
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "object",
                          "description": "JSON object containing the query result.",
                          "additionalProperties": {}
                        },
                        "errorReasons": {
                          "type": "object",
                          "description": "Returns all error messages the agent returns to allow for easier analysis."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "data": {
                          "5a763600a3e44928a94ba84b6088380f": "FAILED"
                        },
                        "errorReasons": {
                          "5a763600a3e44928a94ba84b6088380f": {
                            "errorData": "{\"reportIds\":[\"0ca3c1ace7694fcd8b44b735e5ba6c04\"],\"errorText\":\"\"}",
                            "terminated_by": "instance_id",
                            "errorDescription": "Element not found.\r\n",
                            "terminate_result": [
                              {
                                "path": null,
                                "status": 1
                              }
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "object",
                          "description": "JSON object containing the query result.",
                          "additionalProperties": {}
                        },
                        "errorReasons": {
                          "type": "object",
                          "description": "Returns all error messages the agent returns to allow for easier analysis."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "data": {
                          "5a763600a3e44928a94ba84b6088380f": "FAILED"
                        },
                        "errorReasons": {
                          "5a763600a3e44928a94ba84b6088380f": {
                            "errorData": "{\"reportIds\":[\"0ca3c1ace7694fcd8b44b735e5ba6c04\"],\"errorText\":\"\"}",
                            "terminated_by": "instance_id",
                            "errorDescription": "Element not found.\r\n",
                            "terminate_result": [
                              {
                                "path": null,
                                "status": 1
                              }
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "object",
                          "description": "JSON object containing the query result.",
                          "additionalProperties": {}
                        },
                        "errorReasons": {
                          "type": "object",
                          "description": "Returns all error messages the agent returns to allow for easier analysis."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "data": {
                          "5a763600a3e44928a94ba84b6088380f": "FAILED"
                        },
                        "errorReasons": {
                          "5a763600a3e44928a94ba84b6088380f": {
                            "errorData": "{\"reportIds\":[\"0ca3c1ace7694fcd8b44b735e5ba6c04\"],\"errorText\":\"\"}",
                            "terminated_by": "instance_id",
                            "errorDescription": "Element not found.\r\n",
                            "terminate_result": [
                              {
                                "path": null,
                                "status": 1
                              }
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/scripts/run_snippet_code_script": {
      "post": {
        "tags": [
          "Script execution"
        ],
        "summary": "Run Snippet Code Script",
        "description": "Initiate a new endpoint script execution action using provided snippet code. Cortex XDR supports sending your request in Base64.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "postRunSnippetCodeScript",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields for running the script on a number of endpoints at once.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "endpoint_id_list"
                              ],
                              "description": "String that identifies a list the filters match. Filters are based on the following keywords:\n- `endpoint_id_list`: List of endpoint IDs."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "in"
                              ],
                              "description": "String that identifies the comparison operator you want to use for this filter. Valid keywords and values are:\n`in`\n- `endpoint_id_list`: List of strings"
                            },
                            "value": {
                              "type": "array",
                              "description": "Value that this filter must match.",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ]
                        }
                      },
                      "timeout": {
                        "type": "integer",
                        "description": "The timeout in seconds for this execution. Default value is 600.",
                        "default": 600
                      },
                      "snippet_code": {
                        "type": "string",
                        "description": "Section of a script you want to initiate on an endpoint."
                      },
                      "incident_id": {
                        "type": "string",
                        "description": "Case ID.\nWhen included in the request, the **Run Snippet Code Script** action will appear in the **Cortex Case View Timeline** tab."
                      }
                    },
                    "required": [
                      "filters",
                      "snippet_code"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<endpoint ID>"
                          ]
                        }
                      ],
                      "snippet_code": "print (\"7\")"
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<endpoint ID>"
                          ]
                        }
                      ],
                      "snippet_code": "print (\"7\")"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "action_id": {
                          "type": "string",
                          "description": " ID of the action initiated. ID will be used as a reference to track in the action center."
                        },
                        "endpoints_count": {
                          "type": "integer",
                          "description": "Number of endpoints the action was initiated on."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "action_id": "<action ID>",
                        "endpoints_count": 21
                      }
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "reply": {
                        "action_id": "<action ID>",
                        "endpoints_count": 21
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/scripts/run_script": {
      "post": {
        "tags": [
          "Script execution"
        ],
        "summary": "Run Script",
        "description": "Initiate a new endpoint script execution action using a script from the script library. The script can be run on up to 1000 endpoints.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "postRunScript",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "Array of filter fields for running the script on a number of endpoints at once.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "endpoint_id_list"
                              ],
                              "description": "String that identifies a list the filters match. Filters are based on the following keywords:\n- `endpoint_id_list`: List of endpoint IDs."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "in"
                              ],
                              "description": "String that identifies the comparison operator you want to use for this filter. Valid keywords and values are:\n`in`\n- `endpoint_id_list`: List of strings",
                              "default": "in"
                            },
                            "value": {
                              "type": "array",
                              "description": "Value that this filter must match.",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ]
                        }
                      },
                      "script_uid": {
                        "type": "string",
                        "description": "GUID, unique identifier of the script, returned by the [Get Scripts](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/script-execution#post-public_api-v1-scripts-get_scripts) API per script."
                      },
                      "parameters_values": {
                        "type": "object",
                        "description": "Dictionary containing the parameter name, `key`, and its value for this execution, `value`.\n\nYou can obtain these values by running [Get Script Metadata](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/script-execution#post-public_api-v1-scripts-get_script_metadata) API.",
                        "properties": {
                          "x": {
                            "type": "string"
                          },
                          "y": {
                            "type": "integer"
                          }
                        },
                        "required": [
                          "x",
                          "y"
                        ]
                      },
                      "timeout": {
                        "type": "integer",
                        "description": "Timeout in seconds for this execution. Default value is 600.",
                        "default": 600
                      },
                      "incident_id": {
                        "type": "string",
                        "description": "Case ID.\nWhen included in the request, the **Run Script** action will appear in the **Cortex Case View Timeline** tab."
                      }
                    },
                    "required": [
                      "filters",
                      "script_uid"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<endpoint ID>"
                          ]
                        }
                      ],
                      "script_uid": "<unique ID>",
                      "parameters_values": {
                        "x": "param input as returned in Get Script Metadata",
                        "y": 4
                      }
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<endpoint ID>"
                          ]
                        }
                      ],
                      "script_uid": "<unique ID>",
                      "parameters_values": {
                        "x": "param input as returned in Get Script Metadata",
                        "y": 4
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "action_id": {
                          "type": "integer",
                          "description": "ID of the action initiated. ID will be used as a reference to track in the action center."
                        },
                        "endpoints_count": {
                          "type": "integer",
                          "description": "Number of endpoints the action was initiated on."
                        },
                        "status": {
                          "type": "integer",
                          "description": "Integer representing whether the action:\n- 1: succeeded\n- 0: failed"
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "action_id": 22519813685366,
                        "status": 1,
                        "endpoints_count": 1
                      }
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "reply": {
                        "action_id": 22519813685366,
                        "status": 1,
                        "endpoints_count": 1
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/scripts/get_script_metadata": {
      "post": {
        "tags": [
          "Script execution"
        ],
        "summary": "Get Script Metadata",
        "description": "Get the full definitions of a specific script in the scripts library.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "postGetScriptMetadata",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "script_uid": {
                        "type": "string",
                        "description": "Unique identifier of the script, returned by the [Get Scripts](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/script-execution#post-public_api-v1-scripts-get_scripts) API per script."
                      }
                    },
                    "required": [
                      "script_uid"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "script_uid": "<unique ID>"
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "script_uid": "<unique ID>"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "script_id": {
                          "type": "string",
                          "description": "Script ID."
                        },
                        "name": {
                          "type": "string",
                          "description": "Name of script."
                        },
                        "description": {
                          "type": "string",
                          "description": "Description of script."
                        },
                        "modification_date": {
                          "type": "integer",
                          "description": "Timestamp of when the script was last modified."
                        },
                        "created_by": {
                          "type": "string",
                          "description": "Name of the user who created the script."
                        },
                        "is_high_risk": {
                          "type": "boolean",
                          "description": "Whether the script has a high-risk outcome."
                        },
                        "windows_supported": {
                          "type": "boolean",
                          "description": "Whether the script can be executed on Windows OS."
                        },
                        "linux_supported": {
                          "type": "boolean",
                          "description": "Whether the script can be executed on Linux OS."
                        },
                        "macos_supported": {
                          "type": "boolean",
                          "description": "Whether the script can be executed on macOS."
                        },
                        "script_uid": {
                          "type": "string",
                          "description": "GUID, global ID of the script, used toidentify the script when executing."
                        },
                        "entry_point": {
                          "type": "string",
                          "description": "name of the entry point selected for the script defined as `run`."
                        },
                        "script_input": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string"
                              },
                              "friendly_name": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "script_output_type": {
                          "type": "string",
                          "enum": [
                            "auto_detect",
                            "dictionary",
                            "number_list",
                            "number",
                            "string",
                            "string_list",
                            "boolean_list",
                            "ip",
                            "ip_list",
                            "boolean"
                          ],
                          "description": "Type of output."
                        },
                        "script_output_dictionary_definitions": {
                          "type": "array",
                          "description": "When the `script_output_type` is a dictionary an array with `friendly_name`, `name`, and `type` for each output is returned.\nThe field is empty in all other cases.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "friendly_name": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "script_id": "<script ID>",
                        "name": "list_directories",
                        "description": "List all directories under path",
                        "modification_date": 1585074627259,
                        "created_by": "Palo Alto Networks",
                        "is_high_risk": false,
                        "windows_supported": true,
                        "linux_supported": true,
                        "macos_supported": true,
                        "script_uid": "<unique ID>",
                        "entry_point": "run",
                        "script_input": [
                          {
                            "name": "path",
                            "type": "string"
                          },
                          {
                            "friendly_name": "Number of levels",
                            "name": "num_levels",
                            "type": "integer"
                          }
                        ],
                        "script_output_type": "dictionary",
                        "script_output_dictionary_definitions": [
                          {
                            "friendly_name": "Number Of Processes",
                            "name": "output_2",
                            "type": "integer"
                          },
                          {
                            "friendly_name": "Name",
                            "name": "output_1",
                            "type": "string"
                          }
                        ]
                      }
                    }
                  }
                },
                "examples": {
                  "When entry_point is returned as run": {
                    "value": {
                      "reply": {
                        "script_id": "<script ID>",
                        "name": "list_directories",
                        "description": "List all directories under path",
                        "modification_date": 1585074627259,
                        "created_by": "Palo Alto Networks",
                        "is_high_risk": false,
                        "windows_supported": true,
                        "linux_supported": true,
                        "macos_supported": true,
                        "script_uid": "<unique ID>",
                        "entry_point": "run",
                        "script_input": [
                          {
                            "name": "path",
                            "type": "string"
                          },
                          {
                            "friendly_name": "Number of levels",
                            "name": "num_levels",
                            "type": "integer"
                          }
                        ],
                        "script_output_type": "dictionary",
                        "script_output_dictionary_definitions": [
                          {
                            "friendly_name": "Number Of Processes",
                            "name": "output_2",
                            "type": "integer"
                          },
                          {
                            "friendly_name": "Name",
                            "name": "output_1",
                            "type": "string"
                          }
                        ]
                      }
                    }
                  },
                  "When entry_point field is empty": {
                    "value": {
                      "reply": {
                        "script_id": "<script ID>",
                        "name": "list_directories",
                        "description": "List all directories under path",
                        "modification_date": 1585074627259,
                        "created_by": "Palo Alto Networks",
                        "is_high_risk": false,
                        "windows_supported": true,
                        "linux_supported": true,
                        "macos_supported": true,
                        "script_uid": "<unique ID>"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/scripts/get_script_execution_status": {
      "post": {
        "tags": [
          "Script execution"
        ],
        "summary": "Get Script Execution Status",
        "description": "Retrieve the status of a script execution action.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "postGetScriptExecutionStatus",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "action_id": {
                        "type": "string",
                        "description": "Identifier of the action, can be found in Cortex XDR console **Response** > **Action Center** > **Action ID** field."
                      }
                    },
                    "required": [
                      "action_id"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "action_id": "<action ID>"
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "action_id": "<action ID>"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "general_status": {
                          "type": "string",
                          "description": "General status of the action, considering the status of all the endpoints."
                        },
                        "endpoints_pending": {
                          "type": "integer",
                          "description": "Number of endpoints in pending status."
                        },
                        "endpoints_canceled": {
                          "type": "integer",
                          "description": "Number of endpoints in 'canceled' status."
                        },
                        "endpoints_in_progress": {
                          "type": "integer",
                          "description": "Number of endpoints in 'in progress' status."
                        },
                        "endpoints_timeout": {
                          "type": "integer",
                          "description": "Number of endpoints in 'timeout' status."
                        },
                        "endpoints_failed": {
                          "type": "integer",
                          "description": "Number of endpoints in 'failed' status."
                        },
                        "endpoints_completed_successfully": {
                          "type": "integer",
                          "description": "Number of endpoints in 'completed successfully' status."
                        },
                        "endpoints_pending_abort": {
                          "type": "integer",
                          "description": "Number of endpoints in 'pending abort' status."
                        },
                        "endpoints_aborted": {
                          "type": "integer",
                          "description": "Number of endpoints in 'aborted' status."
                        },
                        "endpoints_expired": {
                          "type": "integer",
                          "description": "Number of endpoints in 'expired' status."
                        },
                        "error_message": {
                          "type": "string",
                          "description": "Error message regarding permissions for running APIs or stating that the action doesn’t exist."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "general_status": "PENDING",
                        "endpoints_pending": 1,
                        "endpoints_canceled": 0,
                        "endpoints_in_progress": 0,
                        "endpoints_timeout": 0,
                        "endpoints_failed": 0,
                        "endpoints_completed_successfully": 0,
                        "endpoints_pending_abort": 0,
                        "endpoints_aborted": 0,
                        "endpoints_expired": 0
                      }
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "reply": {
                        "general_status": "PENDING",
                        "endpoints_pending": 1,
                        "endpoints_canceled": 0,
                        "endpoints_in_progress": 0,
                        "endpoints_timeout": 0,
                        "endpoints_failed": 0,
                        "endpoints_completed_successfully": 0,
                        "endpoints_pending_abort": 0,
                        "endpoints_aborted": 0,
                        "endpoints_expired": 0
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/scripts/get_scripts": {
      "post": {
        "tags": [
          "Script execution"
        ],
        "summary": "Get Scripts",
        "description": "Get a list of scripts available in the scripts library.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "postGetScripts",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "You can send a request to retrieve either **all** or **filtered** results.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.\nAn empty dictionary returns all results.",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "name",
                                "description",
                                "created_by",
                                "script_uid",
                                "modification_date",
                                "windows_supported",
                                "linux_supported",
                                "macos_supported",
                                "is_high_risk"
                              ],
                              "description": "Identifies a list the filters match. Filters are based on the following keywords:\n- `name`: String of the script name.\n- `description`: String of the script description.\n- `created_by`: String of the user name of who created the script.\n- `script_uid`: GUID, global ID of the script, used to identify the script when executing.\n- `modification_date`: Timestamp of when the script was last modified.\n- `windows_supported`: Whether the script can be executed on Windows operating system.\n- `linux_supported`: Whether the script can be executed on Linux operating system.\n- `macos_supported`: Whether the script can be executed on Mac operating system.\n- `is_high_risk`: Whether the script has a high-risk outcome."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "in",
                                "gte",
                                "lte"
                              ],
                              "description": "String that identifies the comparison operator you want to use for this filter. Valid keywords and values are:\n`in`\n- `name`, `description`, `created_by`, `script_uid`, `windows_supported`, `linux_supported`, `macos_supported`, `is_high_risk`: List of strings.\n`gte` / `lte`\n- `modification_date`: Integer in timestamp epoch milliseconds."
                            },
                            "value": {
                              "description": "Value that this filter must match.",
                              "oneOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "integer"
                                }
                              ]
                            }
                          },
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ]
                        }
                      }
                    },
                    "required": [
                      "filters"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "is_high_risk",
                          "operator": "in",
                          "value": [
                            "false"
                          ]
                        }
                      ]
                    }
                  }
                }
              },
              "examples": {
                "Request all results": {
                  "value": {
                    "request_data": {}
                  }
                },
                "Request filtered results": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "is_high_risk",
                          "operator": "in",
                          "value": [
                            "false"
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "total_count": {
                          "type": "integer",
                          "description": "Number of total results of this filter without paging."
                        },
                        "result_count": {
                          "type": "integer",
                          "description": "Number of scripts returned as result."
                        },
                        "scripts": {
                          "type": "array",
                          "description": "An array of scripts.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "script_id": {
                                "type": "string",
                                "description": "Script ID."
                              },
                              "name": {
                                "type": "string",
                                "description": "Name of script."
                              },
                              "description": {
                                "type": "string",
                                "description": "Description of script."
                              },
                              "modification_date": {
                                "type": "integer",
                                "description": "Timestamp of when the script was last modified."
                              },
                              "created_by": {
                                "type": "string",
                                "description": "Name of the user who created the script."
                              },
                              "is_high_risk": {
                                "type": "boolean",
                                "description": "Whether the script has a high-risk outcome."
                              },
                              "windows_supported": {
                                "type": "boolean",
                                "description": "Whether the script can be executed on Windows OS."
                              },
                              "linux_supported": {
                                "type": "boolean",
                                "description": "Whether the script can be executed on Linux OS."
                              },
                              "macos_supported": {
                                "type": "boolean",
                                "description": "Whether the script can be executed on macOS."
                              },
                              "script_uid": {
                                "type": "string",
                                "description": "GUID, global ID of the script, used to identify the script when executing."
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "total_count": 129,
                        "result_count": 24,
                        "scripts": [
                          {
                            "script_id": "<script ID>",
                            "name": "list_directories",
                            "description": "List all directories under path",
                            "modification_date": 1585074627259,
                            "created_by": "Palo Alto Networks",
                            "is_high_risk": false,
                            "windows_supported": true,
                            "linux_supported": true,
                            "macos_supported": true,
                            "script_uid": "<unique ID>"
                          },
                          {
                            "script_id": "<script ID>",
                            "name": "test 1",
                            "description": "test",
                            "modification_date": 1583052236449,
                            "created_by": "User 1",
                            "is_high_risk": false,
                            "windows_supported": true,
                            "linux_supported": false,
                            "macos_supported": false,
                            "script_uid": "<unique ID>"
                          },
                          {
                            "script_id": "<script ID>",
                            "name": "test 2",
                            "description": "test 2",
                            "modification_date": 1582709343498,
                            "created_by": "User 2",
                            "is_high_risk": false,
                            "windows_supported": true,
                            "linux_supported": true,
                            "macos_supported": true,
                            "script_uid": "<unique ID>"
                          }
                        ]
                      }
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "reply": {
                        "total_count": 129,
                        "result_count": 24,
                        "scripts": [
                          {
                            "script_id": "<script ID>",
                            "name": "list_directories",
                            "description": "List all directories under path",
                            "modification_date": 1585074627259,
                            "created_by": "Palo Alto Networks",
                            "is_high_risk": false,
                            "windows_supported": true,
                            "linux_supported": true,
                            "macos_supported": true,
                            "script_uid": "<unique ID>"
                          },
                          {
                            "script_id": "<script ID>",
                            "name": "test 1",
                            "description": "test",
                            "modification_date": 1583052236449,
                            "created_by": "User 1",
                            "is_high_risk": false,
                            "windows_supported": true,
                            "linux_supported": false,
                            "macos_supported": false,
                            "script_uid": "<unique ID>"
                          },
                          {
                            "script_id": "<script ID>",
                            "name": "test 2",
                            "description": "test 2",
                            "modification_date": 1582709343498,
                            "created_by": "User 2",
                            "is_high_risk": false,
                            "windows_supported": true,
                            "linux_supported": true,
                            "macos_supported": true,
                            "script_uid": "<unique ID>"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/scripts/get_script_execution_results": {
      "post": {
        "tags": [
          "Script execution"
        ],
        "summary": "Get Script Execution Results",
        "description": "Retrieve the results of a script execution action.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "postGetScriptExecutionResults",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "action_id": {
                        "type": "string",
                        "description": "Action ID. This can be found in the Cortex XDR console **Response** > **Action Center** > **Action ID** field."
                      }
                    },
                    "required": [
                      "action_id"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "action_id": "<action ID>"
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "action_id": "<action_id>"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "script_name": {
                          "type": "string",
                          "description": "Name of the script executed."
                        },
                        "script_description": {
                          "type": "string",
                          "description": "Description of the script executed."
                        },
                        "script_parameters": {
                          "type": "array",
                          "description": "For each input parameter used in this execution, an array of `name` and `value`.",
                          "items": {
                            "type": "object"
                          }
                        },
                        "date_created": {
                          "type": "string",
                          "description": "Timestamp in which the action was initiated."
                        },
                        "scope": {
                          "type": "string",
                          "description": "Number of endpoints included in this action according to the filter used to select them."
                        },
                        "error_message": {
                          "type": "string",
                          "description": "Error message regarding permissions for running APIs."
                        },
                        "results": {
                          "type": "array",
                          "description": "For each endpoint Cortex XDR displays any returned value by the script. The number of the results and their name are dynamic per script.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "endpoint_name": {
                                "type": "string",
                                "description": "Endpoint name."
                              },
                              "endpoint_ip_address": {
                                "type": "array",
                                "description": "Endpoint IP address.",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "endpoint_status": {
                                "type": "string",
                                "description": "Endpoint status."
                              },
                              "domain": {
                                "type": "string",
                                "description": "Domain to which the endpoint belongs."
                              },
                              "endpoint_id": {
                                "type": "string",
                                "description": "Endpoint ID."
                              },
                              "execution_status": {
                                "type": "string",
                                "description": "Execution status of this endpoint."
                              },
                              "standard_output": {
                                "description": "The STDOUT + STDERR logged by the script during this execution."
                              },
                              "retrieved_files": {
                                "type": "integer",
                                "description": "Number of successfully retrieved files."
                              },
                              "failed_files": {
                                "type": "integer",
                                "description": "Number of files failed to retrieve."
                              },
                              "retention_date": {
                                "description": "Timestamp of when the retrieved files will be deleted from the server."
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "script_name": "snippet script",
                        "script_description": null,
                        "script_parameters": [],
                        "date_created": "2020-03-29 13:21:59",
                        "scope": "win_10and 21 other endpoints",
                        "error_message": "",
                        "results": [
                          {
                            "endpoint_name": "<name>",
                            "endpoint_ip_address": [
                              "<IP address>"
                            ],
                            "endpoint_status": "LOST",
                            "domain": "aaaa",
                            "endpoint_id": "<endpoint ID>",
                            "execution_status": "PENDING",
                            "standard_output": null,
                            "retrieved_files": 0,
                            "failed_files": 0,
                            "retention_date": null
                          },
                          {
                            "endpoint_name": "<name>",
                            "endpoint_ip_address": [
                              "<IP address>"
                            ],
                            "endpoint_status": "LOST",
                            "domain": "<domain name>",
                            "endpoint_id": "<endpoint ID>",
                            "execution_status": "PENDING",
                            "standard_output": null,
                            "retrieved_files": 0,
                            "failed_files": 0,
                            "retention_date": null
                          },
                          {
                            "endpoint_name": "<name>",
                            "endpoint_ip_address": [
                              "<IP address>"
                            ],
                            "endpoint_status": "DISCONNECTED",
                            "domain": "WORKGROUP",
                            "endpoint_id": "<endpoint ID>",
                            "execution_status": "PENDING",
                            "standard_output": null,
                            "retrieved_files": 0,
                            "failed_files": 0,
                            "retention_date": null
                          }
                        ]
                      }
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "reply": {
                        "script_name": "snippet script",
                        "script_description": "",
                        "script_parameters": [],
                        "date_created": "2020-03-29 13:21:59",
                        "scope": "win_10and 21 other endpoints",
                        "error_message": "",
                        "results": [
                          {
                            "endpoint_name": "<name>",
                            "endpoint_ip_address": [
                              "<IP address>"
                            ],
                            "endpoint_status": "LOST",
                            "domain": "aaaa",
                            "endpoint_id": "<endpoint ID>",
                            "execution_status": "PENDING",
                            "standard_output": null,
                            "retrieved_files": 0,
                            "failed_files": 0,
                            "retention_date": null
                          },
                          {
                            "endpoint_name": "<name>",
                            "endpoint_ip_address": [
                              "<IP address>"
                            ],
                            "endpoint_status": "LOST",
                            "domain": "<domain name>",
                            "endpoint_id": "<endpoint ID>",
                            "execution_status": "PENDING",
                            "standard_output": null,
                            "retrieved_files": 0,
                            "failed_files": 0,
                            "retention_date": null
                          },
                          {
                            "endpoint_name": "<name>",
                            "endpoint_ip_address": [
                              "<IP address>"
                            ],
                            "endpoint_status": "DISCONNECTED",
                            "domain": "WORKGROUP",
                            "endpoint_id": "<endpoint ID>",
                            "execution_status": "PENDING",
                            "standard_output": null,
                            "retrieved_files": 0,
                            "failed_files": 0,
                            "retention_date": null
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/scripts/get_script_execution_results_files": {
      "post": {
        "tags": [
          "Script execution"
        ],
        "summary": "Get Script Execution Result Files",
        "description": "Get the files retrieved from a specific endpoint during a script execution.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "postGetScriptExecutionResultsFiles",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "action_id": {
                        "type": "string",
                        "description": "Identifier of the action, can be found in Cortex XDR console **Response** > **Action Center** > **Action ID** field."
                      },
                      "endpoint_id": {
                        "type": "string",
                        "description": "Endpoint ID."
                      }
                    },
                    "required": [
                      "action_id",
                      "endpoint_id"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "action_id": "<action ID>",
                      "endpoint_id": "<endpoint ID>"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "data": {
                          "type": "string",
                          "description": "A signed public link to a zip file containing the retrieved files. Link expires after 10 minutes."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": {
                        "DATA": "https://example-link"
                      }
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "reply": {
                        "DATA": "https://example-link"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/scripts/get_script_code": {
      "post": {
        "tags": [
          "Script execution"
        ],
        "summary": "Get Script Code",
        "description": "Get the code of a specific script in the script library.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "postGetScriptCode",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "script_uid": {
                        "type": "string",
                        "description": "Unique identifier of the script, returned by the [Get Scripts](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/script-execution#post-public_api-v1-scripts-get_scripts) API per script."
                      }
                    },
                    "required": [
                      "script_uid"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "example-1": {
                    "request_data": {
                      "script_uid": "<unique ID>"
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "script_uid": "<unique ID>"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "string",
                      "description": "JSON object containing the query result."
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "reply": "import os\nimport sys\nimport traceback\n\n\ndef run(path, num_levels):\n\tpath = os.path.expanduser(path)\n\tpath = os.path.expandvars(path)\n\treturn scan_directory_recursive(path, num_levels)\n\n\ndef scan_directory_recursive(directory, level):\n\tif level == 0:\n\t\treturn []\n\n\tsubfolders = []\n\ttry:\n\t\twith os.scandir(directory) as entries:\n\t\t\tfor f in entries:\n\t\t\t\ttry:\n\t\t\t\t\tif f.is_dir():\n\t\t\t\t\t\tsubfolders.append(f.path)\n\t\t\t\texcept (OSError,PermissionError):\n\t\t\t\t\tsys.stderr.write(f\"Failed access <{f.path}>\\n\")\n\n\t\tfor folder in list(subfolders):\n\t\t    subfolders.extend(scan_directory_recursive(folder, level-1))\n\texcept Exception:\n\t\tsys.stderr.write(f\"Failed scanning directory: <{directory}>, error: {traceback.format_exc()}\")\n\n\treturn subfolders\n"
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "reply": "import os\nimport sys\nimport traceback\n\n\ndef run(path, num_levels):\n\tpath = os.path.expanduser(path)\n\tpath = os.path.expandvars(path)\n\treturn scan_directory_recursive(path, num_levels)\n\n\ndef scan_directory_recursive(directory, level):\n\tif level == 0:\n\t\treturn []\n\n\tsubfolders = []\n\ttry:\n\t\twith os.scandir(directory) as entries:\n\t\t\tfor f in entries:\n\t\t\t\ttry:\n\t\t\t\t\tif f.is_dir():\n\t\t\t\t\t\tsubfolders.append(f.path)\n\t\t\t\texcept (OSError,PermissionError):\n\t\t\t\t\tsys.stderr.write(f\"Failed access <{f.path}>\\n\")\n\n\t\tfor folder in list(subfolders):\n\t\t    subfolders.extend(scan_directory_recursive(folder, level-1))\n\texcept Exception:\n\t\tsys.stderr.write(f\"Failed scanning directory: <{directory}>, error: {traceback.format_exc()}\")\n\n\treturn subfolders\n"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/audits/management_logs": {
      "post": {
        "tags": [
          "Audit log"
        ],
        "summary": "Get Audit Management Log",
        "description": "Get audit management logs.\n- Response is concatenated using AND condition (OR is not supported).\n- Maximum result set size is 100.\n- Offset is the zero-based number of cases from the start of the result set.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "postManagementLogs",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "To retrieve all of the results, you need to iterate over the `total_count` in increments of 100 using `search_from` and `search_to` fields in the request.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.\nAn empty dictionary returns all results.",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "Array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "email",
                                "type",
                                "sub_type",
                                "result",
                                "timestamp"
                              ],
                              "description": "Filter is based on the following keywords:\n- `email`: User's email address.\n- `type`: Type of audit log.\n- `sub_type`: Subtype of audit log.\n- `result`: Result type.\n- `timestamp`: Log timestamp."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "in",
                                "gte",
                                "lte"
                              ],
                              "description": "Identifies the comparison operator you want to use for this filter. Valid keywords and values are:\n`in`\n- `email`, `type`, `sub_type`, `result`: List of strings\n`gte` / `lte`\n- `timestamp`: Integer in timestamp epoch milliseconds\n"
                            },
                            "value": {
                              "description": "Value that this filter must match.\n- `timestamp`: Integer representing the number of milliseconds after the Unix epoch, UTC timezone.\n- All other fields require a string value. In the case of `in` operator, the value is an array.",
                              "oneOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "integer"
                                }
                              ]
                            }
                          },
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ]
                        }
                      },
                      "search_from": {
                        "type": "integer",
                        "description": "An integer representing the starting offset within the query result set from which you want management logs returned.\nManagement logs are returned as a zero-based list. Any log indexed less than this value is not returned in the final result set and defaults to zero."
                      },
                      "search_to": {
                        "type": "integer",
                        "description": "An integer representing the end offset within the result set after which you do not want management logs returned.\nLogs in the management log list that are indexed higher than this value are not returned in the final results set. Defaults to 100, which returns all logs to the end of the list.",
                        "default": 100
                      },
                      "sort": {
                        "type": "object",
                        "description": "Identifies the sort order for the result set. By default the sort is defined as creation-time and desc.",
                        "properties": {
                          "field": {
                            "type": "string",
                            "enum": [
                              "type",
                              "sub-type",
                              "result"
                            ],
                            "description": "The field you want to sort by."
                          },
                          "keyword": {
                            "type": "string",
                            "enum": [
                              "asc",
                              "desc"
                            ],
                            "description": "Whether to sort in ascending or descending order.",
                            "default": "desc"
                          }
                        },
                        "required": [
                          "field",
                          "keyword"
                        ]
                      }
                    }
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "search_from": 0,
                      "search_to": 19,
                      "sort": {
                        "field": "email",
                        "keyword": "ASC"
                      },
                      "filters": [
                        {
                          "field": "type",
                          "operator": "in",
                          "value": [
                            "AUTH"
                          ]
                        },
                        {
                          "field": "sub_type",
                          "operator": "in",
                          "value": [
                            "login"
                          ]
                        },
                        {
                          "field": "result",
                          "operator": "in",
                          "value": [
                            "SUCCESS"
                          ]
                        },
                        {
                          "field": "timestamp",
                          "operator": "lte",
                          "value": 1565074114053
                        }
                      ]
                    }
                  }
                }
              },
              "examples": {
                "Request all management logs from older to newer": {
                  "value": {
                    "request_data": {
                      "search_from": 0,
                      "search_to": 100,
                      "sort": {
                        "field": "timestamp",
                        "keyword": "asc"
                      }
                    }
                  }
                },
                "Request all results": {
                  "value": {
                    "request_data": {}
                  }
                },
                "Request all successful login events after 06-Aug-19, sorted by timestamp oldest to newest": {
                  "value": {
                    "request_data": {
                      "search_from": 0,
                      "search_to": 100,
                      "sort": {
                        "field": "timestamp",
                        "keyword": "asc"
                      },
                      "filters": [
                        {
                          "field": "type",
                          "operator": "in",
                          "value": [
                            "AUTH"
                          ]
                        },
                        {
                          "field": "sub_type",
                          "operator": "in",
                          "value": [
                            "login"
                          ]
                        },
                        {
                          "field": "result",
                          "operator": "in",
                          "value": [
                            "SUCCESS"
                          ]
                        },
                        {
                          "field": "timestamp",
                          "operator": "gte",
                          "value": 1565074114053
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "total_count": {
                          "type": "integer",
                          "description": "Number of total results of this filter without paging."
                        },
                        "result_count": {
                          "type": "integer",
                          "description": "Number of returned items."
                        },
                        "data": {
                          "type": "array",
                          "description": "List of audit items.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "AUDIT_ID": {
                                "type": "integer"
                              },
                              "AUDIT_OWNER_NAME": {
                                "type": "string"
                              },
                              "AUDIT_OWNER_EMAIL": {
                                "type": "string"
                              },
                              "AUDIT_ASSET_JSON": {
                                "type": "string"
                              },
                              "AUDIT_ASSET_NAMES": {
                                "type": "string"
                              },
                              "AUDIT_HOSTNAME": {
                                "type": "string"
                              },
                              "AUDIT_RESULT": {
                                "type": "string"
                              },
                              "AUDIT_REASON": {
                                "type": "string"
                              },
                              "AUDIT_DESCRIPTION": {
                                "type": "string"
                              },
                              "AUDIT_ENTITY": {
                                "type": "string",
                                "enum": [
                                  "LIVE_TERMINAL",
                                  "RULES",
                                  "RULES_EXCEPTIONS",
                                  "AUTH",
                                  "RESPONSE",
                                  "INCIDENT_MANAGEMENT",
                                  "ALERT_MANAGEMENT",
                                  "INCIDENT_TIMELINE_EVENT",
                                  "ENDPOINT_MANAGEMENT",
                                  "ENDPOINT_GROUPS",
                                  "ALERT_WHITELIST",
                                  "PUBLIC_API",
                                  "DISTRIBUTIONS",
                                  "STARRED_INCIDENTS",
                                  "POLICY_PROFILES",
                                  "DEVICE_CONTROL_PROFILES",
                                  "DEVICE_CONTROL_POLICY",
                                  "PROTECTION_PROFILES",
                                  "DEVICE_CONTROL_PROFILE",
                                  "HOST_FIREWALL_PROFILE",
                                  "HOST_DISK_ENCRYPTION_PROFILE",
                                  "POLICY_RULES",
                                  "PROTECTION_POLICY",
                                  "DEVICE_CONTROL_TEMP_EXCEPTIONS",
                                  "DEVICE_CONTROL_GLOBAL_EXCEPTIONS",
                                  "DEVICE_CONTROL_CUSTOM_DEVICE",
                                  "GLOBAL_EXCEPTIONS",
                                  "MSSP",
                                  "REPORTING",
                                  "DASHBOARD",
                                  "BROKER_API",
                                  "BROKER_VM",
                                  "MTH",
                                  "MDR",
                                  "ALERT_NOTIFICATIONS",
                                  "INTEGRATIONS",
                                  "QUERY",
                                  "SCRIPT_EXECUTION",
                                  "ALERT_RULES",
                                  "COLLECTION",
                                  "API_KEY",
                                  "EDL",
                                  "VA_RESCAN_ENDPOINT",
                                  "HI_RESCAN_ENDPOINT",
                                  "REMEDIATION",
                                  "INGEST_DATA",
                                  "LICENSING",
                                  "AGENT_CONFIGURATION",
                                  "PERMISSIONS",
                                  "SCORING_RULES",
                                  "LAYOUT_RULES",
                                  "PLAYBOOK_TRIGGERS",
                                  "FEATURED_ALERT_FIELDS",
                                  "SYSTEM",
                                  "TENANT_TAKEOVER",
                                  "SCOUTER_POLICY",
                                  "SCOUTER_PROFILE",
                                  "SCOUTER_GROUPS",
                                  "ALLOWED_DOMAINS",
                                  "QUERY_LIBRARY",
                                  "TENANT_CONFIGURATION",
                                  "SCOUTER_CONFIGURATION",
                                  "HOST_FIREWALL",
                                  "XIF",
                                  "XDM",
                                  "ACTION_CENTER",
                                  "XCLOUD_INTEGRATION",
                                  "DATASETS",
                                  "XSOAR",
                                  "SECURITY_SETTINGS",
                                  "ALERT_EXCLUSION",
                                  "INDICATOR_RULES",
                                  "EVENT_FORWARDING",
                                  "ASSET_INVENTORY",
                                  "SERVER_SETTINGS",
                                  "ASSET_ROLES",
                                  "CUSTOM_FIELDS",
                                  "AUTOMATION_RULES",
                                  "AGENT_EXCEPTION_RULES",
                                  "REMEDIATION_PATH_RULES"
                                ]
                              },
                              "AUDIT_ENTITY_SUBTYPE": {
                                "type": "string"
                              },
                              "AUDIT_SESSION_ID": {
                                "type": "integer"
                              },
                              "AUDIT_CASE_ID": {
                                "type": "integer"
                              },
                              "AUDIT_INSERT_TIME": {
                                "type": "integer"
                              },
                              "AUDIT_SEVERITY": {
                                "type": "string"
                              },
                              "AUDIT_LINK": {
                                "type": "string"
                              },
                              "AUDIT_SOURCE_IP": {
                                "type": "string"
                              },
                              "AUDIT_USER_AGENT": {
                                "type": "string"
                              },
                              "AUDIT_USER_ROLES": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "AUDIT_ADDITIONAL_INFORMATION": {
                                "type": "object",
                                "properties": {
                                  "endpoint_names": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "endpoint_count": {
                                    "type": "integer"
                                  }
                                }
                              },
                              "AUDIT_OBJECT_ID": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "total_count": 1,
                        "result_count": 1,
                        "data": [
                          {
                            "AUDIT_ID": 1,
                            "AUDIT_OWNER_NAME": "User Name",
                            "AUDIT_OWNER_EMAIL": "username@paloaltonetworks.com",
                            "AUDIT_ASSET_JSON": "{}",
                            "AUDIT_ASSET_NAMES": "",
                            "AUDIT_HOSTNAME": null,
                            "AUDIT_RESULT": "SUCCESS",
                            "AUDIT_REASON": null,
                            "AUDIT_DESCRIPTION": null,
                            "AUDIT_ENTITY": null,
                            "AUDIT_ENTITY_SUBTYPE": "Login",
                            "AUDIT_SESSION_ID": null,
                            "AUDIT_CASE_ID": null,
                            "AUDIT_INSERT_TIME": 1565074114053
                          }
                        ]
                      }
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "reply": {
                        "total_count": 1,
                        "result_count": 1,
                        "data": [
                          {
                            "AUDIT_ID": 1,
                            "AUDIT_OWNER_NAME": "User Name",
                            "AUDIT_OWNER_EMAIL": "username@paloaltonetworks.com",
                            "AUDIT_ASSET_JSON": "{}",
                            "AUDIT_ASSET_NAMES": "",
                            "AUDIT_HOSTNAME": "",
                            "AUDIT_RESULT": "SUCCESS",
                            "AUDIT_REASON": "",
                            "AUDIT_DESCRIPTION": "",
                            "AUDIT_ENTITY": "AUTH",
                            "AUDIT_ENTITY_SUBTYPE": "Login",
                            "AUDIT_SESSION_ID": 382303947890,
                            "AUDIT_CASE_ID": 473829372,
                            "AUDIT_INSERT_TIME": 1565074114053,
                            "AUDIT_SEVERITY": "SEV_020_LOW",
                            "AUDIT_LINK": null,
                            "AUDIT_SOURCE_IP": "31.174.156.148",
                            "AUDIT_USER_AGENT": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36",
                            "AUDIT_USER_ROLES": [
                              "Account Admin"
                            ],
                            "AUDIT_ADDITIONAL_INFORMATION": {
                              "endpoint_names": [
                                "WIN-fgo6762G"
                              ],
                              "endpoint_count": 1
                            },
                            "AUDIT_OBJECT_ID": null
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/healthcheck": {
      "get": {
        "tags": [
          "System management"
        ],
        "summary": "System Health Check",
        "description": "Perform a health check of your Cortex environment.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "getHealthcheck",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "The condition of your Cortex environment."
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "status": "available"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/system/get_tenant_info": {
      "post": {
        "tags": [
          "System management"
        ],
        "summary": "Get Tenant Info",
        "description": "Get your tenant license information.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-system-get_tenant_info",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "List of available licenses, number of devices, and purchased add-ons on your tenant.",
                      "properties": {
                        "xsiam_premium_expiration": {
                          "type": "integer"
                        },
                        "purchased_xsiam_premium": {
                          "type": "object",
                          "properties": {
                            "users": {
                              "type": "integer"
                            },
                            "gb": {
                              "type": "integer"
                            },
                            "agents": {
                              "type": "integer"
                            }
                          }
                        },
                        "pro_per_endpoint_expiration": {
                          "type": "integer"
                        },
                        "purchased_pro_per_endpoint": {
                          "type": "object",
                          "properties": {
                            "agents": {
                              "type": "integer"
                            }
                          }
                        },
                        "data_enabled_pro_per_endpoint": {
                          "type": "integer"
                        },
                        "prevent_expiration": {
                          "type": "integer"
                        },
                        "purchased_prevent": {
                          "type": "integer"
                        },
                        "installed_prevent": {
                          "type": "integer"
                        },
                        "pro_gb_expiration": {
                          "type": "integer"
                        },
                        "purchased_pro_gb": {
                          "type": "object",
                          "properties": {
                            "gb": {
                              "type": "integer"
                            }
                          }
                        },
                        "installed_pro_gb": {
                          "type": "integer"
                        },
                        "compute_unit_expiration": {
                          "type": "integer"
                        },
                        "purchased_compute_unit": {
                          "type": "integer"
                        },
                        "host_insights_expiration": {
                          "type": "integer"
                        },
                        "enabled_host_insights": {
                          "type": "integer"
                        },
                        "purchased_host_insights": {
                          "type": "integer"
                        },
                        "forensics_expiration": {
                          "type": "integer"
                        },
                        "enabled_forensics": {
                          "type": "integer"
                        },
                        "pro_cloud_expiration": {
                          "type": "integer"
                        },
                        "purchased_pro_cloud": {
                          "type": "object",
                          "properties": {
                            "agents": {
                              "type": "integer"
                            }
                          }
                        },
                        "installed_pro_cloud": {
                          "type": "integer"
                        },
                        "data_enabled_pro_cloud": {
                          "type": "integer"
                        },
                        "identity_threat_expiration": {
                          "type": "integer"
                        },
                        "xth_expiration": {
                          "type": "integer"
                        },
                        "purchased_xth": {
                          "type": "integer"
                        },
                        "threat_intelligence_management_expiration": {
                          "type": "integer"
                        },
                        "purchased_threat_intelligence_management": {
                          "type": "integer"
                        },
                        "attack_surface_management_expiration": {
                          "type": "integer"
                        },
                        "purchased_attack_surface_management": {
                          "type": "integer"
                        },
                        "xsiam_ep_hot_expiration": {
                          "type": "string"
                        },
                        "purchased_xsiam_ep_hot": {
                          "type": "integer"
                        },
                        "xsiam_ep_cold_expiration": {
                          "type": "string"
                        },
                        "purchased_xsiam_ep_cold": {
                          "type": "integer"
                        },
                        "xsiam_gb_hot_expiration": {
                          "type": "string"
                        },
                        "purchased_xsiam_gb_hot": {
                          "type": "integer"
                        },
                        "xsiam_gb_cold_expiration": {
                          "type": "string"
                        },
                        "purchased_xsiam_gb_cold": {
                          "type": "integer"
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "xsiam_premium_expiration": 12478046378,
                        "purchased_xsiam_premium": {
                          "users": 100,
                          "gb": 100,
                          "agents": 500
                        },
                        "pro_per_endpoint_expiration": 12478046378,
                        "purchased_pro_per_endpoint": {
                          "agents": 200
                        },
                        "data_enabled_pro_per_endpoint": 26,
                        "prevent_expiration": 0,
                        "purchased_prevent": 0,
                        "installed_prevent": 27,
                        "pro_tb_expiration": 12478046378,
                        "purchased_pro_tb": {
                          "tb": 1
                        },
                        "installed_pro_tb": 0,
                        "compute_unit_expiration": 0,
                        "purchased_compute_unit": 16,
                        "host_insights_expiration": 12478046378,
                        "enabled_host_insights": 26,
                        "purchased_host_insights": 400,
                        "forensics_expiration": 0,
                        "enabled_forensics": 12
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "xsiam_premium_expiration": 12478046378,
                        "purchased_xsiam_premium": {
                          "users": 100,
                          "gb": 100,
                          "agents": 500
                        },
                        "pro_per_endpoint_expiration": 12478046378,
                        "purchased_pro_per_endpoint": {
                          "agents": 200
                        },
                        "data_enabled_pro_per_endpoint": 26,
                        "prevent_expiration": 0,
                        "purchased_prevent": 0,
                        "installed_prevent": 27,
                        "pro_tb_expiration": 12478046378,
                        "purchased_pro_gb": {
                          "gb": 1
                        },
                        "installed_pro_tb": 0,
                        "compute_unit_expiration": 0,
                        "purchased_compute_unit": 16,
                        "host_insights_expiration": 12478046378,
                        "enabled_host_insights": 26,
                        "purchased_host_insights": 400,
                        "forensics_expiration": 0,
                        "enabled_forensics": 12
                      }
                    }
                  },
                  "Example 2": {
                    "value": {
                      "reply": {
                        "pro_cloud_expiration": 0,
                        "purchased_pro_cloud": 0,
                        "installed_pro_cloud": 4,
                        "data_enabled_pro_cloud": 4,
                        "pro_per_endpoint_expiration": "Nov 7th 2025 07:59:59",
                        "purchased_pro_per_endpoint": {
                          "agents": 200
                        },
                        "data_enabled_pro_per_endpoint": 4,
                        "prevent_expiration": 0,
                        "purchased_prevent": 0,
                        "installed_prevent": 4,
                        "pro_gb_expiration": "Nov 8th 2027 07:59:59",
                        "purchased_pro_gb": {
                          "gb": 33
                        },
                        "identity_threat_expiration": "Aug 13th 2023 11:03:41",
                        "compute_unit_expiration": "Nov 7th 2025 07:59:59",
                        "purchased_compute_unit": 50,
                        "host_insights_expiration": "Nov 8th 2027 07:59:59",
                        "enabled_host_insights": 8,
                        "purchased_host_insights": 250,
                        "forensics_expiration": 0,
                        "enabled_forensics": 4,
                        "xsiam_ep_hot_expiration": "Jan 2nd 2024 23:59:59",
                        "purchased_xsiam_ep_hot": 2
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/api_keys/get_api_keys": {
      "post": {
        "summary": "Get existing API Keys",
        "tags": [
          "API Keys"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "DATA": [
                          {
                            "id": 25,
                            "creation_time": 1709544947832,
                            "created_by": "N/A",
                            "user_name": "Public API - 21",
                            "roles": [
                              "default"
                            ],
                            "security_level": "standard",
                            "comment": null,
                            "expiration": 1710149747184
                          },
                          {
                            "id": 24,
                            "creation_time": 1709544787367,
                            "created_by": "N/A",
                            "user_name": "Public API - 21",
                            "roles": [
                              "default"
                            ],
                            "security_level": "standard",
                            "comment": null,
                            "expiration": 1710149586852
                          },
                          {
                            "id": 23,
                            "creation_time": 1709544227320,
                            "created_by": "N/A",
                            "user_name": "Public API - 21",
                            "roles": [
                              "default"
                            ],
                            "security_level": "standard",
                            "comment": null,
                            "expiration": 1710149026834
                          }
                        ],
                        "FILTER_COUNT": 3,
                        "TOTAL_COUNT": 70
                      }
                    }
                  },
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "The payload of a successful response.",
                      "properties": {
                        "DATA": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "description": "Unique identifier of the API key.",
                                "example": 1
                              },
                              "creation_time": {
                                "type": "integer",
                                "description": "Timestamp when the API key was created, in epoch milliseconds (UTC).",
                                "example": 1658401785463
                              },
                              "created_by": {
                                "type": "string",
                                "description": "Email address of the user who created the API key.",
                                "example": "john.doe@example.com"
                              },
                              "user_name": {
                                "type": "string",
                                "description": "User name of the creator of API Keys."
                              },
                              "roles": {
                                "type": "array",
                                "description": "List of RBAC roles assigned to this API key. Only roles that exist in the tenant's role registry are included.",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "security_level": {
                                "description": "Security level of the API key.",
                                "enum": [
                                  "standard",
                                  "advanced"
                                ]
                              },
                              "comment": {
                                "type": "string",
                                "description": "Comment describing the purpose of the API key.",
                                "nullable": true
                              },
                              "expiration": {
                                "type": "integer",
                                "description": "Expiration timestamp of the API key in epoch milliseconds (UTC). A `null` value indicates the key does not expire. "
                              }
                            }
                          }
                        },
                        "FILTER_COUNT": {
                          "type": "integer",
                          "description": "Total number of API keys matching the applied filters (before pagination)."
                        },
                        "TOTAL_COUNT": {
                          "type": "integer",
                          "description": "Total number of API keys in the tenant (no filters applied).\nNote: The `TOTAL_COUNT` value contains all API Keys, including ones that have expired."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "DATA": [
                          {
                            "id": 25,
                            "creation_time": 1709544947832,
                            "created_by": "N/A",
                            "user_name": "Public API - 21",
                            "roles": [
                              "default"
                            ],
                            "security_level": "standard",
                            "comment": null,
                            "expiration": 1710149747184
                          },
                          {
                            "id": 24,
                            "creation_time": 1709544787367,
                            "created_by": "N/A",
                            "user_name": "Public API - 21",
                            "roles": [
                              "default"
                            ],
                            "security_level": "standard",
                            "comment": null,
                            "expiration": 1710149586852
                          },
                          {
                            "id": 23,
                            "creation_time": 1709544227320,
                            "created_by": "N/A",
                            "user_name": "Public API - 21",
                            "roles": [
                              "default"
                            ],
                            "security_level": "standard",
                            "comment": null,
                            "expiration": 1710149026834
                          }
                        ],
                        "FILTER_COUNT": 3,
                        "TOTAL_COUNT": 70
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "post-public_api-v1-api_keys-get_api_keys",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "expiration",
                          "operator": "lte",
                          "value": 1710149747184
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "required": [
                      "filters"
                    ],
                    "description": "Parameters for filtering, sorting, and paginating API key results.",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields. You can combine multiple filters with `AND` logic.\n\nThe `filters` field is required (can be an empty list `[]` to return all keys). \n\n",
                        "items": {
                          "type": "object",
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ],
                          "properties": {
                            "field": {
                              "enum": [
                                "expiration",
                                "roles",
                                "id"
                              ],
                              "description": "Identifies the API Key field the filter is matching. Filters are based on the following keywords:\r\n- `expiration`: Time the API Key expires in epoch milliseconds.\r\n- `roles`: The role assigned to the API Key at creation.\r\n- `id`: API Key ID."
                            },
                            "operator": {
                              "enum": [
                                "gte",
                                "lte",
                                "contains",
                                "in"
                              ],
                              "description": "Identifies the comparison operator you want to use for this filter. Valid keywords are:\r\n\r\n- `gte` / `lte` operator is used with `expiration` field (Integer in timestamp epoch milliseconds).\r\n\r\n- `contains` operator is used with `roles` field (Array of strings).\r\n\r\n- `in` operator is used with `id` field (Array of integers)."
                            },
                            "value": {
                              "oneOf": [
                                {
                                  "type": "array",
                                  "description": "Array of API key IDs (for `id` field with `in` operator)",
                                  "items": {
                                    "type": "integer"
                                  }
                                },
                                {
                                  "type": "array",
                                  "description": "Array of role names (for `roles` field with `contains` operator)",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "integer",
                                  "description": "Epoch timestamp in milliseconds (for `expiration` field)"
                                }
                              ],
                              "description": "Value that this filter must match. The contents of this field will differ depending on the API Key field that you specified for this filter:\r\n- `expiration`: Integer representing the number of milliseconds after the Unix epoch, UTC timezone.\r\n- `roles`: Array of strings representing the roles in the Cortex environment.\r\n- `id`: Array of integers representing the API Key IDs."
                            }
                          }
                        }
                      },
                      "sort": {
                        "type": "object",
                        "description": "Sort order for results. If omitted, results are sorted by `expiration` descending (default).",
                        "required": [
                          "field",
                          "keyword"
                        ],
                        "properties": {
                          "field": {
                            "enum": [
                              "roles",
                              "expiration"
                            ],
                            "description": "Identifies the API Key field  to sort by."
                          },
                          "keyword": {
                            "description": "Sort direction.",
                            "enum": [
                              "asc",
                              "desc"
                            ]
                          }
                        }
                      },
                      "search_from": {
                        "type": "integer",
                        "description": "Starting offset index for pagination. Specifies the index of the first record to return. ",
                        "default": 0,
                        "minimum": 0
                      },
                      "search_to": {
                        "type": "integer",
                        "description": "Ending offset index for pagination. Specifies the index of the last record to return. ",
                        "minimum": 1
                      }
                    }
                  }
                }
              },
              "examples": {
                "Get API Keys and filter by expiration": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "expiration",
                          "operator": "gte",
                          "value": 1721149909250
                        }
                      ],
                      "sort": {
                        "field": "expiration",
                        "keyword": "asc"
                      },
                      "search_from": 0,
                      "search_to": 100
                    }
                  }
                },
                "Get API Keys and filter by roles": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "roles",
                          "operator": "contains",
                          "value": [
                            "Viewer"
                          ]
                        }
                      ],
                      "search_from": 0,
                      "search_to": 100
                    }
                  }
                },
                "Get API Keys and filter by ID": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "id",
                          "operator": "in",
                          "value": [
                            1,
                            2,
                            3
                          ]
                        }
                      ],
                      "search_from": 0,
                      "search_to": 50
                    }
                  }
                },
                "Retrieve all API keys (no filters)": {
                  "value": {
                    "request_data": {
                      "filters": [],
                      "search_from": 0,
                      "search_to": 100
                    }
                  }
                }
              }
            }
          }
        },
        "description": "Get a list of API Keys filtered by expiration date, role, or ID.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "example": "your-api-key"
            },
            "in": "header",
            "name": "authorization",
            "description": "api_key",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "example": "1"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "api_key_id",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-timestamp",
            "description": "timestamp in milliseconds"
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-nonce",
            "description": "64 byte random string"
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-child-tenant-id",
            "description": "child tenant ID"
          }
        ]
      }
    },
    "/public_api/v1/api_keys/generate": {
      "post": {
        "summary": "Generate an API Key",
        "tags": [
          "API Keys"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "id": 87,
                        "key": "oZFaXmXALCeoWIJTb9ITSqUvl4OBLsUQqCeuYc5FdwMpmpY6QBn8OUePZiLMb"
                      }
                    }
                  },
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "description": "API key ID"
                        },
                        "key": {
                          "type": "string",
                          "description": "API authorization key"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Standard API Key": {
                    "value": {
                      "reply": {
                        "id": 4267,
                        "key": "oZFaXmXCLCdoWIXTb9ITSqUvl4OBLsUQgCeuZc5FdwMpmpY5QBn8OUePZiLMb"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Invalid Input."
          },
          "401": {
            "description": "Unauthorized access. User does not have the required license type to run this API."
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API."
          },
          "500": {
            "description": "Internal Server Error."
          }
        },
        "operationId": "post-public_api-v1-api_keys-generate",
        "description": "Generate a new API Key and define the roles assigned to it and whether the security level is standard or advanced.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "example": "your-api-key"
            },
            "in": "header",
            "name": "authorization",
            "description": "api_key",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "example": "1"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "api_key_id",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-timestamp",
            "description": "timestamp in milliseconds"
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-nonce",
            "description": "64 byte random string"
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-child-tenant-id",
            "description": "child tenant ID"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "roles": [
                        "Public API Action"
                      ],
                      "security_level": "standard"
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "required": [
                      "roles",
                      "security_level"
                    ],
                    "properties": {
                      "roles": {
                        "type": "array",
                        "description": "A list of roles to be assigned to the API Key.",
                        "items": {
                          "type": "string"
                        }
                      },
                      "security_level": {
                        "description": "The security level of the API Key. API Keys with advanced security are hashed with a nonce and timestamp, which is useful for proprietary scripts and are intended to prevent replay attacks. Standard security API Keys can be used as-is and are suitable for curl.",
                        "enum": [
                          "standard",
                          "advanced"
                        ]
                      },
                      "expiration": {
                        "type": "integer",
                        "description": "Integer in timestamp epoch milliseconds. Default value is one week from the time of the API call. Maximum expiration date is six months from the time of the API call."
                      },
                      "comment": {
                        "type": "string",
                        "description": "Comment describing the purpose of the API key."
                      }
                    }
                  }
                }
              },
              "examples": {
                "Generate a standard API Key": {
                  "value": {
                    "request_data": {
                      "roles": [
                        "Public API Action"
                      ],
                      "security_level": "standard",
                      "comment": "API Key for John"
                    }
                  }
                },
                "Generate a standard API Key with expiration": {
                  "value": {
                    "request_data": {
                      "roles": [
                        "Public API Action"
                      ],
                      "security_level": "standard",
                      "expiration": 1725802080000,
                      "comment": "API Key for Joe"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/api_keys/delete": {
      "post": {
        "summary": "Delete API Keys",
        "tags": [
          "API Keys"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "update_count": 2
                      }
                    }
                  },
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "update_count": {
                          "type": "integer",
                          "description": "The number of API Keys deleted."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "update_count": 2
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Invalid Input."
          },
          "401": {
            "description": "Unauthorized access. User does not have the required license type to run this API."
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API."
          },
          "500": {
            "description": "Internal Server Error."
          }
        },
        "operationId": "post-public_api-v1-api_keys-delete",
        "description": "Delete API Keys by ID.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "example": "your-api-key"
            },
            "in": "header",
            "name": "authorization",
            "description": "api_key",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "example": "1"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "api_key_id",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-timestamp",
            "description": "timestamp in milliseconds"
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-nonce",
            "description": "64 byte random string"
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-child-tenant-id",
            "description": "child tenant ID"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "id",
                          "operator": "in",
                          "value": [
                            112,
                            114
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "enum": [
                                "id"
                              ],
                              "description": "Identifies the API Key field the filter is matching. Filters are based on the following keyword:\r\n- `id`: The API Key ID.\r\n"
                            },
                            "operator": {
                              "enum": [
                                "in"
                              ],
                              "description": "Identifies the comparison operator you want to use for this filter. Valid keyword is:\r\n`in`\r\n- `id`: Integer representing the API Key ID.\r\n"
                            },
                            "value": {
                              "type": "array",
                              "description": "Array of API Key IDs.",
                              "items": {
                                "type": "integer"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "id",
                          "operator": "in",
                          "value": [
                            121,
                            134
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/rbac/get_users": {
      "post": {
        "tags": [
          "System management"
        ],
        "summary": "Get Users",
        "description": "Retrieve a list of the current users in your environment.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-rbac-get_users",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "array",
                      "description": "JSON object containing the query result.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "user_email": {
                            "type": "string",
                            "description": "Email address of the user."
                          },
                          "user_first_name": {
                            "type": "string",
                            "description": "First name of the user."
                          },
                          "user_last_name": {
                            "type": "string",
                            "description": "Last name of the user."
                          },
                          "role_name": {
                            "type": "string",
                            "description": "Role name associated with the user."
                          },
                          "last_logged_in": {
                            "type": "integer",
                            "nullable": true,
                            "description": "Timestamp of when the user last logged in."
                          },
                          "user_type": {
                            "type": "string",
                            "description": "Type of user."
                          },
                          "groups": {
                            "type": "array",
                            "description": "Name of user groups associated with the user, if applicable.",
                            "items": {
                              "type": "object"
                            }
                          },
                          "scope": {
                            "type": "array",
                            "description": "Name of scope associated with the user, if applicable.",
                            "items": {
                              "type": "object"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": [
                        {
                          "user_email": "user1@acme.com",
                          "user_first_name": "<first name>",
                          "user_last_name": "<last name>",
                          "role_name": "Account Admin",
                          "last_logged_in": 1640024700241,
                          "user_type": "CSP",
                          "groups": [],
                          "scope": []
                        },
                        {
                          "user_email": "user2@acme.com",
                          "user_first_name": "<first name>",
                          "user_last_name": "<last name>",
                          "role_name": "Account Admin",
                          "last_logged_in": null,
                          "user_type": "CSP",
                          "groups": [],
                          "scope": []
                        },
                        {
                          "user_email": "user3@acme.com",
                          "user_first_name": "<first name>",
                          "user_last_name": "<last name>",
                          "role_name": "Investigator",
                          "last_logged_in": null,
                          "user_type": "CSP",
                          "groups": [],
                          "scope": []
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": [
                        {
                          "user_email": "user1@acme.com",
                          "user_first_name": "<first name>",
                          "user_last_name": "<last name>",
                          "role_name": "Account Admin",
                          "last_logged_in": 1640024700241,
                          "user_type": "CSP",
                          "groups": [],
                          "scope": []
                        },
                        {
                          "user_email": "user2@acme.com",
                          "user_first_name": "<first name>",
                          "user_last_name": "<last name>",
                          "role_name": "Account Admin",
                          "last_logged_in": null,
                          "user_type": "CSP",
                          "groups": [],
                          "scope": []
                        },
                        {
                          "user_email": "user3@acme.com",
                          "user_first_name": "<first name>",
                          "user_last_name": "<last name>",
                          "role_name": "Investigator",
                          "last_logged_in": null,
                          "user_type": "CSP",
                          "groups": [],
                          "scope": []
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/rbac/get_roles": {
      "post": {
        "tags": [
          "System management"
        ],
        "summary": "Get Roles",
        "description": "Retrieve information about one or more roles created in your environment.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-rbac-get_roles",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "role_names": {
                        "type": "array",
                        "description": "List of one or more role names in your environment for which you want detailed information.",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "role_names": [
                        "Role1",
                        "Role2"
                      ]
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "role_names": [
                        "Role1",
                        "Role2"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "array",
                      "description": "JSON object containing the query result.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "pretty_name": {
                            "type": "string",
                            "description": "Name of the role as it appears in the Management Console."
                          },
                          "permissions": {
                            "type": "array",
                            "description": "List of permissions associated with this role.",
                            "items": {
                              "type": "string"
                            }
                          },
                          "insert_time": {
                            "type": "integer",
                            "description": "Timestamp of when the Role was created."
                          },
                          "update_time": {
                            "type": "integer",
                            "description": "Timestamp of when the Role was last updated."
                          },
                          "created_by": {
                            "type": "string",
                            "description": "Email of the user who created the Role."
                          },
                          "description": {
                            "type": "string",
                            "description": "Description of the Role, if available."
                          },
                          "groups": {
                            "type": "array",
                            "description": "Group names associated with the Role.",
                            "items": {
                              "type": "string"
                            }
                          },
                          "users": {
                            "type": "array",
                            "description": "Email addresses of users associated with the Role.",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": [
                        {
                          "pretty_name": "Role1",
                          "permissions": [
                            "Reports",
                            "Playbooks",
                            "Datasets Access Control",
                            "Dashboards",
                            "Scripts"
                          ],
                          "insert_time": 1658315576844,
                          "update_time": null,
                          "created_by": "user1@acme.com",
                          "description": "",
                          "groups": [
                            "group1",
                            "group2"
                          ],
                          "users": []
                        },
                        {
                          "pretty_name": "Role2",
                          "permissions": [
                            "Dashboards",
                            "Datasets Access Control"
                          ],
                          "insert_time": 1661435660656,
                          "update_time": null,
                          "created_by": "user1@acme.com",
                          "description": "",
                          "groups": [],
                          "users": []
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": [
                        {
                          "pretty_name": "Role1",
                          "permissions": [
                            "Reports",
                            "Playbooks",
                            "Datasets Access Control",
                            "Dashboards",
                            "Scripts"
                          ],
                          "insert_time": 1658315576844,
                          "update_time": 0,
                          "created_by": "user1@acme.com",
                          "description": "",
                          "groups": [
                            "group1",
                            "group2"
                          ],
                          "users": []
                        },
                        {
                          "pretty_name": "Role2",
                          "permissions": [
                            "Dashboards",
                            "Datasets Access Control"
                          ],
                          "insert_time": 1661435660656,
                          "update_time": 0,
                          "created_by": "user1@acme.com",
                          "description": "",
                          "groups": [],
                          "users": []
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/rbac/get_user_group": {
      "post": {
        "tags": [
          "System management"
        ],
        "summary": "Get User Groups",
        "description": "Retrieve a list of the current user emails associated with one or more user groups in your environment.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-rbac-get_user_group",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "group_names": {
                        "type": "array",
                        "description": "List of one or more user group names for which you want the associated users.",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "group_names": [
                        "Group1",
                        "Group2"
                      ]
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "group_names": [
                        "Group1",
                        "Group2"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "array",
                      "description": "JSON object containing the query result.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "group_name": {
                            "type": "string",
                            "description": "Name of the User Group."
                          },
                          "description": {
                            "type": "string",
                            "nullable": true,
                            "description": "Description of the User Group, if available."
                          },
                          "pretty_name": {
                            "type": "string",
                            "description": "Name of the User Group as it appears in the Management Console."
                          },
                          "insert_time": {
                            "type": "integer",
                            "description": "Timestamp of when the User Group was created."
                          },
                          "update_time": {
                            "type": "integer",
                            "description": "Timestamp of when the User Group was last updated."
                          },
                          "user_email": {
                            "type": "array",
                            "description": "List of email addresses belonging to the users associated with the User Group.",
                            "items": {
                              "type": "string"
                            }
                          },
                          "source": {
                            "type": "string",
                            "description": "Type of User Group."
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": [
                        {
                          "group_name": "Group1",
                          "description": null,
                          "pretty_name": "Investigator",
                          "insert_time": 1661170832341,
                          "update_time": 1661171650679,
                          "user_email": [
                            "user1@acme.com",
                            "user2@pacme.com",
                            "user3@acme.com",
                            "user4@acme.com",
                            "user5@acme.com"
                          ],
                          "source": "Custom"
                        },
                        {
                          "group_name": "Group2",
                          "description": null,
                          "pretty_name": "Instance Administrator",
                          "insert_time": 1660830450590,
                          "update_time": 1661171631589,
                          "user_email": [
                            "user1@acme.com",
                            "user2@acme.com",
                            "user3@acme.com",
                            "user4@acme.com"
                          ],
                          "source": "Custom"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": [
                        {
                          "group_name": "Group1",
                          "description": null,
                          "pretty_name": "Investigator",
                          "insert_time": 1661170832341,
                          "update_time": 1661171650679,
                          "user_email": [
                            "user1@acme.com",
                            "user2@pacme.com",
                            "user3@acme.com",
                            "user4@acme.com",
                            "user5@acme.com"
                          ],
                          "source": "Custom"
                        },
                        {
                          "group_name": "Group2",
                          "description": null,
                          "pretty_name": "Instance Administrator",
                          "insert_time": 1660830450590,
                          "update_time": 1661171631589,
                          "user_email": [
                            "user1@acme.com",
                            "user2@acme.com",
                            "user3@acme.com",
                            "user4@acme.com"
                          ],
                          "source": "Custom"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors."
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/rbac/set_user_role": {
      "post": {
        "tags": [
          "System management"
        ],
        "summary": "Set a User Role",
        "description": "Add or remove one or more users from a role.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-rbac-set_user_role",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "user_emails": {
                        "type": "array",
                        "description": "List of one or more user emails of users you want to add to or remove from a role.",
                        "items": {
                          "type": "string"
                        }
                      },
                      "role_name": {
                        "type": "string",
                        "description": "Name of the role you want to add a user to. Send an empty field to remove the user."
                      }
                    }
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "user_emails": [
                        "user1@acme.com",
                        "user2@acme.com"
                      ],
                      "role_name": "Role1"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "user_emails": [
                        "user1@acme.com",
                        "user2@acme.com"
                      ],
                      "role_name": "Role1"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "update_count": {
                          "type": "string",
                          "description": "Number of updated users."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "update_count": "2"
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "update_count": "2"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/endpoints/get_endpoint": {
      "post": {
        "tags": [
          "Endpoint Management"
        ],
        "summary": "Get Endpoint",
        "description": "Gets a list of filtered endpoints.\n- The response is concatenated using AND condition (OR is not supported).\n- The maximum result set size is 100.\n- Offset is the zero-based number of endpoints from the start of the result set.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "post-public_api-v1-endpoints-get_endpoint",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "You can send a request to retrieve either all or filtered results.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.\n\nAn empty dictionary returns all results.",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "Array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "endpoint_id_list",
                                "endpoint_status",
                                "dist_name",
                                "first_seen",
                                "last_seen",
                                "ip_list",
                                "group_name",
                                "platform",
                                "alias",
                                "isolate",
                                "hostname",
                                "public_ip_list",
                                "cloud_provider",
                                "cloud_region",
                                "cloud_provider_account_id",
                                "cloud_instance_id",
                                "cloud_id"
                              ],
                              "description": "Identifies the field the filter is matching. Filters are based on the following keywords:\n- `endpoint_id_list`: List of endpoint IDs.\n- `endpoint_status`: Status of the endpoint ID.\n- `dist_name`: Distribution / Installation Package name.\n- `first_seen`: When the agent was first seen.\n- `last_seen`: When the agent was last seen.\n- `ip_list`: List of IP addresses.\n- `group_name`: Group name the agent belongs to.\n- `platform`: Platform name.\n- `alias`: Alias name.\n- `isolate`: If the endpoint was isolated.\n- `hostname`: Host name.\n- `public_ip_list`: Public IP addresses that correlate to the last IPv4 address from which the XDR agent connected (know as `Last Origin IP`).\n- `cloud_provider`: Cloud provider (for example, AWS, GCP, Azure).\n- `cloud_region`: Cloud region where the endpoint is deployed.\n- `cloud_provider_account_id`: Cloud provider account ID.\n- `cloud_instance_id`: Cloud instance ID of the endpoint.\n- `cloud_id`: Cloud ID of the endpoint."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "in",
                                "gte",
                                "lte"
                              ],
                              "description": "Identifies the comparison operator you want to use for this filter. Valid keywords and values are:\n`in`\n- `endpoint_id_list`, `dist_name`, `group_name`, `alias`, `hostname`, `username`, `public_ip_list`: List of strings.\n- `endpoint_status`: Permitted values are: `connected`, `disconnected`, `lost`, or `uninstalled`\n- `ip_list`: List of strings. For example: \"192.168.5.12\".\n- `platform`: Permitted values are: `windows`, `linux`, `macos`, `android`.\n- `isolate`: Permitted values are: `isolated` or `unisolated`.\n- `scan_status`: Permitted values are: `none`, `pending`, `in_progress`, `canceled`, `aborted`, `pending_cancellation`, `success`, or `error`.\n`gte` / `lte`\n- `first_seen` and `last_seen`: Timestamp epoch milliseconds.\n- `cloud_provider`, `cloud_region`, `cloud_provider_account_id`, `cloud_instance_id`, `cloud_id`: List of strings."
                            },
                            "value": {
                              "description": "Value that this filter must match. Valid keywords:\n- `endpoint_id_list`, `dist_name`, `group_name`, `alias`, `hostname`, `username`, `public_ip_list`: List of strings.\n- `endpoint_status`: String. Permitted values are: `connected`, `disconnected`, `lost`, or `uninstalled`\n- `ip_list`: List of strings.\n- `platform`: String. Permitted values are: `windows`, `linux`, `macos`, `android`.\n- `isolate`: String. Permitted values are: `isolated` or `unisolated`.\n- `scan_status`: String. Permitted values are: `none`, `pending`, `in_progress`, `canceled`, `aborted`, `pending_cancellation`, `success`, or `error`.\n- `first_seen` and `last_seen`: Integer. Timestamp epoch milliseconds.\n- `cloud_provider`, `cloud_region`, `cloud_provider_account_id`, `cloud_instance_id`, `cloud_id`: List of strings.",
                              "oneOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              ]
                            }
                          },
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ]
                        }
                      },
                      "search_from": {
                        "type": "integer",
                        "description": "Represents the start offset within the query result set from which you want endpoints returned.\n\nEndpoints are returned as a zero-based list. Any endpoint indexed less than this value is not returned in the final result set and defaults to zero."
                      },
                      "search_to": {
                        "type": "integer",
                        "description": "Represents the end offset within the result set after which you do not want endpoints returned.\n\nEndpoint in the endpoint list that is indexed higher than this value is not returned in the final results set. Defaults to 100, which returns all endpoints to the end of the list."
                      },
                      "sort": {
                        "type": "object",
                        "description": "Identifies the sort order for the result set.",
                        "properties": {
                          "field": {
                            "type": "string",
                            "enum": [
                              "endpoint_id",
                              "first_seen",
                              "last_seen"
                            ],
                            "description": "Identifies the field you want to sort by. Case-sensitive.",
                            "default": "first_seen"
                          },
                          "keyword": {
                            "type": "string",
                            "enum": [
                              "ASC",
                              "DESC"
                            ],
                            "description": "Whether you want to sort in ascending (`ASC`) or descending (`DESC`) order. Case-sensitive.",
                            "default": "DESC"
                          }
                        },
                        "required": [
                          "field",
                          "keyword"
                        ]
                      }
                    }
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "search_from": 0,
                      "search_to": 1,
                      "sort": {
                        "field": "endpoint_id",
                        "keyword": "ASC"
                      },
                      "filters": [
                        {
                          "field": "group_name",
                          "operator": "in",
                          "value": [
                            "Test-Group-01"
                          ]
                        },
                        {
                          "field": "endpoint_status",
                          "operator": "in",
                          "value": [
                            "disconnected"
                          ]
                        },
                        {
                          "field": "dist_name",
                          "operator": "in",
                          "value": [
                            "papi-test"
                          ]
                        },
                        {
                          "field": "scan_status",
                          "operator": "in",
                          "value": [
                            "none",
                            "pending",
                            "in_progress",
                            "pending_cancellation",
                            "aborted",
                            "success",
                            "canceled",
                            "error"
                          ]
                        }
                      ]
                    }
                  },
                  "Filter by cloud provider": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "cloud_provider",
                          "operator": "in",
                          "value": [
                            "aws"
                          ]
                        },
                        {
                          "field": "cloud_region",
                          "operator": "in",
                          "value": [
                            "us-east-1",
                            "us-west-2"
                          ]
                        }
                      ]
                    }
                  }
                }
              },
              "examples": {
                "Request filtered results": {
                  "value": {
                    "request_data": {
                      "search_from": 0,
                      "search_to": 1,
                      "sort": {
                        "field": "endpoint_id",
                        "keyword": "asc"
                      },
                      "filters": [
                        {
                          "field": "group_name",
                          "operator": "in",
                          "value": [
                            "Test-Group-01"
                          ]
                        },
                        {
                          "field": "endpoint_status",
                          "operator": "in",
                          "value": [
                            "disconnected"
                          ]
                        },
                        {
                          "field": "dist_name",
                          "operator": "in",
                          "value": [
                            "papi-test"
                          ]
                        },
                        {
                          "field": "scan_status",
                          "operator": "in",
                          "value": [
                            "none",
                            "pending",
                            "in_progress",
                            "pending_cancellation",
                            "aborted",
                            "success",
                            "canceled",
                            "error"
                          ]
                        }
                      ]
                    }
                  }
                },
                "Request all results": {
                  "value": {
                    "request_data": {}
                  }
                },
                "Filter by cloud provider": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "cloud_provider",
                          "operator": "in",
                          "value": [
                            "aws"
                          ]
                        },
                        {
                          "field": "cloud_region",
                          "operator": "in",
                          "value": [
                            "us-east-1",
                            "us-west-2"
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "total_count": {
                          "type": "integer",
                          "description": "Number of total results of this filter without paging."
                        },
                        "result_count": {
                          "type": "integer",
                          "description": "Number of endpoints actually returned as result."
                        },
                        "endpoints": {
                          "type": "array",
                          "description": "A list of endpoints.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "endpoint_id": {
                                "type": "string"
                              },
                              "endpoint_name": {
                                "type": "string"
                              },
                              "endpointTags": {
                                "type": "string"
                              },
                              "endpoint_type": {
                                "type": "string"
                              },
                              "endpoint_status": {
                                "type": "string"
                              },
                              "operational_status_details": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "title": {
                                      "type": "string"
                                    },
                                    "reason": {
                                      "type": "string"
                                    }
                                  }
                                }
                              },
                              "os_type": {
                                "type": "string"
                              },
                              "os_version": {
                                "type": "string"
                              },
                              "ip": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "ipv6": {
                                "type": "array",
                                "items": {
                                  "type": "object"
                                }
                              },
                              "public_ip": {
                                "type": "string"
                              },
                              "users": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "domain": {
                                "type": "string"
                              },
                              "alias": {
                                "type": "string"
                              },
                              "first_seen": {
                                "type": "integer"
                              },
                              "last_seen": {
                                "type": "integer"
                              },
                              "content_version": {
                                "type": "string"
                              },
                              "installation_package": {
                                "type": "string"
                              },
                              "active_directory": {
                                "type": "string",
                                "nullable": true
                              },
                              "install_date": {
                                "type": "integer"
                              },
                              "endpoint_version": {
                                "type": "string"
                              },
                              "is_isolated": {
                                "type": "string"
                              },
                              "isolated_date": {
                                "type": "string",
                                "nullable": true
                              },
                              "group_name": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "operational_status": {
                                "type": "string"
                              },
                              "operational_status_description": {
                                "type": "string"
                              },
                              "scan_status": {
                                "type": "string"
                              },
                              "content_release_timestamp": {
                                "type": "integer"
                              },
                              "last_content_update_time": {
                                "type": "integer"
                              },
                              "content_status": {
                                "type": "string"
                              },
                              "operating_system": {
                                "type": "string"
                              },
                              "mac_address": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "assigned_prevention_policy": {
                                "type": "string"
                              },
                              "assigned_extensions_policy": {
                                "type": "string"
                              },
                              "cloud_provider": {
                                "type": "string",
                                "description": "Cloud provider of the endpoint (for example, AWS, GCP, Azure). Returns an empty string if the endpoint is not a cloud agent."
                              },
                              "cloud_region": {
                                "type": "string",
                                "description": "Cloud region where the endpoint is deployed. Returns an empty string if the endpoint is not a cloud agent."
                              },
                              "cloud_provider_account_id": {
                                "type": "string",
                                "description": "Cloud provider account ID associated with the endpoint. Returns an empty string if the endpoint is not a cloud agent."
                              },
                              "cloud_instance_id": {
                                "type": "string",
                                "description": "Cloud instance ID of the endpoint. Returns an empty string if the endpoint is not a cloud agent."
                              },
                              "cloud_id": {
                                "type": "string",
                                "description": "Cloud ID of the endpoint. Returns an empty string if the endpoint is not a cloud agent."
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "total_count": 1,
                        "result_count": 1,
                        "endpoints": [
                          {
                            "endpoint_id": "<endpoint ID>",
                            "endpoint_name": "<endpoint name>",
                            "endpointTags": "<tag name>",
                            "endpoint_type": "<endpoint type>",
                            "endpoint_status": "CONNECTED",
                            "operational_status_details": [
                              {
                                "title": "XDR Data Collection not running or not sent",
                                "reason": "Linux kernel version is not supported"
                              },
                              {
                                "title": "BTP not working",
                                "reason": "Linux kernel version is not supported"
                              },
                              {
                                "title": "Antimalware flow is asynchronous",
                                "reason": "Linux kernel version is not supported"
                              },
                              {
                                "title": "Local privilege escalation",
                                "reason": "Linux kernel version is not supported"
                              }
                            ],
                            "os_type": "AGENT_OS_WINDOWS",
                            "os_version": "8.0.xxx",
                            "ip": [
                              "<IP address>"
                            ],
                            "ipv6": [],
                            "public_ip": "<IP address>",
                            "users": [
                              "XDR"
                            ],
                            "domain": "WORKGROUP",
                            "alias": "",
                            "first_seen": 1606218761377,
                            "last_seen": 1606218769163,
                            "content_version": "",
                            "installation_package": "XDR",
                            "active_directory": null,
                            "install_date": 1606218762089,
                            "endpoint_version": "<version>",
                            "is_isolated": "AGENT_UNISOLATED",
                            "isolated_date": null,
                            "group_name": [],
                            "operational_status": "PARTIALLY_PROTECTED",
                            "scan_status": "SCAN_STATUS_NONE",
                            "content_release_timestamp": 1636285746000,
                            "last_content_update_time": 1636381954285,
                            "content_status": "up_to_date",
                            "operating_system": "Debian 10.11",
                            "mac_address": [
                              "42:00:00:00:00:00"
                            ],
                            "assigned_prevention_policy": "Linux Default",
                            "assigned_extensions_policy": ""
                          }
                        ]
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "total_count": 1,
                        "result_count": 1,
                        "endpoints": [
                          {
                            "endpoint_id": "<endpoint ID>",
                            "endpoint_name": "<endpoint name>",
                            "endpointTags": "<tag name>",
                            "endpoint_type": "<endpoint type>",
                            "endpoint_status": "CONNECTED",
                            "operational_status_details": [
                              {
                                "title": "XDR Data Collection not running or not sent",
                                "reason": "Linux kernel version is not supported"
                              },
                              {
                                "title": "BTP not working",
                                "reason": "Linux kernel version is not supported"
                              },
                              {
                                "title": "Antimalware flow is asynchronous",
                                "reason": "Linux kernel version is not supported"
                              },
                              {
                                "title": "Local privilege escalation",
                                "reason": "Linux kernel version is not supported"
                              }
                            ],
                            "os_type": "AGENT_OS_WINDOWS",
                            "os_version": "8.0.xxx",
                            "ip": [
                              "<IP address>"
                            ],
                            "ipv6": [],
                            "public_ip": "<IP address>",
                            "users": [
                              "XDR"
                            ],
                            "domain": "WORKGROUP",
                            "alias": "",
                            "first_seen": 1606218761377,
                            "last_seen": 1606218769163,
                            "content_version": "",
                            "installation_package": "XDR",
                            "active_directory": null,
                            "install_date": 1606218762089,
                            "endpoint_version": "<version>",
                            "is_isolated": "AGENT_UNISOLATED",
                            "isolated_date": null,
                            "group_name": [],
                            "operational_status": "PARTIALLY_PROTECTED",
                            "scan_status": "SCAN_STATUS_NONE",
                            "content_release_timestamp": 1636285746000,
                            "last_content_update_time": 1636381954285,
                            "content_status": "up_to_date",
                            "operating_system": "Debian 10.11",
                            "mac_address": [
                              "42:00:00:00:00:00"
                            ],
                            "assigned_prevention_policy": "Linux Default",
                            "assigned_extensions_policy": ""
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/get_risk_score": {
      "post": {
        "tags": [
          "System management"
        ],
        "summary": "Get Risk Score",
        "description": "Retrieve the risk score of a specific user or endpoint in your environment, along with the reason for the score.\n",
        "operationId": "post-public_api-v1-get_risk_score",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "Unique ID of a specific user or endpoint.\n\n- User ID should be in the following format: `netBIOS/samAccount`\n- Endpoint ID is the Cortex Agent ID.\n\nYou can only request one ID at a time."
                      }
                    },
                    "required": [
                      "id"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "id": "<user or endpoint ID>"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "id": "<user or endpoint ID>"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "Form of identification element.\n"
                        },
                        "id": {
                          "type": "string",
                          "description": "Identification value of the type field."
                        },
                        "score": {
                          "type": "integer",
                          "description": "The score assigned to the type."
                        },
                        "norm_risk_score": {
                          "type": "integer",
                          "description": "Normalization of the risk score.",
                          "minimum": 0,
                          "maximum": 1000
                        },
                        "risk_level": {
                          "type": "string",
                          "enum": [
                            "LOW",
                            "MED",
                            "HIGH"
                          ],
                          "description": "The risk level."
                        },
                        "reasons": {
                          "type": "array",
                          "description": "Details describing when and which case name affected the score.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "date created": {
                                "type": "string"
                              },
                              "description": {
                                "type": "string"
                              },
                              "severity": {
                                "type": "string"
                              },
                              "status": {
                                "type": "string"
                              },
                              "points": {
                                "type": "integer"
                              }
                            }
                          }
                        },
                        "email": {
                          "type": "string",
                          "description": "Email address."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "type": "user",
                        "id": "user2_9fa235",
                        "score": 95,
                        "reasons": [
                          {
                            "date created": "2023-01-31",
                            "description": "'Encoded VBScript executed' generated by XDR BIOC detected on host acme3 involving user user2_9fa235",
                            "severity": "SEV_050_CRITICAL",
                            "status": "STATUS_010_NEW",
                            "points": 95
                          }
                        ]
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "type": "user",
                        "id": "user2_9fa235",
                        "score": 100,
                        "norm_risk_score": 800,
                        "risk_level": "HIGH",
                        "reasons": [
                          {
                            "date created": "2023-01-31",
                            "description": "'Encoded VBScript executed' generated by XDR BIOC detected on host acme3 involving user user2_9fa235",
                            "severity": "SEV_050_CRITICAL",
                            "status": "STATUS_010_NEW",
                            "points": 95
                          }
                        ],
                        "email": "user@company.com"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/get_risky_users": {
      "post": {
        "tags": [
          "System management"
        ],
        "summary": "Get Risky Users",
        "description": "Retrieve a list of users with the highest risk score in your environment along with the reason affecting each score.\n\n",
        "operationId": "post-public_api-v1-get_risky_users",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "array",
                      "description": "JSON object containing the query result.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "Form of identification element."
                          },
                          "id": {
                            "type": "string",
                            "description": "Identification value of the type field."
                          },
                          "score": {
                            "type": "integer",
                            "description": "The score assigned to the user."
                          },
                          "norm_risk_score": {
                            "type": "integer",
                            "description": "Normalization of the risk score.",
                            "minimum": 0,
                            "maximum": 1000,
                            "example": 20
                          },
                          "risk_level": {
                            "type": "string",
                            "enum": [
                              "LOW",
                              "MED",
                              "HIGH"
                            ],
                            "description": "The risk level.",
                            "example": "LOW"
                          },
                          "reasons": {
                            "type": "array",
                            "description": "Details describing when and which case name affected the user score.",
                            "items": {
                              "type": "object",
                              "properties": {
                                "date created": {
                                  "type": "string"
                                },
                                "description": {
                                  "type": "string"
                                },
                                "severity": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "points": {
                                  "type": "integer"
                                }
                              }
                            }
                          },
                          "email": {
                            "type": "string",
                            "description": "Email address."
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": [
                        {
                          "type": "user",
                          "id": "acme1_9fa235",
                          "score": 95,
                          "reasons": [
                            {
                              "date created": "2023-01-31",
                              "description": "'Encoded VBScript executed' generated by XDR BIOC detected on host acme_agent-6a7b involving user acme1_9fa235",
                              "severity": "SEV_050_CRITICAL",
                              "status": "STATUS_010_NEW",
                              "points": 95
                            }
                          ]
                        },
                        {
                          "type": "user",
                          "id": "acme2_d40b59",
                          "score": 95,
                          "reasons": [
                            {
                              "date created": "2023-01-26",
                              "description": "'Kernel Privilege Escalation' along with 4 other alerts generated by XDR Analytics BIOC, XDR Analytics and XDR Agent detected on 3 hosts involving 3 users",
                              "severity": "SEV_040_HIGH",
                              "status": "STATUS_010_NEW",
                              "points": 95
                            }
                          ]
                        },
                        {
                          "type": "user",
                          "id": "acme3_3a509d",
                          "score": 15,
                          "reasons": [
                            {
                              "date created": "2023-02-13",
                              "description": "'First successful SSO connection from a country in organization' generated by XDR Analytics BIOC involving user acme3",
                              "severity": "SEV_020_LOW",
                              "status": "STATUS_010_NEW",
                              "points": 15
                            }
                          ]
                        },
                        {
                          "type": "user",
                          "id": "acme4_207a4e",
                          "score": 0,
                          "reasons": []
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": [
                        {
                          "type": "user",
                          "id": "acme1_9fa235",
                          "score": 100,
                          "norm_risk_score": 800,
                          "risk_level": "HIGH",
                          "reasons": [
                            {
                              "date created": "2023-01-31",
                              "description": "'Encoded VBScript executed' generated by XDR BIOC detected on host acme_agent-6a7b involving user acme1_9fa235",
                              "severity": "SEV_050_CRITICAL",
                              "status": "STATUS_010_NEW",
                              "points": 95
                            }
                          ],
                          "email": "user@company.com"
                        },
                        {
                          "type": "user",
                          "id": "acme2_d40b59",
                          "score": 100,
                          "norm_risk_score": 800,
                          "risk_level": "HIGH",
                          "reasons": [
                            {
                              "date created": "2023-01-26",
                              "description": "'Kernel Privilege Escalation' along with 4 other alerts generated by XDR Analytics BIOC, XDR Analytics and XDR Agent detected on 3 hosts involving 3 users",
                              "severity": "SEV_040_HIGH",
                              "status": "STATUS_010_NEW",
                              "points": 95
                            }
                          ]
                        },
                        {
                          "type": "user",
                          "id": "acme3_3a509d",
                          "score": 15,
                          "norm_risk_score": 100,
                          "risk_level": "LOW",
                          "reasons": [
                            {
                              "date created": "2023-02-13",
                              "description": "'First successful SSO connection from a country in organization' generated by XDR Analytics BIOC involving user acme3",
                              "severity": "SEV_020_LOW",
                              "status": "STATUS_010_NEW",
                              "points": 15
                            }
                          ],
                          "email": "user@company.com"
                        },
                        {
                          "type": "user",
                          "id": "acme4_207a4e",
                          "score": 0,
                          "norm_risk_score": 0,
                          "risk_level": "LOW",
                          "reasons": [],
                          "email": "user@company.com"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "404": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/get_risky_hosts": {
      "post": {
        "tags": [
          "System management"
        ],
        "summary": "Get Risky Hosts",
        "description": "Retrieve a list of endpoints with the highest risk score in your environment along with the reason for each score.\n\n",
        "operationId": "post-public_api-v1-get_risky_hosts",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "array",
                      "description": "JSON object containing the query result.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "Form of identification element."
                          },
                          "id": {
                            "type": "string",
                            "description": "Identification value of the type field."
                          },
                          "score": {
                            "type": "integer",
                            "description": "The score assigned to the endpoint."
                          },
                          "norm_risk_score": {
                            "type": "integer",
                            "description": "Normalization of the risk score.",
                            "minimum": 0,
                            "maximum": 1000,
                            "example": 20
                          },
                          "risk_level": {
                            "type": "string",
                            "enum": [
                              "LOW",
                              "MED",
                              "HIGH"
                            ],
                            "description": "The risk level.",
                            "example": "LOW"
                          },
                          "reasons": {
                            "type": "array",
                            "description": "Details describing when and which case name affected the endpoint score.",
                            "items": {
                              "type": "object",
                              "properties": {
                                "date created": {
                                  "type": "string"
                                },
                                "description": {
                                  "type": "string"
                                },
                                "severity": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "points": {
                                  "type": "integer"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": [
                        {
                          "type": "host",
                          "id": "host1",
                          "score": 95,
                          "reasons": [
                            {
                              "date created": "2023-01-26",
                              "description": "'Kernel Privilege Escalation' along with 4 other alerts generated by XDR Analytics BIOC, XDR Analytics and XDR Agent detected on 3 hosts involving 3 users",
                              "severity": "SEV_040_HIGH",
                              "status": "STATUS_010_NEW",
                              "points": 95
                            }
                          ]
                        },
                        {
                          "type": "host",
                          "id": "host4",
                          "score": 95,
                          "reasons": [
                            {
                              "date created": "2023-01-26",
                              "description": "'Kernel Privilege Escalation' along with 4 other alerts generated by XDR Analytics BIOC, XDR Analytics and XDR Agent detected on 3 hosts involving 3 users",
                              "severity": "SEV_040_HIGH",
                              "status": "STATUS_010_NEW",
                              "points": 95
                            }
                          ]
                        },
                        {
                          "type": "host",
                          "id": "host3",
                          "score": 95,
                          "reasons": [
                            {
                              "date created": "2023-01-31",
                              "description": "'Encoded VBScript executed' generated by XDR BIOC detected on host host3 involving user acme1_9fa235",
                              "severity": "SEV_050_CRITICAL",
                              "status": "STATUS_010_NEW",
                              "points": 95
                            }
                          ]
                        },
                        {
                          "type": "host",
                          "id": "host6",
                          "score": 0,
                          "reasons": []
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": [
                        {
                          "type": "host",
                          "id": "host1",
                          "score": 100,
                          "norm_risk_score": 800,
                          "risk_level": "HIGH",
                          "reasons": [
                            {
                              "date created": "2023-01-26",
                              "description": "'Kernel Privilege Escalation' along with 4 other alerts generated by XDR Analytics BIOC, XDR Analytics and XDR Agent detected on 3 hosts involving 3 users",
                              "severity": "SEV_040_HIGH",
                              "status": "STATUS_010_NEW",
                              "points": 95
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/endpoints/file_retrieval": {
      "post": {
        "tags": [
          "Response Action"
        ],
        "summary": "Retrieve File",
        "description": "Retrieve files from selected endpoints. You can retrieve up to 20 files, from no more than 10 endpoints.\n- Response is concatenated using AND condition (OR is not supported).\n- Offset is the zero-based number of cases from the start of the result set.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "post-public_api-v1-endpoints-file_retrieval",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "endpoint_id_list"
                              ],
                              "description": "Identifies the field the filter must match:\n- `endpoint_id_list`"
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "in"
                              ],
                              "description": "Identifies the comparison operator you want to use for this filter. Valid keywords and values are:\n`in`\n- 'endpoint_id_list'"
                            },
                            "value": {
                              "type": "array",
                              "description": "Value that this filter must match. Valid keywords:\n- 'endpoint_id_list': List of strings.",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ]
                        }
                      },
                      "files": {
                        "type": "object",
                        "description": "One of the operating system types must be included.",
                        "properties": {
                          "windows": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "linux": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "macos": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      },
                      "incident_id": {
                        "type": "string",
                        "description": "Case ID. When included in the request, the Retrieve File action will appear in the Cortex Case View Timeline tab."
                      }
                    },
                    "required": [
                      "filters",
                      "files"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<endpoint ID 1>",
                            "<endpoint ID 2>",
                            "<endpoint ID 3>"
                          ]
                        }
                      ],
                      "files": {
                        "windows": [
                          "C:\\<file path>\\test.txt"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "action_id": {
                          "type": "string",
                          "description": "ID of action to retrieve files from selected endpoints.\nResponse only indicates the request was successfully sent to the endpoint. To track if the file was retrieved successfully either: in the Cortex XDR console, navigate to Response > Action Center > Isolation and search for the action ID. Make sure the Action ID field is selected in the table Layout settings by selecting the three vertical dots.\nTo view the file, send a File Retrieval Details request."
                        },
                        "status": {
                          "type": "string"
                        },
                        "endpoints_count": {
                          "type": "string",
                          "description": "Number of endpoints included in the request."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "action_id": "<action ID>",
                        "status": "1",
                        "endpoints_count": "673"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters."
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API."
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API."
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors."
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/endpoints/isolate": {
      "post": {
        "tags": [
          "Response Action"
        ],
        "summary": "Isolate Endpoints",
        "description": "Isolate one or more endpoints in a single request. Request is limited to 1000 endpoints.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "post-public_api-v1-endpoints-isolate",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Note: You can send a request with either `endpoint_id` for isolating one endpoint or `filters` for isolating more than one endpoint. You cannot use both parameters in the same call.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "Array of filtered fields for isolating a number of endpoints at once.\nNote: Only required if isolating more than one endpoint.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "endpoint_id_list"
                              ],
                              "description": "Identifies a list the filters match. Filters are\nbased on the following keywords:\n- `endpoint_id_list`: List of endpoint IDs."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "in"
                              ],
                              "description": "Identifies the comparison operator you want to use for this filter. Valid keywords and values are:\n`in`\n- `endpoint_id_list` —List of strings"
                            },
                            "value": {
                              "type": "array",
                              "description": "Value that this filter must match. Valid keywords:\n- `endpoint_id_list`: List of strings",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ]
                        }
                      },
                      "endpoint_id": {
                        "type": "string",
                        "description": "Identifies the endpoint to isolate.\nNote: Only required if isolating one endpoint."
                      },
                      "incident_id": {
                        "type": "string",
                        "description": "The case ID.\nWhen included in the request, the **Isolate Endpoints action** will appear in the Cortex Case View Timeline tab."
                      }
                    },
                    "required": [
                      "endpoint_id"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<endpoint ID 1>",
                            "<endpoint ID 2>",
                            "<endpoint ID 3>"
                          ]
                        }
                      ]
                    }
                  }
                }
              },
              "examples": {
                "Isolate one endpoint": {
                  "value": {
                    "request_data": {
                      "endpoint_id": "<endpoint ID>"
                    }
                  }
                },
                "Isolate more than one endpoint": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "endpoint_id_list",
                          "operator": "in",
                          "value": [
                            "<endpoint ID 1>",
                            "<endpoint ID 2>",
                            "<endpoint ID 3>"
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "action_id": {
                          "type": "string",
                          "description": "Action ID to scan selected endpoints.\nThe response only indicates the request was successfully sent to the endpoint. To track if the isolation succeeded either:\n- In the Cortex console, navigate to **Response** > **Action Center** > **Isolation** and search for\nthe action ID. Make sure the Action ID field is\nselected in the table Layout settings by selecting\nthe vertical ellipses.\n- Send a [Get Action Status](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/response-action#post-public_api-v1-actions-get_action_status) request."
                        },
                        "endpoints_count": {
                          "type": "string",
                          "description": "Number of endpoints included in the request."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "action_id": "<action ID>",
                        "status": "1",
                        "endpoints_count": "673"
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "action_id": "<action ID>",
                        "status": "1",
                        "endpoints_count": "673"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON."
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, ID, or other invalid authentication parameters."
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API."
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API."
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors."
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/audits/agents_reports": {
      "post": {
        "tags": [
          "Audit log"
        ],
        "summary": "Get Audit Agent Report",
        "description": "Get agent event reports.\n- Response is concatenated using AND condition (OR is not supported).\n- Maximum result set size is 100.\n- Offset is the zero-based number of cases from the start of the result set.\n\n",
        "operationId": "post-public_api-v1-audits-agents_reports",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "You can send a request to retrieve either all or filtered results.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.\nAn empty dictionary returns all results.",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "endpoint_id",
                                "endpoint_name",
                                "type",
                                "sub_type",
                                "result",
                                "timestamp",
                                "domain",
                                "xdr_version",
                                "category",
                                "trapsversion"
                              ],
                              "description": "Identifies a list. Filters are based on the\nfollowing keywords:\n- `endpoint_id`: The endpoint ID.\n- `endpoint_name`: The endpoint name.\n- `type`: Type of report.\n- `sub_type`: Subtype of report.\n- `result`: Result type.\n- `timestamp`: Report timestamp.\n- `domain`: Domain of the agent.\n- `xdr_version`: XDR version.\n- `category`: Type of event category.\n- `timestamp`: Integer in timestamp epoch\nmilliseconds"
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "in",
                                "gte",
                                "lte"
                              ],
                              "description": "Identifies the comparison operator you want to use for this filter. Valid keywords and values are:\n`in`\n- `endpoint_id`, `endpoint_name`, `type`, `sub_type`, `result`, `domain`, `xdr_version`, `category`: List of strings\n`gte` / `lte`\n- `timestamp`"
                            },
                            "value": {
                              "description": "Value that this filter must match:\n- `timestamp`: Integer representing the number of milliseconds after the Unix epoch, UTC timezone.\n- All other fields require a string value. In the case of `in` operator, the value is a list of possible values enclosed in square brackets.\n- `category`: Permitted values are: `status`, `monitoring`, or `audit`.",
                              "oneOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "integer"
                                }
                              ]
                            }
                          },
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ]
                        }
                      },
                      "search_from": {
                        "type": "integer",
                        "description": "An integer representing the starting offset within the query result set from which you want agent reports returned.\nReports are returned as a zero-based list. Any report indexed less than this value is not returned in the final result set and defaults to zero."
                      },
                      "search_to": {
                        "type": "integer",
                        "description": "An integer representing the end offset within the result set after which you do not want agent reports returned.\nReports in the agent report list that are indexed higher than this value are not returned in the final results set. Defaults to 100, which returns all reports to the end of the list.",
                        "default": 100
                      },
                      "sort": {
                        "type": "object",
                        "description": "Identifies the sort order for the result set.",
                        "properties": {
                          "field": {
                            "type": "string",
                            "enum": [
                              "type",
                              "category",
                              "trapsversion",
                              "timestamp",
                              "domain"
                            ],
                            "description": "The field you want to sort by."
                          },
                          "keyword": {
                            "type": "string",
                            "enum": [
                              "asc",
                              "desc"
                            ],
                            "description": "Whether to sort in ascending or descending order.",
                            "default": "desc"
                          }
                        },
                        "required": [
                          "field",
                          "keyword"
                        ]
                      }
                    }
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "trapsversion",
                          "operator": "in",
                          "value": [
                            "<version value>",
                            "<version value>"
                          ]
                        },
                        {
                          "field": "timestamp",
                          "operator": "gte",
                          "value": 0
                        },
                        {
                          "field": "domain",
                          "operator": "in",
                          "value": [
                            "WORKGROUP"
                          ]
                        }
                      ],
                      "sort": {
                        "field": "timestamp",
                        "keyword": "asc"
                      }
                    }
                  }
                }
              },
              "examples": {
                "Request all results": {
                  "value": {
                    "request_data": {}
                  }
                },
                "Request filtered results": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "trapsversion",
                          "operator": "in",
                          "value": [
                            "<version value>",
                            "<version value>"
                          ]
                        },
                        {
                          "field": "timestamp",
                          "operator": "gte",
                          "value": 0
                        },
                        {
                          "field": "domain",
                          "operator": "in",
                          "value": [
                            "WORKGROUP"
                          ]
                        }
                      ],
                      "sort": {
                        "field": "timestamp",
                        "keyword": "asc"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "total_count": {
                          "type": "integer",
                          "description": "Number of total results of this filter without paging."
                        },
                        "result_count": {
                          "type": "integer",
                          "description": "Number of returned items."
                        },
                        "data": {
                          "type": "array",
                          "description": "List of audit items.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "TIMESTAMP": {
                                "type": "number",
                                "description": "Epoch time in milliseconds, UTC timezone.",
                                "format": "float"
                              },
                              "RECEIVEDTIME": {
                                "type": "number",
                                "description": "Epoch time in milliseconds, UTC timezone."
                              },
                              "ENDPOINTID": {
                                "type": "string"
                              },
                              "ENDPOINTNAME": {
                                "type": "string"
                              },
                              "DOMAIN": {
                                "type": "string"
                              },
                              "TRAPSVERSION": {
                                "type": "string"
                              },
                              "CATEGORY": {
                                "type": "string"
                              },
                              "TYPE": {
                                "type": "string"
                              },
                              "SUBTYPE": {
                                "type": "string"
                              },
                              "RESULT": {
                                "type": "string"
                              },
                              "REASON": {
                                "type": "string"
                              },
                              "DESCRIPTION": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "total_count": 10,
                        "result_count": 1,
                        "data": [
                          {
                            "TIMESTAMP": 1572427859369.953,
                            "RECEIVEDTIME": 1572427936626.636,
                            "ENDPOINTID": "<endpoint ID>",
                            "ENDPOINTNAME": "<endpoint name>",
                            "DOMAIN": "WORKGROUP",
                            "TRAPSVERSION": "<version>",
                            "CATEGORY": "Status",
                            "TYPE": "Agent Status",
                            "SUBTYPE": "Fully Protected",
                            "RESULT": null,
                            "REASON": null,
                            "DESCRIPTION": "DESKTOP-4LC01UI is fully protected"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, ID, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not\nhave the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/assets/get_external_service": {
      "post": {
        "tags": [
          "Attack surface management"
        ],
        "summary": "Get External Service",
        "description": "Get service details according to the service ID. You can send up to 20 IDs.\n\n",
        "operationId": "post-public_api-v1-assets-get_external_service",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "service_id_list": {
                        "type": "array",
                        "description": "Represents the service ID you want to get details for.",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "service_id_list": [
                        "<service_ID>"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the query result.",
                      "properties": {
                        "details": {
                          "type": "array",
                          "description": "Service details according to the service ID.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "service_id": {
                                "type": "string"
                              },
                              "service_name": {
                                "type": "string"
                              },
                              "service_type": {
                                "type": "string"
                              },
                              "ip_address": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "domain": {
                                "type": "array",
                                "items": {
                                  "type": "object"
                                }
                              },
                              "externally_detected_providers": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "is_active": {
                                "type": "string"
                              },
                              "first_observed": {
                                "type": "integer"
                              },
                              "last_observed": {
                                "type": "integer"
                              },
                              "port": {
                                "type": "integer"
                              },
                              "protocol": {
                                "type": "string"
                              },
                              "active_classifications": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "inactive_classifications": {
                                "type": "array",
                                "items": {
                                  "type": "object"
                                }
                              },
                              "discovery_type": {
                                "type": "string"
                              },
                              "business_units": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "externally_inferred_vulnerability_score": {
                                "type": "object",
                                "nullable": true
                              },
                              "externally_inferred_cves": {
                                "type": "array",
                                "items": {
                                  "type": "object"
                                }
                              },
                              "details": {
                                "type": "object",
                                "properties": {
                                  "serviceKey": {
                                    "type": "string"
                                  },
                                  "serviceKeyType": {
                                    "type": "string"
                                  },
                                  "businessUnits": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string"
                                        }
                                      }
                                    }
                                  },
                                  "providerDetails": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string"
                                        },
                                        "firstObserved": {
                                          "type": "integer"
                                        },
                                        "lastObserved": {
                                          "type": "integer"
                                        }
                                      }
                                    }
                                  },
                                  "certificates": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "certificate": {
                                          "type": "object",
                                          "properties": {
                                            "issuer": {
                                              "type": "string"
                                            },
                                            "issuerAlternativeNames": {
                                              "type": "string"
                                            },
                                            "issuerCountry": {
                                              "type": "string"
                                            },
                                            "issuerEmail": {
                                              "type": "string",
                                              "nullable": true
                                            },
                                            "issuerLocality": {
                                              "type": "string"
                                            },
                                            "issuerName": {
                                              "type": "string"
                                            },
                                            "issuerOrg": {
                                              "type": "string"
                                            },
                                            "formattedIssuerOrg": {
                                              "type": "string"
                                            },
                                            "issuerOrgUnit": {
                                              "type": "string"
                                            },
                                            "issuerState": {
                                              "type": "string"
                                            },
                                            "publicKey": {
                                              "type": "string"
                                            },
                                            "publicKeyAlgorithm": {
                                              "type": "string"
                                            },
                                            "publicKeyRsaExponent": {
                                              "type": "integer"
                                            },
                                            "signatureAlgorithm": {
                                              "type": "string"
                                            },
                                            "subject": {
                                              "type": "string"
                                            },
                                            "subjectAlternativeNames": {
                                              "type": "string"
                                            },
                                            "subjectCountry": {
                                              "type": "string"
                                            },
                                            "subjectEmail": {
                                              "type": "string"
                                            },
                                            "subjectLocality": {
                                              "type": "string"
                                            },
                                            "subjectName": {
                                              "type": "string"
                                            },
                                            "subjectOrg": {
                                              "type": "string"
                                            },
                                            "subjectOrgUnit": {
                                              "type": "string"
                                            },
                                            "subjectState": {
                                              "type": "string"
                                            },
                                            "serialNumber": {
                                              "type": "string"
                                            },
                                            "validNotBefore": {
                                              "type": "integer"
                                            },
                                            "validNotAfter": {
                                              "type": "integer"
                                            },
                                            "version": {
                                              "type": "string"
                                            },
                                            "publicKeyBits": {
                                              "type": "integer"
                                            },
                                            "publicKeyModulus": {
                                              "type": "string"
                                            },
                                            "publicKeySpki": {
                                              "type": "string"
                                            },
                                            "sha1Fingerprint": {
                                              "type": "string"
                                            },
                                            "sha256Fingerprint": {
                                              "type": "string"
                                            },
                                            "md5Fingerprint": {
                                              "type": "string"
                                            }
                                          }
                                        },
                                        "activityStatus": {
                                          "type": "string"
                                        },
                                        "lastObserved": {
                                          "type": "integer"
                                        },
                                        "firstObserved": {
                                          "type": "integer"
                                        }
                                      }
                                    }
                                  },
                                  "domains": {
                                    "type": "array",
                                    "items": {
                                      "type": "object"
                                    }
                                  },
                                  "ips": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "ip": {
                                          "type": "string"
                                        },
                                        "protocol": {
                                          "type": "string"
                                        },
                                        "provider": {
                                          "type": "string"
                                        },
                                        "geolocation": {
                                          "type": "object",
                                          "properties": {
                                            "latitude": {
                                              "type": "integer"
                                            },
                                            "longitude": {
                                              "type": "integer"
                                            },
                                            "countryCode": {
                                              "type": "string"
                                            },
                                            "city": {
                                              "type": "string"
                                            },
                                            "regionCode": {
                                              "type": "string"
                                            },
                                            "timeZone": {
                                              "type": "integer",
                                              "nullable": true
                                            }
                                          }
                                        },
                                        "activityStatus": {
                                          "type": "string"
                                        },
                                        "lastObserved": {
                                          "type": "integer"
                                        },
                                        "firstObserved": {
                                          "type": "integer"
                                        }
                                      }
                                    }
                                  },
                                  "classifications": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string"
                                        },
                                        "activityStatus": {
                                          "type": "string"
                                        },
                                        "values": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "jsonValue": {
                                                "type": "string"
                                              },
                                              "firstObserved": {
                                                "type": "integer"
                                              },
                                              "lastObserved": {
                                                "type": "integer"
                                              }
                                            }
                                          }
                                        },
                                        "firstObserved": {
                                          "type": "integer"
                                        },
                                        "lastObserved": {
                                          "type": "integer"
                                        }
                                      }
                                    }
                                  },
                                  "tlsVersions": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "tlsVersion": {
                                          "type": "string"
                                        },
                                        "cipherSuite": {
                                          "type": "string"
                                        },
                                        "firstObserved": {
                                          "type": "integer"
                                        },
                                        "lastObserved": {
                                          "type": "integer"
                                        },
                                        "activityStatus": {
                                          "type": "string"
                                        }
                                      }
                                    }
                                  },
                                  "inferredCvesObserved": {
                                    "type": "array",
                                    "items": {
                                      "type": "object"
                                    }
                                  },
                                  "enrichedObservationSource": {
                                    "type": "string"
                                  },
                                  "ip_ranges": {
                                    "type": "object"
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "details": [
                          {
                            "service_id": "<service_id>",
                            "service_name": "HTTP Server",
                            "service_type": "HttpServer",
                            "ip_address": [
                              "<ip_address>"
                            ],
                            "domain": [],
                            "externally_detected_providers": [
                              "Other"
                            ],
                            "is_active": "Active",
                            "first_observed": 1646698500000,
                            "last_observed": 1649500560000,
                            "port": 9443,
                            "protocol": "TCP",
                            "active_classifications": [
                              "LongExpirationCertificate",
                              "HttpServer",
                              "ShortKeyCertificate",
                              "InsecureSignatureCertificate",
                              "ServerSoftware"
                            ],
                            "inactive_classifications": [],
                            "discovery_type": "ColocatedOnIp",
                            "business_units": [
                              "Test"
                            ],
                            "externally_inferred_vulnerability_score": null,
                            "externally_inferred_cves": [],
                            "details": {
                              "serviceKey": "<service_key>",
                              "serviceKeyType": "IP",
                              "businessUnits": [
                                {
                                  "name": "Test"
                                }
                              ],
                              "providerDetails": [
                                {
                                  "name": "Other",
                                  "firstObserved": 1646698531000,
                                  "lastObserved": 1649500589000
                                }
                              ],
                              "certificates": [
                                {
                                  "certificate": {
                                    "issuer": "<issuer>",
                                    "issuerAlternativeNames": "",
                                    "issuerCountry": "<country>",
                                    "issuerEmail": null,
                                    "issuerLocality": "<locality>",
                                    "issuerName": "<name>",
                                    "issuerOrg": "<org>",
                                    "formattedIssuerOrg": "S<formatted_org>",
                                    "issuerOrgUnit": "IT Department",
                                    "issuerState": "<state>",
                                    "publicKey": "<public_key",
                                    "publicKeyAlgorithm": "RSA",
                                    "publicKeyRsaExponent": 65537,
                                    "signatureAlgorithm": "<algorithm>",
                                    "subject": "<subject>",
                                    "subjectAlternativeNames": "",
                                    "subjectCountry": "<country>",
                                    "subjectEmail": "test@test.com,test1@test.com",
                                    "subjectLocality": "<locality>",
                                    "subjectName": "<name>",
                                    "subjectOrg": "<org>",
                                    "subjectOrgUnit": "IT Department",
                                    "subjectState": "<state>",
                                    "serialNumber": "<serial_number>",
                                    "validNotBefore": 1516280668000,
                                    "validNotAfter": 1668924913000,
                                    "version": "3",
                                    "publicKeyBits": 2048,
                                    "publicKeyModulus": "<public_key>",
                                    "publicKeySpki": "<key>",
                                    "sha1Fingerprint": "<fingerprint>",
                                    "sha256Fingerprint": "<fingerprint>",
                                    "md5Fingerprint": "<fingerprint>"
                                  },
                                  "activityStatus": "Active",
                                  "lastObserved": 1649500589000,
                                  "firstObserved": 1646698531000
                                }
                              ],
                              "domains": [],
                              "ips": [
                                {
                                  "ip": "192.158.1.38",
                                  "protocol": "TCP",
                                  "provider": "Other",
                                  "geolocation": {
                                    "latitude": 37.4419,
                                    "longitude": 122.143,
                                    "countryCode": "<country>",
                                    "city": "<city>",
                                    "regionCode": "<region>",
                                    "timeZone": null
                                  },
                                  "activityStatus": "Active",
                                  "lastObserved": 1649500589000,
                                  "firstObserved": 1646698531000
                                }
                              ],
                              "classifications": [
                                {
                                  "name": "ShortKeyCertificate",
                                  "activityStatus": "Active",
                                  "values": [
                                    {
                                      "jsonValue": "{\"validWhenScanned\":true}",
                                      "firstObserved": 1646698531000,
                                      "lastObserved": 1649500589000
                                    }
                                  ],
                                  "firstObserved": 1646698500000,
                                  "lastObserved": 1649500560000
                                },
                                {
                                  "name": "LongExpirationCertificate",
                                  "activityStatus": "Active",
                                  "values": [
                                    {
                                      "jsonValue": "{\"validWhenScanned\":true}",
                                      "firstObserved": 1646698531000,
                                      "lastObserved": 1649500589000
                                    }
                                  ],
                                  "firstObserved": 1646698500000,
                                  "lastObserved": 1649500560000
                                },
                                {
                                  "name": "HttpServer",
                                  "activityStatus": "Active",
                                  "values": [
                                    {
                                      "jsonValue": "{<value>}",
                                      "firstObserved": 1649500589000,
                                      "lastObserved": 1649500589000
                                    }
                                  ],
                                  "firstObserved": 1646698500000,
                                  "lastObserved": 1649500560000
                                },
                                {
                                  "name": "InsecureSignatureCertificate",
                                  "activityStatus": "Active",
                                  "values": [
                                    {
                                      "jsonValue": "{\"validWhenScanned\":true}",
                                      "firstObserved": 1646698531000,
                                      "lastObserved": 1649500589000
                                    }
                                  ],
                                  "firstObserved": 1646698500000,
                                  "lastObserved": 1649500560000
                                },
                                {
                                  "name": "ServerSoftware",
                                  "activityStatus": "Active",
                                  "values": [
                                    {
                                      "jsonValue": "{\"serverSoftware\":\"HTTP_Server\"}",
                                      "firstObserved": 1646698531000,
                                      "lastObserved": 1649500589000
                                    }
                                  ],
                                  "firstObserved": 1646698500000,
                                  "lastObserved": 1649500560000
                                }
                              ],
                              "tlsVersions": [
                                {
                                  "tlsVersion": "TLSv1",
                                  "cipherSuite": "TLS_RSA",
                                  "firstObserved": 1646698531000,
                                  "lastObserved": 1649500589000,
                                  "activityStatus": "Active"
                                }
                              ],
                              "inferredCvesObserved": [],
                              "enrichedObservationSource": "CLOUD",
                              "ip_ranges": {}
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/assets/get_external_services": {
      "post": {
        "tags": [
          "Attack surface management"
        ],
        "summary": "Get All Services",
        "description": "Get a complete or filtered list of all your external services.\n\nThe maximum result limit is 500.\n\n",
        "operationId": "post-public_api-v1-assets-get_external_services",
        "parameters": [
          {
            "name": "authorization",
            "in": "header",
            "description": "api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "api-key-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "discovery_type",
                          "operator": "in",
                          "value": [
                            "colocated_on_ip"
                          ]
                        }
                      ],
                      "use_page_token": true
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "object",
                        "description": "An array of filter fields. ",
                        "properties": {
                          "field": {
                            "type": "string",
                            "enum": [
                              "active_classifications",
                              "business_units_list",
                              "discovery_type",
                              "domain",
                              "externally_detected_providers",
                              "externally_inferred_cves",
                              "inactive_classifications",
                              "ip_address",
                              "ipv6_address",
                              "is_active",
                              "protocol",
                              "service_name",
                              "service_type",
                              "service_type_list",
                              "tags"
                            ],
                            "description": "String that identifies the service field the filter is matching. Filters are based on the following case-sensitive keywords:\r\n\r\n- active_classifications\r\n- business_units_list\r\n- discovery_type\r\n- domain\r\n- externally_detected_providers\r\n- externally_inferred_cves\r\n- inactive_classifications\r\n- ip_address\r\n- ipv6_address\r\n- is_active\r\n- protocol\r\n- service_name\r\n- service_type\r\n- service_type_list\r\n- tags"
                          },
                          "operator": {
                            "type": "string",
                            "enum": [
                              "contains",
                              "not_contains",
                              "eq",
                              "neq",
                              "in"
                            ],
                            "description": "String that identifies the comparison operator you want to use for this filter. Valid keywords and values are:\r\n- **contains** / **not_contains**— use with `externally_detected_providers`, `domain`, `externally_inferred_cves`, `active_classifications`, `inactive_classifications`, service_name, `service_type`, `protocol`\r\n- **eq** / **neq**—  use with `service_name`, `service_type`, `protocol`, `ip_address`\r\n- **in** — use with `is_active`, `discovery_type`, `business_units_list`, `tags` "
                          },
                          "value": {
                            "description": "Value that this filter must match. The contents of this field will differ depending on the services field that you specified for this filter:\r\n- active_classifications — String\r\n- business_units_list — String or list of strings in the format \"BU name\" or \"BU:BU name\", for example “Acme & Co, Inc.” or “BU:Acme & Co, Inc.”\r\n- discovery_type — String. Values are: `colocated_on_ip`, `directly_discovered`, `unknown`.\r\n- domain —  String\r\n- externally_detected_providers — String \r\n- externally_inferred_cves — String\r\n- inactive_classifications — String\r\n- ip_address — String\r\n- ipv6_address— String\r\n- is_active — String. Values are:`yes`, `no`\r\n- protocol — string \r\n- service_name —  String\r\n- service_type —  String\r\n- service_type_list —  String\r\n- tags — List of strings indicating the tags to filter on in the format `\"tag-family:tag-name\"`, for example `\"AR:registered to you\"`.",
                            "oneOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            ]
                          }
                        }
                      },
                      "vulnerability_test_results": {
                        "type": "boolean",
                        "enum": [
                          true
                        ],
                        "description": "Use this field with the value `true` to get vulnerability test results for the last 14 days for each service.\r\nUsing this field will slow down the endpoint."
                      },
                      "search_from": {
                        "type": "integer",
                        "description": "An integer representing the start offset index of results.",
                        "default": 0
                      },
                      "search_to": {
                        "type": "integer",
                        "description": "An integer representing the start offset index of results. Use this field to specify the number of results on a page when using page token pagination.",
                        "default": 5000
                      },
                      "sort": {
                        "type": "object",
                        "description": "Identifies the sort order for the result set.",
                        "properties": {
                          "keyword": {
                            "type": "string",
                            "description": "Can be either ASC (ascending order) or DESC (descending order). Default is ASC. Values are case sensitive."
                          },
                          "field": {
                            "type": "string",
                            "description": "Values are: \r\n- service_name \r\n- first_observed \r\n- last_observed \r\nBy default, case-sensitive, sort is defined as service_name.\r\n"
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example with page token": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "string",
                          "operator": "string",
                          "value": "string"
                        }
                      ],
                      "use_page_token": true
                    }
                  }
                },
                "Example with sorted resulted": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "discovery_type",
                          "operator": "in",
                          "value": [
                            "colocated_on_ip",
                            "directly_discovery"
                          ]
                        },
                        {
                          "field": "service_name",
                          "operator": "contains",
                          "value": "apache"
                        }
                      ],
                      "search_from": 0,
                      "search_to": 500
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "total_count": {
                          "type": "integer"
                        },
                        "result_count": {
                          "type": "integer"
                        },
                        "external_services": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "service_id": {
                                "type": "string"
                              },
                              "service_name": {
                                "type": "string"
                              },
                              "service_type": {
                                "type": "string"
                              },
                              "ip_address": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "domain": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "externally_detected_providers": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "is_active": {
                                "type": "string"
                              },
                              "first_observed": {
                                "type": "integer"
                              },
                              "last_observed": {
                                "type": "integer"
                              },
                              "port": {
                                "type": "integer"
                              },
                              "protocol": {
                                "type": "string"
                              },
                              "active_classifications": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "inactive_classifications": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "discovery_type": {
                                "type": "string"
                              },
                              "business_units": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "externally_inferred_vulnerability_score": {
                                "type": "string"
                              },
                              "externally_inferred_cves": {
                                "type": "array",
                                "items": {
                                  "type": "object"
                                }
                              },
                              "tls_versions": {
                                "type": "array",
                                "items": {
                                  "type": "object"
                                }
                              },
                              "inferred_cves_observed": {
                                "type": "array",
                                "items": {
                                  "type": "object"
                                }
                              },
                              "cloud_management_status": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "total_count": 2,
                        "result_count": 2,
                        "external_services": [
                          {
                            "service_id": "<service_id>",
                            "service_name": "Server",
                            "service_type": "AServer",
                            "ip_address": [
                              "<ip_address>"
                            ],
                            "domain": [],
                            "externally_detected_providers": [
                              "On Prem"
                            ],
                            "is_active": "Active",
                            "first_observed": 1647152340000,
                            "last_observed": 1649499420000,
                            "port": 8009,
                            "protocol": "TCP",
                            "active_classifications": [
                              "AServer"
                            ],
                            "inactive_classifications": [],
                            "discovery_type": "DirectlyDiscovered",
                            "business_units": [
                              [
                                {
                                  "creation_time": 1684197662636,
                                  "family": "business_units",
                                  "family_alias": "BU",
                                  "id": "BU:<id>",
                                  "name": "Business Unit 1",
                                  "parent_id": null,
                                  "update_time": 1684197662636
                                }
                              ]
                            ],
                            "externally_inferred_vulnerability_score": null,
                            "externally_inferred_cves": [],
                            "tls_versions": [],
                            "inferred_cves_observed": []
                          },
                          {
                            "service_id": "<service_id>",
                            "service_name": "HTTP Server",
                            "service_type": "HttpServer",
                            "ip_address": [
                              "<ip_address>"
                            ],
                            "domain": [
                              "email.test.org"
                            ],
                            "externally_detected_providers": [
                              "Demo"
                            ],
                            "is_active": "Inactive",
                            "first_observed": 1647087420000,
                            "last_observed": 1647087420000,
                            "port": 80,
                            "protocol": "TCP",
                            "active_classifications": [],
                            "inactive_classifications": [
                              "HttpServer",
                              "NginxWebServer",
                              "ServerSoftware"
                            ],
                            "discovery_type": "ColocatedOnIp",
                            "business_units": [
                              "Test - Import-Export"
                            ],
                            "externally_inferred_vulnerability_score": null,
                            "externally_inferred_cves": [],
                            "cloud_management_status": null
                          }
                        ]
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "total_count": 0,
                        "result_count": 0,
                        "external_services": [
                          {
                            "service_id": "string",
                            "service_name": "string",
                            "service_type": "string",
                            "ip_address": [
                              "string"
                            ],
                            "domain": [
                              "string"
                            ],
                            "externally_detected_providers": [
                              "string"
                            ],
                            "is_active": "string",
                            "first_observed": 0,
                            "last_observed": 0,
                            "port": 0,
                            "protocol": "string",
                            "active_classifications": [
                              "string"
                            ],
                            "inactive_classifications": [
                              "string"
                            ],
                            "discovery_type": "string",
                            "business_units": [
                              "string"
                            ],
                            "externally_inferred_vulnerability_score": "null",
                            "externally_inferred_cves": [
                              {}
                            ],
                            "tls_versions": [
                              {}
                            ],
                            "inferred_cves_observed": [
                              {}
                            ],
                            "cloud_management_status": "null"
                          }
                        ]
                      }
                    }
                  },
                  "Example 2": {
                    "value": {
                      "reply": {
                        "total_count": 2,
                        "result_count": 2,
                        "external_services": [
                          {
                            "service_id": "<service_id>",
                            "service_name": "Server",
                            "service_type": "AServer",
                            "ip_address": [
                              "<ip_address>"
                            ],
                            "domain": [],
                            "externally_detected_providers": [
                              "On Prem"
                            ],
                            "is_active": "Active",
                            "first_observed": 1647152340000,
                            "last_observed": 1649499420000,
                            "port": 8009,
                            "protocol": "TCP",
                            "active_classifications": [
                              "AServer"
                            ],
                            "inactive_classifications": [],
                            "discovery_type": "DirectlyDiscovered",
                            "business_units": [
                              "Business Unit 1"
                            ],
                            "externally_inferred_vulnerability_score": "null",
                            "externally_inferred_cves": [],
                            "tls_versions": [],
                            "inferred_cves_observed": []
                          },
                          {
                            "service_id": "<service_id>",
                            "service_name": "HTTP Server",
                            "service_type": "HttpServer",
                            "ip_address": [
                              "ip_address"
                            ],
                            "domain": [
                              "email.test.org"
                            ],
                            "externally_detected_providers": [
                              "Demo"
                            ],
                            "is_active": "Inactive",
                            "first_observed": 1647087420000,
                            "last_observed": 1647087420000,
                            "port": 80,
                            "protocol": "TCP",
                            "active_classifications": [],
                            "inactive_classifications": [
                              "HttpServer",
                              "NginxWebServer",
                              "ServerSoftware"
                            ],
                            "discovery_type": "ColocatedOnIp",
                            "business_units": [
                              "Test - Import-Export"
                            ],
                            "externally_inferred_vulnerability_score": "null",
                            "externally_inferred_cves": [],
                            "cloud_management_status": "null"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters."
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/triage_endpoint": {
      "post": {
        "tags": [
          "Endpoint Management"
        ],
        "summary": "Initiate Forensics Triage",
        "description": "Initiate forensics triage for the specified agents.\n- Maximum of 10 concurrent triage actions at a time.\n- Specified agents must have Forensics License enabled.\n- Specified agents must be the same OS, Windows or macOS, but not a mixture of both.\n- Specified configuration must have type \"Online = True\".\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "post-public_api-v1-triage_endpoint",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "agent_ids": {
                        "type": "array",
                        "description": "List of agents to run forensics triage on. ",
                        "items": {
                          "type": "string"
                        }
                      },
                      "collector_uuid": {
                        "type": "string",
                        "description": "UUID of the triage configuration. If none is specified, the default configuration is used for this action."
                      }
                    },
                    "required": [
                      "agent_ids"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "group_action_id": {
                          "type": "integer",
                          "description": "Unique ID for triage action."
                        },
                        "successful_agent_ids": {
                          "type": "array",
                          "description": "List of agent IDs that successfully received the triage action.",
                          "items": {
                            "type": "string"
                          }
                        },
                        "unsuccessful_agent_ids": {
                          "type": "array",
                          "description": "List of agent IDs that did not successfully receive the triage action.",
                          "items": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "GROUP_ACTION_ID": 325,
                        "SUCCESSFUL_AGENT_IDS": [
                          "5111e5eb99944e2f97274da4f30b4813"
                        ],
                        "UNSUCCESSFUL_AGENT_IDS": []
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "group_action_id": 325,
                        "successful_agent_ids": [
                          "5111c5eb93944e2f97674db4f36b4211"
                        ],
                        "unsuccessful_agent_ids": []
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "402": {
            "description": "Payment Required"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/assets/get_vulnerability_tests": {
      "post": {
        "summary": "Get vulnerability tests",
        "description": "Get a complete or filtered list of vulnerability tests. Results include details about each test, including the number of services confirmed vulnerable.\n\n",
        "operationId": "post-public_api-v1-assets-get_vulnerability_tests",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "\n\n",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "name",
                                "status",
                                "vulnerability_ids",
                                "description",
                                "affected_software",
                                "cwe_ids",
                                "vendor_names",
                                "severity_score",
                                "epss_score",
                                "count_vulnerable_services"
                              ],
                              "description": "Identifies the field the filter will match on."
                            },
                            "operator": {
                              "type": "string",
                              "description": "Identifies the comparison operator to use for this filter. The following list shows which operator can be used for each filter field:\r\n- `name`: contains, eq, neq\r\n- `status`: eq\r\n- `vulnerability_ids`: contains, not_contains\r\n- `description`: contains\r\n- `affected_software`: contains, not_contains\r\n- `cwe_ids`: contains, not_contains\r\n- `vendor_names`: contains, not_contains\r\n- `severity_score`: eq, neq, gte, lte\r\n- `epss_score`: eq, neq, gte, lte\r\n- `count_vulnerable_services`: eq, neq, gte, lte\r\n"
                            },
                            "value": {
                              "type": "string",
                              "description": "Value depends on the filter field used.\r\n- `name`: string e.g. apache\r\n- `status`: Enabled, Disabled\r\n- `vulnerability_ids`: strings in the form of CVE IDs, such as CVE-1, CVE-2\r\n- `description`: string e.g. apache\r\n- `affected_software`: strings\r\n- `cwe_ids`: strings in the form of CWE IDs such as CWE-20\r\n- `vendor_names`: strings such as Cisco, Siemens\r\n- `severity_score`: numbers, such as 2, 3.5\r\n- `epss_score`: numbers, such as 2, 3.5\r\n- `count_vulnerable_services`: integers, such as 1,2,5"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "name",
                          "operator": "contains",
                          "value": "apache"
                        }
                      ]
                    }
                  }
                }
              },
              "examples": {
                "Example ": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "name",
                          "operator": "contains",
                          "value": "apache"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "total_count": {
                          "type": "integer"
                        },
                        "result_count": {
                          "type": "integer"
                        },
                        "vulnerability_tests": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "vulnerability_ids": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "description": {
                                "type": "string"
                              },
                              "status": {
                                "type": "string"
                              },
                              "vendor_names": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "affected_software": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "NAME": {
                                      "type": "string"
                                    },
                                    "VERSION_START_INCLUDING": {
                                      "type": "integer",
                                      "nullable": true
                                    },
                                    "VERSION_START_EXCLUDING": {
                                      "type": "integer",
                                      "nullable": true
                                    },
                                    "VERSION_END_INCLUDING": {
                                      "type": "integer",
                                      "nullable": true
                                    },
                                    "VERSION_END_EXCLUDING": {
                                      "type": "string"
                                    },
                                    "VENDOR": {
                                      "type": "string"
                                    },
                                    "PRODUCT": {
                                      "type": "string"
                                    },
                                    "VERSION": {
                                      "type": "string"
                                    }
                                  }
                                }
                              },
                              "severity_score": {
                                "type": "number"
                              },
                              "cwe_ids": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "epss_score": {
                                "type": "number"
                              },
                              "references": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "remediation_guidance": {
                                "type": "string"
                              },
                              "first_published": {
                                "type": "integer"
                              },
                              "created": {
                                "type": "integer"
                              },
                              "count_vulnerable_services": {
                                "type": "integer",
                                "nullable": true
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "total_count": 1,
                        "result_count": 1,
                        "vulnerability_tests": [
                          {
                            "id": "69527826-e1c5-42d8-b8d8-2c2005b75cbe",
                            "name": "Apache Solr DataImportHandler Code Injection Vulnerability",
                            "vulnerability_ids": [
                              "CVE-2019-0193"
                            ],
                            "description": "Apache Solr, a popular open-source search platform built on Apache Lucene, is affected by a remote code execution vulnerability. Solr's DataImportHandler (DIH), an optional module widely used to import data from databases and other sources, allows the entire DIH configuration to come from a request's \"dataConfig\" parameter. The debug mode of the DIH admin screen uses this feature for convenient debugging and development of a DIH configuration. However, since a DIH configuration can contain scripts, this parameter poses a security risk. The affected products can potentially be exposed to the public internet, making them vulnerable to exploitation.\n",
                            "status": "DISABLED",
                            "vendor_names": [
                              "apache"
                            ],
                            "affected_software": [
                              {
                                "NAME": "cpe:2.3:a:apache:solr:*:*:*:*:*:*:*:*",
                                "VERSION_START_INCLUDING": null,
                                "VERSION_START_EXCLUDING": null,
                                "VERSION_END_INCLUDING": null,
                                "VERSION_END_EXCLUDING": "8.2.0",
                                "VENDOR": "apache",
                                "PRODUCT": "solr",
                                "VERSION": "*"
                              }
                            ],
                            "severity_score": 7.2,
                            "cwe_ids": [
                              "CWE-94"
                            ],
                            "epss_score": 0.9605,
                            "references": [
                              "https://issues.apache.org/jira/browse/SOLR-13669"
                            ],
                            "remediation_guidance": "Exploiting this vulnerability may lead to remote code execution, which could compromise the security and integrity of the affected system. To address this issue, follow these steps:\n\n1. Upgrade to Apache Solr 8.2.0 or later, which is secure by default.\n2. Alternatively, edit the solrconfig.xml to configure all DataImportHandler usages with an \"invariants\" section listing the \"dataConfig\" parameter set to an empty string.\n3. Ensure your network settings are configured so that only trusted traffic communicates with Solr, especially to the DIH request handler. This is a best practice for all Solr installations.\n\nBy implementing these fixes and mitigations, you can protect your Apache Solr installation from the remote code execution vulnerability described in CVE-2019-0193.\n",
                            "first_published": 1699326060000,
                            "created": 1711058940000,
                            "count_vulnerable_services": null
                          }
                        ]
                      }
                    }
                  }
                },
                "examples": {
                  "Example ": {
                    "value": {
                      "reply": {
                        "total_count": 1,
                        "result_count": 1,
                        "vulnerability_tests": [
                          {
                            "id": "69527826-e1c5-42d8-b8d8-2c2005b75cbe",
                            "name": "Apache Solr DataImportHandler Code Injection Vulnerability",
                            "vulnerability_ids": [
                              "CVE-2019-0193"
                            ],
                            "description": "Apache Solr, a popular open-source search platform built on Apache Lucene, is affected by a remote code execution vulnerability. Solr's DataImportHandler (DIH), an optional module widely used to import data from databases and other sources, allows the entire DIH configuration to come from a request's \"dataConfig\" parameter. The debug mode of the DIH admin screen uses this feature for convenient debugging and development of a DIH configuration. However, since a DIH configuration can contain scripts, this parameter poses a security risk. The affected products can potentially be exposed to the public internet, making them vulnerable to exploitation.\n",
                            "status": "DISABLED",
                            "vendor_names": [
                              "apache"
                            ],
                            "affected_software": [
                              {
                                "NAME": "cpe:2.3:a:apache:solr:*:*:*:*:*:*:*:*",
                                "VERSION_START_INCLUDING": null,
                                "VERSION_START_EXCLUDING": null,
                                "VERSION_END_INCLUDING": null,
                                "VERSION_END_EXCLUDING": "8.2.0",
                                "VENDOR": "apache",
                                "PRODUCT": "solr",
                                "VERSION": "*"
                              }
                            ],
                            "severity_score": 7.2,
                            "cwe_ids": [
                              "CWE-94"
                            ],
                            "epss_score": 0.9605,
                            "references": [
                              "https://issues.apache.org/jira/browse/SOLR-13669"
                            ],
                            "remediation_guidance": "Exploiting this vulnerability may lead to remote code execution, which could compromise the security and integrity of the affected system. To address this issue, follow these steps:\n\n1. Upgrade to Apache Solr 8.2.0 or later, which is secure by default.\n2. Alternatively, edit the solrconfig.xml to configure all DataImportHandler usages with an \"invariants\" section listing the \"dataConfig\" parameter set to an empty string.\n3. Ensure your network settings are configured so that only trusted traffic communicates with Solr, especially to the DIH request handler. This is a best practice for all Solr installations.\n\nBy implementing these fixes and mitigations, you can protect your Apache Solr installation from the remote code execution vulnerability described in CVE-2019-0193.\n",
                            "first_published": 1699326060000,
                            "created": 1711058940000,
                            "count_vulnerable_services": null
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ],
        "tags": [
          "Attack surface management"
        ]
      }
    },
    "/public_api/v1/assets/bulk_update_vulnerability_tests": {
      "post": {
        "tags": [
          "Attack surface management"
        ],
        "summary": "Bulk Update Vulnerability Tests",
        "description": "Enable or disable vulnerability tests.\n\nTo view vulnerability test results, use the [Get All Services](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/attack-surface-management#post-public_api-v1-assets-get_external_services) or [Get Service Details](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/attack-surface-management#post-public_api-v1-assets-get_external_service) endpoints.\n\n",
        "operationId": "post-public_api-v1-assets-bulk_update_vulnerability_tests",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "test_names": {
                        "type": "array",
                        "description": "Names of tests, for example [\"test1\", \"test2\", \"test3\"]\r\n ",
                        "items": {
                          "type": "string"
                        }
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "Enabled",
                          "Disabled"
                        ]
                      }
                    }
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "test_names": [
                        "Apache Solr DataImportHandler Code Injection Vulnerability"
                      ],
                      "status": "Enabled"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "test_names": [
                        "Apache Solr DataImportHandler Code Injection Vulnerability"
                      ],
                      "status": "Enabled"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/dataset/define_dataset": {
      "post": {
        "tags": [
          "XQL user datasets"
        ],
        "summary": "Define an XQL user dataset",
        "description": "Define an XQL user dataset based on an existing BigQuery table created by the user.\r\n\r\n**Note:** BigQuery table must be an existing table under public_access_user.\r\n\r\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.\r\n\r\nThese APIs are only applicable from within the XSIAM Notebook environment.",
        "operationId": "post-public_api-v1-dataset-define_dataset",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "table_name": {
                        "type": "string",
                        "description": "An existing BigQuery table name that was created by the user."
                      }
                    },
                    "required": [
                      "table_name"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/dataset/get_created_datasets": {
      "post": {
        "tags": [
          "XQL user datasets"
        ],
        "summary": "Get created XQL user datasets",
        "description": "Retrieve a list of all XQL user datasets created using the Cortex SDK.\r\n\r\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.\r\n\r\nThese APIs are only applicable from within the XSIAM Notebook environment.",
        "operationId": "post-public_api-v1-dataset-get_created_datasets",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "datasets": {
                      "type": "array",
                      "description": "A list of created datasets.",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/dataset/delete_dataset": {
      "post": {
        "tags": [
          "XQL user datasets"
        ],
        "summary": "Delete an XQL user dataset",
        "description": "Delete an XQL user dataset that was created by the Cortex SDK.\r\n\r\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.\r\n\r\nThese APIs are only applicable from within the XSIAM Notebook environment.",
        "operationId": "post-public_api-v1-dataset-delete_dataset",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "dataset_name": {
                        "type": "string",
                        "description": "The dataset name to be deleted."
                      },
                      "delete_underlying_bq_table": {
                        "type": "boolean",
                        "description": "Define whether or not to delete the BigQuery table related to the dataset.",
                        "default": false
                      }
                    },
                    "required": [
                      "dataset_name"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/xql/add_dataset": {
      "post": {
        "tags": [
          "Dataset Management"
        ],
        "summary": "Add Dataset",
        "description": "Add a dataset of type `lookup` with the specified name and schema.\r\n\r\n**Note:** Requests time out after three minutes.\r\n\r\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-xql-add_dataset",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "dataset_name": {
                        "type": "string",
                        "description": "The designated name of the dataset."
                      },
                      "dataset_type": {
                        "type": "string",
                        "description": "Dataset type. Currently only `lookup` is supported."
                      },
                      "dataset_schema": {
                        "type": "object",
                        "description": "The schema of the dataset in a comma-separated list of JSON pairs where the key is the field name and the value is the field type.",
                        "additionalProperties": {
                          "type": "string",
                          "enum": [
                            "text",
                            "number",
                            "bool",
                            "datetime"
                          ]
                        }
                      }
                    },
                    "required": [
                      "dataset_name",
                      "dataset_type",
                      "dataset_schema"
                    ]
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "dataset_name": "users",
                      "dataset_schema": {
                        "uid": "text",
                        "username": "text",
                        "zipcode": "number",
                        "salary": "number",
                        "is_admin": "bool",
                        "birthday": "datetime"
                      },
                      "dataset_type": "lookup"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "dataset_name": {
                      "type": "string",
                      "description": "Name of the dataset added."
                    }
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v2/xql/delete_dataset": {
      "post": {
        "tags": [
          "Dataset Management"
        ],
        "summary": "Delete a dataset",
        "description": "Delete a dataset with the specified name. The following dataset types can be deleted: Lookup, Raw, User, Snapshot, and Correlation. You can only delete a dataset with dependencies by setting `force` to `true`.\r\n\r\n**Note:** The System dataset and other protected datasets cannot be deleted.\r\n- Requests time out after three minutes.\r\n\r\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-xql-delete_dataset",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "dataset_name": {
                        "type": "string",
                        "description": "The name of the dataset to be deleted."
                      },
                      "force": {
                        "type": "boolean",
                        "description": "**Warning:** Setting this to `true` forces deletion even when there are dependencies."
                      }
                    },
                    "required": [
                      "dataset_name"
                    ]
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "dataset_name": "users",
                    "force": true
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "dataset_name": "users",
                      "force": true
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/xql/get_datasets": {
      "post": {
        "tags": [
          "Dataset Management"
        ],
        "summary": "Get all datasets",
        "description": "Retrieve a list of all the datasets and their properties.\r\n\r\n**Note:** Requests time out after three minutes.\r\n\r\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-xql-get_datasets",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "dataset_name": {
                            "type": "string",
                            "description": "Dataset name."
                          },
                          "type": {
                            "type": "string",
                            "description": "Dataset type. Can be one of the following: `System`, `Lookup`, `Raw`, `User`, `Snapshot`, `Correlation`, `System Audit`."
                          },
                          "log_update_type": {
                            "type": "string",
                            "description": "Log update type. Can be one of the following: `Logs` (event logs are updated continuously), `State` (the current state is updated periodically)."
                          },
                          "last_updated": {
                            "type": "integer",
                            "description": "Integer in timestamp epoch milliseconds. When the data in the dataset was last updated."
                          },
                          "total_days_stored": {
                            "type": "integer",
                            "description": "Number of dats the data is stored in the tenant, which is comprised of `hot_range` + `cold_range`."
                          },
                          "hot_range": {
                            "type": "object",
                            "description": "The time period of the hot storage from the start date to the end date.",
                            "properties": {
                              "from": {
                                "type": "integer",
                                "description": "    Integer in timestamp epoch milliseconds."
                              },
                              "to": {
                                "type": "integer",
                                "description": "Integer in timestamp epoch milliseconds."
                              }
                            }
                          },
                          "cold_range": {
                            "type": "object",
                            "description": "The time period of the cold storage from the start date to the end date.",
                            "properties": {
                              "from": {
                                "type": "integer",
                                "description": "Integer in timestamp epoch milliseconds."
                              },
                              "to": {
                                "type": "integer",
                                "description": "Integer in timestamp epoch milliseconds."
                              }
                            }
                          },
                          "total_size_stored": {
                            "type": "integer",
                            "description": "Actual size of the data (in bytes) that is stored in the tenant. This number is dependent on the events stored in the hot storage. For the xdr_data dataset, where the first 31 days of storage are included with your license, the first 31 days are not included in the `total_size_stored` number."
                          },
                          "average_daily_size": {
                            "type": "integer",
                            "description": "Average daily amount stored (in bytes) in the tenant. This number is dependent on the events stored in the hot storage."
                          },
                          "total_events": {
                            "type": "integer",
                            "description": "Number of total events/logs that are stored in the tenant. This number is dependent on the events stored in the hot storage."
                          },
                          "average_event_size": {
                            "type": "integer",
                            "description": "Average size (in bytes) of a single event in the dataset (`total_size_stored` divided by the `total_events`). This number is dependent on the events stored in the hot storage."
                          },
                          "ttl": {
                            "type": "integer",
                            "description": "Time to live. Defines when lookup entries expire and are removed automatically from the lookup dataset."
                          },
                          "default_query_target": {
                            "type": "boolean",
                            "description": "whether the dataset is configured to use as your default query target in XQL Search, so when you write your queries you do not need to define a dataset. Can be one of the following: `True`, `False`."
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": [
                        {
                          "Dataset Name": "xdr_data",
                          "Type": "SYSTEM",
                          "Log Update Type": "LOGS",
                          "Last Updated": null,
                          "Total Days Stored": null,
                          "Hot Range": {
                            "from": 1715299200000,
                            "to": 1716595200000
                          },
                          "Cold Range": {},
                          "Total Size Stored": null,
                          "Average Daily Size": null,
                          "Total Events": null,
                          "Average Event Size": null,
                          "TTL": null,
                          "Default Query Target": "FALSE"
                        },
                        {
                          "Dataset Name": "host_inventory",
                          "Type": "SYSTEM",
                          "Log Update Type": "LOGS",
                          "Last Updated": null,
                          "Total Days Stored": null,
                          "Hot Range": {},
                          "Cold Range": {},
                          "Total Size Stored": null,
                          "Average Daily Size": null,
                          "Total Events": null,
                          "Average Event Size": null,
                          "TTL": null,
                          "Default Query Target": "FALSE"
                        },
                        {
                          "Dataset Name": "host_users_to_groups",
                          "Type": "SYSTEM",
                          "Log Update Type": "LOGS",
                          "Last Updated": null,
                          "Total Days Stored": null,
                          "Hot Range": {},
                          "Cold Range": {},
                          "Total Size Stored": null,
                          "Average Daily Size": null,
                          "Total Events": null,
                          "Average Event Size": null,
                          "TTL": null,
                          "Default Query Target": "FALSE"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/xql/lookups/add_data": {
      "post": {
        "tags": [
          "Lookup Datasets"
        ],
        "summary": "Add or update data in a lookup dataset",
        "description": "Add or update data in a lookup dataset.\r\n\r\nWhen updating data, any field not specified in the `data` field, but specified on at least one of the rows, will be set to `None`.\r\n\r\nThe `/public_api/xql/lookups/add_data/` endpoint does not support concurrent edits. Sending concurrent calls to this endpoint can cause data to be unintentionally overwritten or deleted. To allow sufficient time for each API call to complete its operation before initiating another one, assume that 1000 entries can be added per API every 10 seconds.\r\n\r\n**Note: ** \r\n\r\n- The maximum size of a lookup dataset is 50 MB. Attempting to exceed this limit will fail.\r\n- Requests time out after three minutes.\r\n\r\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-xql-lookups-add_data",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "dataset_name": {
                        "type": "string",
                        "description": "Unique dataset name"
                      },
                      "key_fields": {
                        "type": "array",
                        "description": "The fields used to identify existing records. If there is not an exact match to the key_fields specified, a new row is created. \r\nWhen you specify `key_fields`, these fields are mandatory in data entries. When `key_fields` are not specified, existing data entries are not updated, and new entries are added with the specified data.",
                        "items": {
                          "type": "string"
                        }
                      },
                      "data": {
                        "type": "object",
                        "description": "Key-value pairs of data entries.",
                        "additionalProperties": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "dataset_name",
                      "data"
                    ]
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "dataset_name": "users",
                      "key_fields": [
                        "uid",
                        "username"
                      ],
                      "data": [
                        {
                          "uid": "123abc",
                          "username": "john",
                          "zipcode": 58672,
                          "salary": 5.1,
                          "is_admin": false,
                          "birthday": "31-05-1982T10:22:45Z"
                        },
                        {
                          "uid": "124abc",
                          "username": "jane",
                          "zipcode": 58642,
                          "salary": 5000000,
                          "is_admin": true,
                          "birthday": "31-03-1982T10:22:45Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "added": {
                      "type": "integer"
                    },
                    "updated": {
                      "type": "integer"
                    },
                    "skipped": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/xql/lookups/remove_data": {
      "post": {
        "tags": [
          "Lookup Datasets"
        ],
        "summary": "Remove data from a lookup dataset",
        "description": "Remove data from a dataset based on the specified parameters. If any one of the filter sets are not found, the API does not delete any data.\r\n\r\nThe `/public_api/xql/lookups/remove_data/`  endpoint does not support concurrent edits. Sending concurrent calls to this endpoint can cause data to be unintentionally overwritten or deleted. To allow sufficient time for each API call to complete its operation before initiating another one, assume that 1000 entries can be added per API every 10 seconds.\r\n\r\n**Note:** \r\n- All lookup entries matching any of the filter blocks are deleted. To match a filter block, a lookup entry must match all the specified fields as if there were an `AND` operator between them. \r\n- Requests time out after three minutes.\r\n\r\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-xql-lookups-remove_data",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "dataset_name": {
                        "type": "string",
                        "description": "The name of the dataset to delete."
                      },
                      "filters": {
                        "type": "object",
                        "description": "Key-value pairs of fields to query in datasets. A lookup entry must match all the specified fields as if there were an `AND` operator between them.\r\nYou can use one or more fields, up to the number of fields in the schema.",
                        "additionalProperties": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "dataset_name",
                      "filters"
                    ]
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "dataset_name": "users",
                      "filters": [
                        {
                          "uid": "123",
                          "username": "john"
                        },
                        {
                          "uid": "124",
                          "zipcode": 58672
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "integer",
                      "description": "Number of entries deleted successfully."
                    }
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/xql/lookups/get_data": {
      "post": {
        "tags": [
          "Lookup Datasets"
        ],
        "summary": "Get data from a lookup dataset",
        "description": "Get data from a lookup dataset according to the specified filter fields. All lookup entries matching any of the filter blocks are returned. To match a filter block, a lookup entry must match all the specified fields as if there were an `AND` operator between them. If no filters are specified, return all lookup entries. \r\n\r\n**Note:** \r\n\r\n- The maximum number of entries returned is 10,000. \r\n- Requests time out after three minutes.\r\n\r\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-xql-lookups-get_data",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "dataset_name": {
                        "type": "string",
                        "description": "Name of the dataset to query."
                      },
                      "filters": {
                        "type": "array",
                        "description": "Key-value pairs of fields to query in a dataset. A lookup entry must match all the specified fields as if there were an `AND` operator between them.\r\nYou can use one or more fields, up to the number of fields in the schema.",
                        "items": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          }
                        }
                      },
                      "limit": {
                        "type": "integer",
                        "description": "The maximum number of results to return. If this is not specified, return all lookup entries that match the filter criteria."
                      }
                    },
                    "required": [
                      "dataset_name"
                    ]
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "dataset_name": "users",
                      "filters": [
                        {
                          "uid": "123",
                          "username": "john"
                        },
                        {
                          "department": "dev",
                          "zipcode": "58674"
                        }
                      ],
                      "limit": 20
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "filter_count": {
                      "type": "integer",
                      "description": "Number of entries that match the filter."
                    },
                    "total_count": {
                      "type": "integer",
                      "description": "Total number of entries."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "data": [
                          {
                            "uid": "uid5",
                            "salary": 5.1,
                            "zipcode": 70005,
                            "birthday": 386418165000,
                            "is_admin": true,
                            "username": "username5",
                            "_insert_time": 1718807765000,
                            "_update_time": 1718807765000,
                            "_collector_name": "Console",
                            "_collector_type": "Console"
                          },
                          {
                            "uid": "uid6",
                            "salary": 6.1,
                            "zipcode": 70006,
                            "birthday": 386418165000,
                            "is_admin": true,
                            "username": "username6",
                            "_insert_time": 1718807765000,
                            "_update_time": 1718807765000,
                            "_collector_name": "Console",
                            "_collector_type": "Console"
                          }
                        ],
                        "filter count": 2,
                        "total count": 10
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/get_triage_presets": {
      "post": {
        "tags": [
          "Response Action"
        ],
        "summary": "Get triage presets",
        "description": "Get all triage preset information including triage name, platform, description, created by, and triage type.\r\n\r\n**Required license:** In Cortex Cloud Runtime Security, requires the Forensics add-on. Not supported in Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-get_triage_presets",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object"
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "request_data": {}
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "triage_presets": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "uuid": {
                                "type": "string",
                                "description": "Preset/configuration UUID"
                              },
                              "name": {
                                "type": "string",
                                "description": "Triage name"
                              },
                              "os": {
                                "type": "string",
                                "description": "Triage operating system/platform: `Windows` or `macOS`"
                              },
                              "description": {
                                "type": "string",
                                "description": "Description"
                              },
                              "created_by": {
                                "type": "string",
                                "description": "Triage was created by"
                              },
                              "type": {
                                "type": "string",
                                "description": "Triage type: Online, Offline, Online/Offline"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "triage_presets": [
                          {
                            "uuid": "374ecf0447c944c39791e5a60d1a6d24",
                            "name": "XDR Default",
                            "os": "MACOS",
                            "description": "Default macOS Triage configuration included with the XDR Forensics add-on",
                            "created_by": "secdo-default@sec.do",
                            "type": "Online / Offline"
                          },
                          {
                            "uuid": "ea7a5d3ff02d41629e96fbd1d5f68535",
                            "name": "XDR Default",
                            "os": "WINDOWS",
                            "description": "Default Triage configuration included with XDR Forensics add-on",
                            "created_by": "secdo-default@sec.do",
                            "type": "Online / Offline"
                          }
                        ]
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "triage_presets": [
                          {
                            "uuid": "374ecf0457c944c39791e5a60d1a6d24",
                            "name": "XDR Default",
                            "os": "MACOS",
                            "description": "Default macOS Triage configuration included with the XDR Forensics add-on",
                            "created_by": "user@company.com",
                            "type": "Online / Offline"
                          },
                          {
                            "uuid": "ea7a5d3ff52d41629e96fbd1d5f68535",
                            "name": "XDR Default",
                            "os": "WINDOWS",
                            "description": "Default Triage configuration included with XDR Forensics add-on",
                            "created_by": "user@company.com",
                            "type": "Online / Offline"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/authentication-settings/create": {
      "post": {
        "tags": [
          "Authentication settings"
        ],
        "summary": "Create authentication settings for IdP SSO or metadata URL",
        "description": "Create authentication settings for IdP SSO or metadata URL. You must include either the `metadata_url` field or all of the following fields: `idp_sso_url`, `idp_issuer`, and `idp_certificate`.\n\nYou must have **Instance Administrator** permissions to run this endpoint.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-authentication-settings-create",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "The name of the SSO integration."
                      },
                      "default_role": {
                        "type": "string",
                        "description": "The default role automatically assigned to every user who authenticates to Cortex using SAML. This is an inherited role and is not the same as a direct role assigned to the user.\n\nIf a role with the same name exists on both Cortex Gateway and the tenant, the role will mapped to the role from the tenant. If you want to use specifically the role from Cortex Gateway, use the `is_account_role` parameter set to `true`."
                      },
                      "is_account_role": {
                        "type": "boolean",
                        "description": "Whether the role was created in Cortex Gateway or in the tenant. When the value is `true`, the role was created in Cortex Gateway.",
                        "default": false
                      },
                      "domain": {
                        "type": "string",
                        "description": "When configuring the first SSO, this parameter should be included as empty because it is the default SSO and has a fixed, read-only value. \nFor additional SSOs, specify this IdP with an email domain (user@<domain>). When logging in, users are redirected to the IdP associated with their email domain or to the default IdP if no association exists."
                      },
                      "mappings": {
                        "type": "object",
                        "description": "These IdP attribute mappings are dependent on your organization’s IdP.",
                        "properties": {
                          "email": {
                            "type": "string",
                            "description": "The IdP attribute mapped to the user's email address in the Syslog server."
                          },
                          "firstname": {
                            "type": "string",
                            "description": "The IdP attribute mapped to the user's first name."
                          },
                          "lastname": {
                            "type": "string",
                            "description": "The IdP attribute mapped to the user's last name."
                          },
                          "group_name": {
                            "type": "string",
                            "description": "The IdP attribute mapped to the user's group membership for authorization.\n\n**Note:** Cortex requires the IdP to send the group membership as part of the SAML token. Some IdPs send values in a format that include a comma, which is not compatible with Cortex. In that case, you must configure your IdP to send a single value without a comma for each group membership. For example, if your IdP sends the Group DN (a comma-separated list), by default, you must configure IdP to send the Group CN (Common Name) instead."
                          }
                        },
                        "required": [
                          "email",
                          "firstname",
                          "lastname",
                          "group_name"
                        ]
                      },
                      "advanced_settings": {
                        "type": "object",
                        "description": "The advanced settings are optional to configure and some are specific for a particular IdP.",
                        "properties": {
                          "relay_state": {
                            "type": "string",
                            "description": "The URL for a specific page that you want users to be directed to after they've been authenticated by your organization's IdP and log in to Cortex."
                          },
                          "idp_single_logout_url": {
                            "type": "string",
                            "description": "The URL of the IdP's Single Logout endpoint. This ensures that when a user initiates a logout from Cortex, the identity provider logs the user out of all applications in the current identity provider login session."
                          },
                          "service_provider_public_cert": {
                            "type": "string",
                            "description": "The Syslog server's public X.509 certificate in PEM format for IdP validation."
                          },
                          "service_provider_private_key": {
                            "type": "string",
                            "description": "The Syslog server's private key in PEM format for signing SAML responses. (This is mostly required for ADFS)"
                          },
                          "authn_context_enabled": {
                            "type": "boolean",
                            "description": "Whether to remove the `RequestedAuthnContext` parameter from SAML requests.\nIf `true`, allows users to log in by using additional authentication methods.",
                            "default": false
                          },
                          "force_authn": {
                            "type": "boolean",
                            "description": "Whether to force users to reauthenticate to access the Cortex tenant if requested by the IdP, even if they already authenticated to access other applications.",
                            "default": false
                          }
                        }
                      },
                      "idp_sso_url": {
                        "type": "string",
                        "description": "The login URL of your IdP and should be copied from your SAML integration configuration on the IdP.\nFor example:\n- Okta: https://cortex-test.okta.com/app/cortex-test/eacbt6b2jj08CasdUQ7sdf15d7/sso/SAML\n- Microsoft Azure: https://login.microsoftonline.com/6a5a9780-96a4-41ef-bf45-0535d8a70025/saml2"
                      },
                      "idp_certificate": {
                        "type": "string",
                        "description": "The Idp's public X.509 digital certificate in PEM format for verification, which is copied from your organization's IdP."
                      },
                      "idp_issuer": {
                        "type": "string",
                        "description": "The unique identifier of the IdP issuing SAML assertions, which is copied from your organization's IdP."
                      },
                      "metadata_url": {
                        "type": "string",
                        "description": "The metadata URL provides information about hte IdP's capabilities, endpoints, keys, and more. \nFor example: \n- Okta: https://cortex-test.okta.com/app/exkbuuzw77Bh04V6M6b8/sso/saml/metadata\n- Microsoft Azure: https://login.microsoftonline.com/6a5a9780-96a4-41ef-bf45-0535d8a70025/saml2/metadata"
                      }
                    },
                    "required": [
                      "name",
                      "mappings"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "name": "str",
                      "default_role": "",
                      "is_account_role": false,
                      "domain": " ",
                      "mappings": {
                        "email": "str",
                        "firstname": "str",
                        "lastname": "str",
                        "group_name": "str"
                      },
                      "advanced_settings": {
                        "relay_state": " ",
                        "idp_single_logout_url": " ",
                        "service_provider_public_cert": " ",
                        "service_provider_private_key": " ",
                        "authn_context_enabled": " ",
                        "force_authn": false
                      },
                      "idp_sso_url": " ",
                      "idp_certificate": " ",
                      "idp_issuer": " ",
                      "metadata_url": " "
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "name": "IdP configuration",
                      "default_role": "Analyst",
                      "domain": "my-test-domain.com",
                      "mappings": {
                        "email": "user@company.com",
                        "firstname": "John",
                        "lastname": "Smith",
                        "group_name": "analysts"
                      },
                      "idp_sso_url": "https://cortex-test.okta.com/app/cortex-test/xxxxxxx/sso/SAML",
                      "idp_certificate": "MY_CERTIFICATE_FROM_OKTA",
                      "idp_issuer": "https://cortex-test.okta.com/idp",
                      "advanced_settings": {},
                      "is_account_role": true
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "boolean"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": true
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/authentication-settings/update": {
      "post": {
        "tags": [
          "Authentication settings"
        ],
        "summary": "Update authentication settings",
        "description": "Update existing authentication settings. To update the default domain, include empty value for both `current_domain_value` and `new_domain_value`.\n\nYou must have **Instance Administrator** permissions to run this endpoint.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-authentication-settings-update",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "The name of the SSO integration."
                      },
                      "default_role": {
                        "type": "string",
                        "description": "The default role automatically assigned to every user who authenticates to Cortex using SAML. This is an inherited role and is not the same as a direct role assigned to the user.\n\nIf a role with the same name exists on both Cortex Gateway and the tenant, the role will mapped to the role from the tenant. If you want to use specifically the role from Cortex Gateway, use the `is_account_role` parameter set to `true`."
                      },
                      "is_account_role": {
                        "type": "boolean",
                        "description": "Whether the role was created in Cortex Gateway or in the tenant. When the value is `true`, the role was created in Cortex Gateway.",
                        "default": false
                      },
                      "current_domain_value": {
                        "type": "string",
                        "description": "The domain whose authentication settings you want to update."
                      },
                      "new_domain_value": {
                        "type": "string",
                        "description": "If you want to update the domain value, include a new unique domain."
                      },
                      "mappings": {
                        "type": "object",
                        "description": "These IdP attribute mappings are dependent on your organization's IdP.",
                        "properties": {
                          "email": {
                            "type": "string",
                            "description": "The IdP attribute mapped to the user's email address in the Syslog server."
                          },
                          "firstname": {
                            "type": "string",
                            "description": "The IdP attribute mapped to the user's first name."
                          },
                          "lastname": {
                            "type": "string",
                            "description": "The IdP attribute mapped to the user's last name."
                          },
                          "group_name": {
                            "type": "string",
                            "description": "The IdP attribute mapped to the user's group membership for authorization.\n\n**Note:** Cortex requires the IdP to send the group membership as part of the SAML token. Some IdPs send values in a format that include a comma, which is not compatible with Cortex. In that case, you must configure your IdP to send a single value without a comma for each group membership. For example, if your IdP sends the Group DN (a comma-separated list), by default, you must configure IdP to send the Group CN (Common Name) instead."
                          }
                        },
                        "required": [
                          "email",
                          "firstname",
                          "lastname",
                          "group_name"
                        ]
                      },
                      "advanced_settings": {
                        "type": "object",
                        "description": "The advanced settings are optional to configure and some are specific for a particular IdP.",
                        "properties": {
                          "relay_state": {
                            "type": "string",
                            "description": "The URL for a specific page that you want users to be directed to after they've been authenticated by your organization's IdP and log in to Cortex."
                          },
                          "idp_single_logout_url": {
                            "type": "string",
                            "description": "The URL of the IdP's Single Logout endpoint. This ensures that when a user initiates a logout from Cortex, the identity provider logs the user out of all applications in the current identity provider login session."
                          },
                          "service_provider_public_cert": {
                            "type": "string",
                            "description": "The Syslog server's public X.509 certificate in PEM format for IdP validation."
                          },
                          "service_provider_private_key": {
                            "type": "string",
                            "description": "The Syslog server's private key in PEM format for signing SAML responses. (This is mostly required for ADFS)"
                          },
                          "authn_context_enabled": {
                            "type": "boolean",
                            "description": "Whether to remove the `RequestedAuthnContext` parameter from SAML requests.\nIf `true`, allows users to log in by using additional authentication methods.",
                            "default": false
                          },
                          "force_authn": {
                            "type": "boolean",
                            "description": "Whether to force users to reauthenticate to access the Cortex tenant if requested by the IdP, even if they already authenticated to access other applications.",
                            "default": false
                          }
                        }
                      },
                      "idp_sso_url": {
                        "type": "string",
                        "description": "The URL of your IdP's SSO, which is a fixed, read-only value based on your tenant's URL. If you are using this parameter, you must also specify: `idp_certificate` and `idp_issuer`."
                      },
                      "idp_certificate": {
                        "type": "string",
                        "description": "The Idp's public X.509 digital certificate in PEM format for verification, which is copied from your organization's IdP."
                      },
                      "idp_issuer": {
                        "type": "string",
                        "description": "The unique identifier of the IdP issuing SAML assertions, which is copied from your organization's IdP."
                      },
                      "metadata_url": {
                        "type": "string",
                        "description": "Specify your IdP SSO URL, which is a fixed, read-only value based on your tenant's URL."
                      }
                    },
                    "required": [
                      "name",
                      "mappings"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "name": "str",
                      "default_role": "",
                      "is_account_role": false,
                      "domain": " ",
                      "mappings": {
                        "email": "str",
                        "firstname": "str",
                        "lastname": "str",
                        "group_name": "str"
                      },
                      "advanced_settings": {
                        "relay_state": " ",
                        "idp_single_logout_url": " ",
                        "service_provider_public_cert": " ",
                        "service_provider_private_key": " ",
                        "authn_context_enabled": " ",
                        "force_authn": false
                      },
                      "idp_sso_url": " ",
                      "idp_certificate": " ",
                      "idp_issuer": " ",
                      "metadata_url": " "
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "name": "IDP configuration",
                      "default_role": "Analyst",
                      "current_domain_value": "my-test-domain.com",
                      "new_domain_value": "my-test-domain.org",
                      "mappings": {
                        "email": "user@company.com",
                        "firstname": "John",
                        "lastname": "Smith",
                        "group_name": "analysts"
                      },
                      "idp_sso_url": "https://cortex-test.okta.com/app/cortex-test/xxxxxxx/sso/SAML",
                      "idp_certificate": "========MY_UPDATED_TEST_CERTIFICATE_FROM_OKTA======",
                      "idp_issuer": "https://cortex-test.okta.com/idp",
                      "advanced_settings": {},
                      "is_account_role": true
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "boolean"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/authentication-settings/delete": {
      "post": {
        "tags": [
          "Authentication settings"
        ],
        "summary": "Delete authentication settings by domain",
        "description": "Delete all authentication settings for the specified domain. \n\n**Note: ** The first configuration on the tenant is the default configuration and cannot be deleted.\n\nYou must have **Instance Administrator** permissions to run this endpoint.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-authentication-settings-delete",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "domain": {
                        "type": "string",
                        "description": "The domain whose authentication settings you want to delete."
                      }
                    }
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "domain": "str"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "domain": "my-test-domain.org"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "boolean"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": true
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/authentication-settings/get/settings": {
      "post": {
        "tags": [
          "Authentication settings"
        ],
        "summary": "Get authentication settings for all configured domains",
        "description": "Get all the authentication settings for every configured domain in the tenant.\n\nYou must have **Instance Administrator** permissions to run this endpoint.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.\n",
        "operationId": "post-public_api-v1-authentication-settings-get-settings",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object"
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "request_data": {}
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "tenant_id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "domain": {
                            "type": "string"
                          },
                          "idp_enabled": {
                            "type": "boolean"
                          },
                          "default_role": {
                            "type": "string",
                            "nullable": true
                          },
                          "is_account_role": {
                            "type": "string",
                            "nullable": true
                          },
                          "idp_certificate": {
                            "type": "string"
                          },
                          "idp_issuer": {
                            "type": "string"
                          },
                          "idp_sso_url": {
                            "type": "string"
                          },
                          "metadata_url": {
                            "type": "string"
                          },
                          "mappings": {
                            "type": "object",
                            "properties": {
                              "email": {
                                "type": "string"
                              },
                              "firstname": {
                                "type": "string"
                              },
                              "group_name": {
                                "type": "string"
                              },
                              "lastname": {
                                "type": "string"
                              }
                            }
                          },
                          "advanced_settings": {
                            "type": "object",
                            "properties": {
                              "authn_context_enabled": {
                                "type": "boolean"
                              },
                              "force_authn": {
                                "type": "object",
                                "nullable": true
                              },
                              "idp_single_logout_url": {
                                "type": "string"
                              },
                              "relay_state": {
                                "type": "string"
                              },
                              "service_provider_private_key": {
                                "type": "string"
                              },
                              "service_provider_public_cert": {
                                "type": "string"
                              }
                            }
                          },
                          "sp_entity_id": {
                            "type": "string"
                          },
                          "sp_logout_url": {
                            "type": "string"
                          },
                          "sp_url": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": [
                        {
                          "tenant_id": "9949042437653",
                          "name": "SSO Integration",
                          "domain": "",
                          "idp_enabled": true,
                          "default_role": null,
                          "is_account_role": null,
                          "idp_certificate": "certificate",
                          "idp_issuer": "http://test.com",
                          "idp_sso_url": "http://test.com/",
                          "metadata_url": "",
                          "mappings": {
                            "email": "user@company.com",
                            "firstname": "John",
                            "group_name": "Users",
                            "lastname": "Smith"
                          },
                          "advanced_settings": {
                            "authn_context_enabled": false,
                            "force_authn": null,
                            "idp_single_logout_url": "",
                            "relay_state": "",
                            "service_provider_private_key": "",
                            "service_provider_public_cert": ""
                          },
                          "sp_entity_id": "https://tenant.cortex.us.paloaltonetworks.com",
                          "sp_logout_url": "https://tenant.cortex.us.paloaltonetworks.com/idp/logout",
                          "sp_url": "https://tenant.cortex.us.paloaltonetworks.com/idp/saml"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": [
                        {
                          "tenant_id": "9949042437653",
                          "name": "SSO Integration",
                          "domain": "",
                          "idp_enabled": true,
                          "default_role": null,
                          "is_account_role": null,
                          "idp_certificate": "certificate",
                          "idp_issuer": "http://test.com",
                          "idp_sso_url": "http://test.com/",
                          "metadata_url": "",
                          "mappings": {
                            "email": "user@company.com",
                            "firstname": "John",
                            "group_name": "Users",
                            "lastname": "Smith"
                          },
                          "advanced_settings": {
                            "authn_context_enabled": false,
                            "force_authn": null,
                            "idp_single_logout_url": "",
                            "relay_state": "",
                            "service_provider_private_key": "",
                            "service_provider_public_cert": ""
                          },
                          "sp_entity_id": "https://tenant.cortex.us.paloaltonetworks.com",
                          "sp_logout_url": "https://tenant.cortex.us.paloaltonetworks.com/idp/logout",
                          "sp_url": "https://tenant.cortex.us.paloaltonetworks.com/idp/saml"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/authentication-settings/get/metadata": {
      "post": {
        "tags": [
          "Authentication settings"
        ],
        "summary": "Get IdP metadata",
        "description": "Get the metadata for all IdPs.\n\nYou must have **Instance Administrator** permissions to run this endpoint.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-authentication-settings-get-metadata",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object"
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "request_data": {}
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "sp_entity_id": {
                          "type": "string"
                        },
                        "sp_logout_url": {
                          "type": "string"
                        },
                        "sp_url": {
                          "type": "string"
                        },
                        "tenant_id": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "sp_entity_id": "<str value>",
                        "Sp_logout_url": "<str value>",
                        "sp_url": "<str value>",
                        "tenant_id": "<str value>"
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "sp_entity_id": "https://tenant.cortex.us.paloaltonetworks.com",
                        "sp_logout_url": "https://tenant.cortex.us.paloaltonetworks.com/idp/logout",
                        "sp_url": "https://tenant.cortex.us.paloaltonetworks.com/idp/saml",
                        "tenant_id": "9949042437653"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/integrations/syslog/create": {
      "post": {
        "tags": [
          "Syslog servers"
        ],
        "summary": "Create a syslog integration",
        "description": "Create a new syslog integration.\n\nYou must have **View/Edit Alert Notification** permissions to run this endpoint.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-integrations-syslog-create",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "name": "Test PAPI",
                      "address": "34.24.11.16",
                      "port": "1234",
                      "protocol": "TLS",
                      "facility": "FAC_USER",
                      "security_info": {
                        "certificate_name": "wf-verdict-service.key.pem",
                        "ignore_cert_errors": false,
                        "certificate_content": "<binary string of the cert>"
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "Unique name for the syslog server integration."
                      },
                      "address": {
                        "type": "string",
                        "description": "IP address or fully qualified domain name (FQDN) of the syslog server."
                      },
                      "port": {
                        "type": "integer",
                        "description": "The port number on which the syslog server listens for messages."
                      },
                      "protocol": {
                        "type": "string",
                        "enum": [
                          "TCP",
                          "UDP",
                          "TLS"
                        ],
                        "description": "Select a method of communication:\n- TCP: No validation is made on the connection with the syslog server. However, if an error occurred with the domain used to make the connection, the Test connection will fail.\n- UDP: No error checking, error correction, or acknowledgment. No validation is done for the connection or when sending data.\n- TLS:  Cortex validates the syslog server certificate and uses the certificate signature and public key to encrypt the data sent over the connection."
                      },
                      "facility": {
                        "type": "string",
                        "description": "Choose one of the syslog standard values. The value maps to how your syslog server uses the facility field to manage messages. For details on the facility field, see [RFC 5424](https://datatracker.ietf.org/doc/html/rfc5424)."
                      },
                      "security_info": {
                        "type": "object",
                        "description": "The `security_info` parameters are necessary only when `protocol` is `TLS`.",
                        "properties": {
                          "certificate_name": {
                            "type": "string",
                            "description": "When using TLS for communication between Cortex and the syslog server, Cortex validates that the syslog receiver has a certificate. Specify the certificate name here."
                          },
                          "ignore_cert_errors": {
                            "type": "boolean",
                            "description": "Whether to ignore certificate errors. For security reasons, this is not recommended. If you set this to `true`, logs will be forwarded even if the certificate contains errors."
                          },
                          "certificate_content": {
                            "type": "string",
                            "description": "Binary string of the certificate.",
                            "format": "binary"
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "address": "xdr-splunk-qa.traps.company.com",
                      "facility": "FAC_USER",
                      "name": "Syslog_PAPI_Test_7H55R76T",
                      "port": 5006,
                      "protocol": "TCP",
                      "security_info": "None"
                    }
                  }
                },
                "Example 2": {
                  "value": {
                    "request_data": {
                      "address": "xdr-splunk-qa.traps.paloaltonetworks.com",
                      "facility": "FAC_USER",
                      "name": "Syslog_PAPI_Test_2QYH3VGS",
                      "port": 5002,
                      "protocol": "TLS",
                      "security_info": {
                        "ignore_cert_errors": false
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "syslog_integration_id": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "syslog_integration_id": 630,
                      "name": "Syslog_PAPI_Test_7H55R76T"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "syslog_integration_id": 630,
                      "name": "Test PAPI"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/integrations/syslog/get": {
      "post": {
        "tags": [
          "Syslog servers"
        ],
        "summary": "Get all or filtered syslog servers",
        "description": "Get a complete or filtered list of syslog servers.\n\nYou must have **View Alert Notification** permissions to run this endpoint.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-integrations-syslog-get",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields. An empty dictionary returns all results.",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "Array of filter fields. Each JSON object must contain a field, operator, and value.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "name",
                                "id",
                                "address",
                                "status"
                              ],
                              "description": "String that identifies the syslog server field the filter is matching. Filters are based on the following case-sensitive keywords:\n\n- `name`\n- `id`\n- `address`\n- `status`"
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "eq"
                              ],
                              "description": "String that identifies the comparison operator you want to use for this filter. Valid operator keywords and corresponding filter fields are:\n- **eq** - used with `name`, `id`, `address`, and `status`"
                            },
                            "value": {
                              "type": "string",
                              "description": "Value that the filter must match. The contents of this field will differ depending on the website field that you specified for this filter:\n\n- name - string"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "name",
                          "operator": "EQ",
                          "value": "Test PAP"
                        }
                      ]
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "id",
                          "operator": "eq",
                          "value": "test"
                        }
                      ]
                    }
                  }
                },
                "Example 2": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "status",
                          "operator": "eq",
                          "value": "ACTIVE"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "objects_count": {
                      "type": "integer",
                      "description": "The number of syslog servers that are returned."
                    },
                    "objects": {
                      "type": "array",
                      "description": "The syslog server details.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "SYSLOG_INTEGRATION_ID": {
                            "type": "integer"
                          },
                          "SYSLOG_INTEGRATION_NAME": {
                            "type": "string",
                            "description": "Syslog server integration name."
                          },
                          "SYSLOG_INTEGRATION_ADDRESS": {
                            "type": "string",
                            "description": "IP address or fully qualified domain name (FQDN) of the syslog server."
                          },
                          "SYSLOG_INTEGRATION_PORT": {
                            "type": "integer",
                            "description": "The port number on which the syslog server listens for messages."
                          },
                          "SYSLOG_INTEGRATION_PROTOCOL": {
                            "type": "string",
                            "description": "The communication protocol:\n- TCP: No validation is made on the connection with the syslog server. However, if an error occurred with the domain used to make the connection, the Test connection will fail.\n- UDP: No error checking, error correction, or acknowledgment. No validation is done for the connection or when sending data.\n- TLS:  Cortex validates the syslog server certificate and uses the certificate signature and public key to encrypt the data sent over the connection."
                          },
                          "FACILITY": {
                            "type": "string"
                          },
                          "SYSLOG_INTEGRATION_STATUS": {
                            "type": "string"
                          },
                          "SYSLOG_INTEGRATION_ERROR": {
                            "type": "string",
                            "nullable": true
                          },
                          "SYSLOG_INTEGRATION_CERTIFICATE_NAME": {
                            "type": "string",
                            "nullable": true
                          },
                          "SYSLOG_INTEGRATION_IGNORE_CERTIFICATE_ERROR": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "objects_count": 4,
                      "objects": [
                        {
                          "SYSLOG_INTEGRATION_ID": 627,
                          "SYSLOG_INTEGRATION_NAME": "EditSyslogFailedAuditLogsTest_72f97e2a94b043fd9f91d9b23f161e43",
                          "SYSLOG_INTEGRATION_ADDRESS": "xdr-splunk-qa.traps.paloaltonetworks.com",
                          "SYSLOG_INTEGRATION_PORT": 5004,
                          "SYSLOG_INTEGRATION_PROTOCOL": "UDP",
                          "FACILITY": "FAC_USER",
                          "SYSLOG_INTEGRATION_STATUS": "ACTIVE",
                          "SYSLOG_INTEGRATION_ERROR": null,
                          "SYSLOG_INTEGRATION_CERTIFICATE_NAME": null
                        },
                        {
                          "SYSLOG_INTEGRATION_ID": 630,
                          "SYSLOG_INTEGRATION_NAME": "Syslog_PAPI_Test_7H55R76T",
                          "SYSLOG_INTEGRATION_ADDRESS": "xdr-splunk-qa.traps.paloaltonetworks.com",
                          "SYSLOG_INTEGRATION_PORT": 5006,
                          "SYSLOG_INTEGRATION_PROTOCOL": "TCP",
                          "FACILITY": "FAC_USER",
                          "SYSLOG_INTEGRATION_STATUS": "ACTIVE",
                          "SYSLOG_INTEGRATION_ERROR": null,
                          "SYSLOG_INTEGRATION_CERTIFICATE_NAME": null
                        },
                        {
                          "SYSLOG_INTEGRATION_ID": 631,
                          "SYSLOG_INTEGRATION_NAME": "Syslog_PAPI_Test_2QYH3VGS",
                          "SYSLOG_INTEGRATION_ADDRESS": "xdr-splunk-qa.traps.paloaltonetworks.com",
                          "SYSLOG_INTEGRATION_PORT": 5002,
                          "SYSLOG_INTEGRATION_PROTOCOL": "TLS",
                          "FACILITY": "FAC_USER",
                          "SYSLOG_INTEGRATION_STATUS": "ACTIVE",
                          "SYSLOG_INTEGRATION_ERROR": null,
                          "SYSLOG_INTEGRATION_CERTIFICATE_NAME": null,
                          "SYSLOG_INTEGRATION_IGNORE_CERTIFICATE_ERROR": "FALSE"
                        },
                        {
                          "SYSLOG_INTEGRATION_ID": 632,
                          "SYSLOG_INTEGRATION_NAME": "Syslog_PAPI_Test_6R951Z86",
                          "SYSLOG_INTEGRATION_ADDRESS": "xdr-splunk-qa.traps.paloaltonetworks.com",
                          "SYSLOG_INTEGRATION_PORT": 5006,
                          "SYSLOG_INTEGRATION_PROTOCOL": "TCP",
                          "FACILITY": "FAC_USER",
                          "SYSLOG_INTEGRATION_STATUS": "ACTIVE",
                          "SYSLOG_INTEGRATION_ERROR": null,
                          "SYSLOG_INTEGRATION_CERTIFICATE_NAME": null
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/integrations/syslog/update": {
      "post": {
        "tags": [
          "Syslog servers"
        ],
        "summary": "Update a syslog integration",
        "description": "Update the details of the specified syslog integration.\n\nYou must have **View/Edit Alert Notification** permissions to run this endpoint.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-integrations-syslog-update",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "syslog_id": "123456789",
                      "name": "Test PAPI",
                      "address": "35.27.11.16",
                      "port": "1234",
                      "protocol": "TLS",
                      "facility": "FAC_USER",
                      "security_info": {
                        "certificate_name": "wf-verdict-service.key.pem",
                        "ignore_cert_errors": false,
                        "certificate_content": "<binary string of the cert>"
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "required": [
                      "syslog_id"
                    ],
                    "properties": {
                      "syslog_id": {
                        "type": "string",
                        "description": "ID of the syslog server"
                      },
                      "name": {
                        "type": "string",
                        "description": "Unique name for the syslog server integration."
                      },
                      "address": {
                        "type": "string",
                        "description": "IP address or fully qualified domain name (FQDN) of the syslog server."
                      },
                      "port": {
                        "type": "string",
                        "description": "The port number on which the syslog server listens for messages."
                      },
                      "protocol": {
                        "type": "string",
                        "enum": [
                          "TCP",
                          "UDP",
                          "TLS"
                        ],
                        "description": "Select a method of communication:\n- `TCP`: No validation is made on the connection with the syslog server. However, if an error occurred with the domain used to make the connection, the Test connection will fail.\n- `UDP`: No error checking, error correction, or acknowledgment. No validation is done for the connection or when sending data.\n- `TLS`:  Cortex validates the syslog server certificate and uses the certificate signature and public key to encrypt the data sent over the connection."
                      },
                      "facility": {
                        "type": "string",
                        "description": "Choose one of the syslog standard values. The value maps to how your syslog server uses the facility field to manage messages. For details on the facility field, see [RFC 5424](https://datatracker.ietf.org/doc/html/rfc5424)."
                      },
                      "security_info": {
                        "type": "object",
                        "description": "The `security_info` parameters are relevant only when `protocol` is `TLS`.",
                        "properties": {
                          "certificate_name": {
                            "type": "string",
                            "description": "When using TLS for communication between Cortex and the syslog server, Cortex validates that the syslog receiver has a certificate. Specify the certificate name here."
                          },
                          "ignore_cert_errors": {
                            "type": "boolean",
                            "description": "Whether to ignore certificate errors. For security reasons, this is not recommended. If you set this to `true`, logs will be forwarded even if the certificate contains errors."
                          },
                          "certificate_content": {
                            "type": "string",
                            "description": "Binary string of the certificate.",
                            "format": "binary"
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "syslog_id": "123456789",
                      "name": "Test PAPI",
                      "address": "34.24.11.16",
                      "port": "1234",
                      "protocol": "TLS",
                      "facility": "FAC_USER",
                      "security_info": {
                        "certificate_name": "wf-verdict-service.key.pem",
                        "ignore_cert_errors": false,
                        "certificate_content": "<binary string of the cert>"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "boolean",
                      "description": "Whether the update was successful."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/integrations/syslog/delete": {
      "post": {
        "tags": [
          "Syslog servers"
        ],
        "summary": "Delete all or filtered syslog integrations",
        "description": "Delete all the syslog integrations or the ones who match the filter criteria.\n\nYou must have **View/Edit Alert Notification** permissions to run this endpoint.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-integrations-syslog-delete",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields. An empty dictionary deletes all syslog servers.",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "Array of filter fields. Each JSON object must contain a field, operator, and value.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "name"
                              ],
                              "description": "String that identifies the syslog server field the filter is matching. Filters are based on the following case-sensitive keywords:\n\n- `name`"
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "eq"
                              ],
                              "description": "String that identifies the comparison operator you want to use for this filter. Valid operator keywords and corresponding filter fields are:\n- **eq** - used with `name`"
                            },
                            "value": {
                              "type": "string",
                              "description": "Value that the filter must match. The contents of this field will differ depending on the website field that you specified for this filter:\n\n- name - string"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "name",
                          "operator": "EQ",
                          "value": "Test PAP"
                        }
                      ]
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "name",
                          "operator": "EQ",
                          "value": "Default syslog server"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/integrations/syslog/test": {
      "post": {
        "tags": [
          "Syslog servers"
        ],
        "summary": "Test syslog integration",
        "description": "Tests a syslog integration's validity.\n\nYou must have **View Alert Notification** permissions to run this endpoint.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "post-public_api-v1-integrations-syslog-test",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "properties": {
                      "syslog_id": {
                        "type": "string",
                        "description": "If you include the `syslog_id` of an existing syslog integration, it will try to load the certificate data from the database to test the existing syslog integration."
                      },
                      "name": {
                        "type": "string",
                        "description": "Unique name for the syslog server integration."
                      },
                      "address": {
                        "type": "string",
                        "description": "IP address or fully qualified domain name (FQDN) of the syslog server."
                      },
                      "port": {
                        "type": "string",
                        "description": "The port number on which the syslog server listens for messages."
                      },
                      "protocol": {
                        "type": "string",
                        "enum": [
                          "TCP",
                          "UDP",
                          "TLS"
                        ],
                        "description": "Select a method of communication:\n- `TCP`: No validation is made on the connection with the syslog server. However, if an error occurred with the domain used to make the connection, the Test connection will fail.\n- `UDP`: No error checking, error correction, or acknowledgment. No validation is done for the connection or when sending data.\n- `TLS`:  Cortex validates the syslog server certificate and uses the certificate signature and public key to encrypt the data sent over the connection."
                      },
                      "facility": {
                        "type": "string",
                        "description": "Choose one of the syslog standard values. The value maps to how your syslog server uses the facility field to manage messages. For details on the facility field, see [RFC 5424](https://datatracker.ietf.org/doc/html/rfc5424)."
                      },
                      "security_info": {
                        "type": "object",
                        "description": "The `security_info` parameters are relevant only when `protocol` is `TLS`.",
                        "properties": {
                          "certificate_name": {
                            "type": "string",
                            "description": "When using TLS for communication between Cortex and the syslog server, Cortex validates that the syslog receiver has a certificate. Specify the certificate name here."
                          },
                          "ignore_cert_errors": {
                            "type": "boolean",
                            "description": "Whether to ignore certificate errors. For security reasons, this is not recommended. If you set this to `true`, logs will be forwarded even if the certificate contains errors."
                          },
                          "certificate_content": {
                            "type": "string",
                            "description": "Binary string of the certificate.",
                            "format": "binary"
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "syslog_id": "123456789",
                      "name": "Test PAPI",
                      "address": "34.24.11.16",
                      "port": "1234",
                      "protocol": "TLS",
                      "facility": "FAC_USER",
                      "security_info": {
                        "certificate_name": "wf-verdict-service.key.pem",
                        "ignore_cert_errors": false,
                        "certificate_content": "<binary string of the cert>"
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "name": "Test PAPI",
                      "address": "34.24.11.16",
                      "port": "1234",
                      "protocol": "TLS",
                      "facility": "FAC_USER"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/scheduled_queries/list": {
      "post": {
        "tags": [
          "Scheduled Queries"
        ],
        "summary": "Get scheduled queries",
        "description": "Return a list of scheduled queries. You can return all scheduled queries or filter results. You can also return extended results with all details included.\n\nYou must have **Instance Administrator** permissions to run this endpoint.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "operationId": "post-public_api-v1-scheduled_queries-list",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "extended_view": "True",
                      "list_ids": [
                        "qc_1683029855_18777",
                        "qc_1678276807_6621"
                      ],
                      "filters": [
                        {
                          "field": "query_def_id",
                          "operator": "EQ",
                          "value": "qc_1683029855_18777"
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "description": "Identifies the query field the filter is matching. Filters are based on the following keywords:\n- `query_def_id`\n- `timestamp`",
                              "enum": [
                                "query_def_id",
                                "timestamp"
                              ]
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "EQ",
                                "NEQ"
                              ]
                            },
                            "value": {
                              "type": "string"
                            }
                          }
                        }
                      },
                      "extended_view": {
                        "type": "boolean",
                        "description": "Display the extended view of the queries, which includes additional fields. If this is `false`, the response does not include `total_count ` or `result_count`. Extended fields may change in future versions.",
                        "default": false
                      },
                      "list_ids": {
                        "type": "array",
                        "description": "List of scheduled query IDs to retrieve.",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Get all scheduled queries in extended view": {
                  "value": {
                    "request_data": {
                      "extended_view": "True"
                    }
                  }
                },
                "Get all scheduled queries": {
                  "value": {
                    "request_data": {}
                  }
                },
                "Get scheduled queries by ID": {
                  "value": {
                    "request_data": {
                      "list_ids": [
                        "qc_1683029855_18777",
                        "qc_1678276807_6621"
                      ]
                    }
                  }
                },
                "Get scheduled queries by filter": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "query_def_id",
                          "operator": "EQ",
                          "value": "qc_1683029855_18777"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "query_def_id": {
                                "type": "string"
                              },
                              "query_definition_name": {
                                "type": "string"
                              },
                              "xql": {
                                "type": "string"
                              },
                              "timeframe": {
                                "type": "object",
                                "properties": {
                                  "relativeTime": {
                                    "type": "string"
                                  }
                                }
                              },
                              "schedule": {
                                "type": "object",
                                "properties": {
                                  "run_date": {
                                    "type": "integer"
                                  },
                                  "trigger_type": {
                                    "type": "string"
                                  }
                                }
                              },
                              "tenants": {
                                "type": "object",
                                "nullable": true
                              },
                              "enable": {
                                "type": "boolean"
                              }
                            }
                          }
                        },
                        "filter_count": {
                          "type": "integer"
                        },
                        "total_count": {
                          "type": "integer"
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "DATA": [
                          {
                            "query_def_id": "qc_1685365772_6989",
                            "query_definition_name": "8.3.23",
                            "xql": "dataset = raw1_new_test_123",
                            "timeframe": {
                              "relativeTime": "asdasdasd"
                            },
                            "schedule": {
                              "run_date": 4677621540000,
                              "trigger_type": "date"
                            },
                            "enable": true
                          }
                        ],
                        "FILTER_COUNT": 1,
                        "TOTAL_COUNT": 1
                      }
                    }
                  }
                }
              },
              "Retrieve all scheduled queries": {
                "example": {
                  "reply": {
                    "data": [
                      {
                        "query_def_id": "qc_1683459520_6832",
                        "query_definition_name": "QUERY-4845",
                        "xql": "",
                        "timeframe": {},
                        "schedule": {
                          "run_date": 1683459540000,
                          "trigger_type": "date"
                        },
                        "tenants": null,
                        "enable": true
                      },
                      {
                        "query_def_id": "qc_1682934776_6824",
                        "query_definition_name": "XQL-QUERY-4850",
                        "xql": "dataset = xdr_data | limit 10",
                        "timeframe": {
                          "relativeTime": 86400000
                        },
                        "schedule": {
                          "start_date": null,
                          "end_date": null,
                          "trigger_type": "cron",
                          "hour": "8",
                          "minute": "16",
                          "second": "00",
                          "day_of_week": null,
                          "week": null,
                          "month": null
                        },
                        "tenants": null,
                        "enable": true
                      },
                      {
                        "query_def_id": "qc_1681978513_6803",
                        "query_definition_name": "QUERY-4851",
                        "xql": "",
                        "timeframe": {},
                        "schedule": {
                          "run_date": 1681978620000,
                          "trigger_type": "date"
                        },
                        "tenants": null,
                        "enable": true
                      }
                    ],
                    "filter_count": 3,
                    "total_count": 27
                  }
                }
              },
              "Retrieve all scheduled queries with extended view": {
                "example": {
                  "reply": {
                    "data": [
                      {
                        "query_def_id": "qc_1683459520_6832",
                        "query_name": "QUERY-4845",
                        "query_timestamp": 1683459520335,
                        "execution_user": "yyedid@paloaltonetworks.com",
                        "query_desc": [
                          {
                            "pretty_name": "Process",
                            "data_type": null,
                            "render_type": "entity",
                            "entity_map": null,
                            "dml_ui": false
                          },
                          {
                            "pretty_name": "action type",
                            "data_type": null,
                            "render_type": "attribute",
                            "entity_map": null,
                            "dml_type": null
                          },
                          {
                            "pretty_name": "=",
                            "data_type": null,
                            "render_type": "operator",
                            "entity_map": null
                          },
                          {
                            "pretty_name": "execution",
                            "data_type": null,
                            "render_type": "value",
                            "entity_map": null
                          },
                          {
                            "pretty_name": "AND",
                            "data_type": null,
                            "render_type": "connector",
                            "entity_map": null
                          },
                          {
                            "pretty_name": "target process name",
                            "data_type": "TEXT",
                            "render_type": "attribute",
                            "entity_map": "attributes",
                            "dml_type": null
                          },
                          {
                            "pretty_name": "=",
                            "data_type": null,
                            "render_type": "operator",
                            "entity_map": "attributes"
                          },
                          {
                            "pretty_name": "aaa",
                            "data_type": null,
                            "render_type": "value",
                            "entity_map": "attributes"
                          },
                          {
                            "pretty_name": "Time",
                            "data_type": null,
                            "render_type": "entity",
                            "entity_map": null,
                            "dml_ui": false
                          },
                          {
                            "pretty_name": "event timestamp",
                            "data_type": null,
                            "render_type": "attribute",
                            "entity_map": "time",
                            "dml_type": null
                          },
                          {
                            "pretty_name": "in last",
                            "data_type": null,
                            "render_type": "operator",
                            "entity_map": "time"
                          },
                          {
                            "pretty_name": "24H",
                            "data_type": null,
                            "render_type": "value",
                            "entity_map": "time"
                          }
                        ],
                        "raw_query": {
                          "runOnCGO": true,
                          "investigationType": "PROCESS_EXECUTION_EVENT",
                          "investigation": {
                            "process_execution_event": {
                              "filter": {
                                "and": [
                                  {
                                    "search_field": "event_timestamp",
                                    "search_type": "relative_timestamp",
                                    "search_value": 86400000
                                  },
                                  {
                                    "search_field": "action_process_image_name",
                                    "search_type": "eq",
                                    "search_value": "aaa",
                                    "extra_fields": [],
                                    "isExtended": false
                                  }
                                ]
                              }
                            }
                          }
                        },
                        "schedule_json": {
                          "run_date": 1683459540000,
                          "trigger_type": "date"
                        },
                        "schedule": "05/07/2023 14:39:00",
                        "next_run_time": null,
                        "IS_DISABLED": false,
                        "TENANTS": null,
                        "IS_BQL": false,
                        "IS_XQL": false,
                        "IS_PUBLIC_API": false,
                        "ADDITIONAL_METADATA": {}
                      },
                      {
                        "QUERY_DEF_ID": "qc_1682934776_6824",
                        "QUERY_NAME": "XQL-QUERY-4850",
                        "QUERY_TIMESTAMP": 1682934776329,
                        "EXECUTION_USER": "agolan@paloaltonetworks.com",
                        "QUERY_DESC": "dataset = xdr_data | limit 10",
                        "RAW_QUERY": {
                          "xql": "dataset = xdr_data | limit 10",
                          "timeframe": {
                            "relativeTime": 86400000
                          },
                          "master_global_conf": null
                        },
                        "SCHEDULE_JSON": {
                          "start_date": null,
                          "end_date": null,
                          "trigger_type": "cron",
                          "hour": "8",
                          "minute": "16",
                          "second": "00",
                          "day_of_week": null,
                          "week": null,
                          "month": null
                        },
                        "SCHEDULE": "Daily at 8:16",
                        "NEXT_RUN_TIME": 1684397760000,
                        "IS_DISABLED": false,
                        "TENANTS": null,
                        "IS_BQL": false,
                        "IS_XQL": true,
                        "IS_PUBLIC_API": false,
                        "ADDITIONAL_METADATA": {
                          "column_order": null,
                          "dashboard_id": null,
                          "query_editor": "xql",
                          "query_source": "investigation",
                          "default_limit": null,
                          "original_tables": [
                            "xdr_data"
                          ],
                          "xql_query_uses_call": 0
                        }
                      },
                      {
                        "QUERY_DEF_ID": "qc_1681978513_6803",
                        "QUERY_NAME": "QUERY-4851",
                        "QUERY_TIMESTAMP": 1681978513156,
                        "EXECUTION_USER": "staranus@paloaltonetworks.com",
                        "QUERY_DESC": [
                          {
                            "pretty_name": "File",
                            "data_type": null,
                            "render_type": "entity",
                            "entity_map": null,
                            "dml_ui": false
                          },
                          {
                            "pretty_name": "action type",
                            "data_type": null,
                            "render_type": "attribute",
                            "entity_map": null,
                            "dml_type": null
                          },
                          {
                            "pretty_name": "=",
                            "data_type": null,
                            "render_type": "operator",
                            "entity_map": null
                          },
                          {
                            "pretty_name": "all",
                            "data_type": null,
                            "render_type": "value",
                            "entity_map": null
                          },
                          {
                            "pretty_name": "Time",
                            "data_type": null,
                            "render_type": "entity",
                            "entity_map": null,
                            "dml_ui": false
                          },
                          {
                            "pretty_name": "event timestamp",
                            "data_type": null,
                            "render_type": "attribute",
                            "entity_map": "time",
                            "dml_type": null
                          },
                          {
                            "pretty_name": "in last",
                            "data_type": null,
                            "render_type": "operator",
                            "entity_map": "time"
                          },
                          {
                            "pretty_name": "24H",
                            "data_type": null,
                            "render_type": "value",
                            "entity_map": "time"
                          }
                        ],
                        "RAW_QUERY": {
                          "runOnCGO": true,
                          "investigationType": "FILE_EVENT",
                          "investigation": {
                            "FILE_EVENT": {
                              "filter": {
                                "AND": [
                                  {
                                    "SEARCH_FIELD": "event_timestamp",
                                    "SEARCH_TYPE": "RELATIVE_TIMESTAMP",
                                    "SEARCH_VALUE": 86400000
                                  },
                                  {
                                    "OR": [
                                      {
                                        "SEARCH_FIELD": "event_sub_type",
                                        "SEARCH_TYPE": "EQ",
                                        "SEARCH_VALUE": "1",
                                        "isExtended": false
                                      },
                                      {
                                        "SEARCH_FIELD": "event_sub_type",
                                        "SEARCH_TYPE": "EQ",
                                        "SEARCH_VALUE": "2",
                                        "isExtended": false
                                      },
                                      {
                                        "SEARCH_FIELD": "event_sub_type",
                                        "SEARCH_TYPE": "EQ",
                                        "SEARCH_VALUE": "3",
                                        "isExtended": false
                                      },
                                      {
                                        "SEARCH_FIELD": "event_sub_type",
                                        "SEARCH_TYPE": "EQ",
                                        "SEARCH_VALUE": "5",
                                        "isExtended": false
                                      },
                                      {
                                        "SEARCH_FIELD": "event_sub_type",
                                        "SEARCH_TYPE": "EQ",
                                        "SEARCH_VALUE": "6",
                                        "isExtended": false
                                      }
                                    ]
                                  }
                                ]
                              }
                            }
                          }
                        },
                        "SCHEDULE_JSON": {
                          "run_date": 1681978620000,
                          "trigger_type": "date"
                        },
                        "SCHEDULE": "04/20/2023 11:17:00",
                        "NEXT_RUN_TIME": null,
                        "IS_DISABLED": false,
                        "TENANTS": null,
                        "IS_BQL": false,
                        "IS_XQL": false,
                        "IS_PUBLIC_API": false,
                        "ADDITIONAL_METADATA": {}
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      },
      "parameters": []
    },
    "/public_api/v1/scheduled_queries/insert": {
      "post": {
        "tags": [
          "Scheduled Queries"
        ],
        "summary": "Insert or update scheduled queries",
        "description": "Insert new scheduled queries or update existing scheduled queries. \n\nYou must have **Instance Administrator** permissions to run this endpoint.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "operationId": "post-public_api-v1-scheduled_queries-insert",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": [
                      {
                        "query_definition_name": "test_debug_avram_api",
                        "xql": "dataset = xdr_data | limit 10",
                        "timeframe": {
                          "relativeTime": 46400000
                        },
                        "schedule": {
                          "trigger_type": "date",
                          "run_date": 4677621540000
                        }
                      }
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "query_definition_name",
                        "xql",
                        "timeframe",
                        "schedule"
                      ],
                      "properties": {
                        "query_definition_name": {
                          "type": "string",
                          "description": "**Note:** You should use a unique `query_definition_name` for each scheduled query on each tenant."
                        },
                        "xql": {
                          "type": "string"
                        },
                        "timeframe": {
                          "type": "object",
                          "properties": {
                            "relativeTime": {
                              "type": "integer"
                            }
                          }
                        },
                        "schedule": {
                          "type": "object",
                          "required": [
                            "trigger_type"
                          ],
                          "properties": {
                            "trigger_type": {
                              "type": "string"
                            },
                            "run_date": {
                              "type": "integer"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": [
                      {
                        "query_definition_name": "debug_john_api",
                        "xql": "dataset = xdr_data | limit 10",
                        "timeframe": {
                          "relativeTime": 46400000
                        },
                        "schedule": {
                          "trigger_type": "date",
                          "run_date": 4677621540000
                        }
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "<query_id>": {
                          "type": "object",
                          "properties": {
                            "query_definition_name": {
                              "type": "string"
                            },
                            "xql": {
                              "type": "string"
                            },
                            "timeframe": {
                              "type": "object",
                              "properties": {
                                "relativeTime": {
                                  "type": "integer"
                                }
                              }
                            },
                            "schedule": {
                              "type": "object",
                              "properties": {
                                "trigger_type": {
                                  "type": "string"
                                },
                                "run_date": {
                                  "type": "integer"
                                }
                              }
                            }
                          },
                          "description": "The query_id of the scheduled query that was inserted or updated."
                        }
                      },
                      "description": "Upon successful insert or update, the reply returns each individual query_id with the query definitions.\r\nIf the insert or update failed, the reply will include the scheduled query name and the error message."
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "qc_1686650807_7091": {
                          "query_definition_name": "test_1",
                          "xql": "dataset = raw1",
                          "timeframe": {
                            "relativeTime": 86400000
                          },
                          "schedule": {
                            "trigger_type": "date",
                            "run_date": 1677621540000
                          }
                        },
                        "qc_1686650808_7092": {
                          "query_definition_name": "test_2",
                          "xql": "dataset = raw2",
                          "timeframe": {
                            "relativeTime": 86400000
                          },
                          "schedule": {
                            "trigger_type": "date",
                            "run_date": 1677621540000
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "qc_0123456789_01": {
                          "query_definition_name": "test_1",
                          "xql": "dataset = xdr_data | limit 1",
                          "timeframe": {
                            "relativeTime": 86400000
                          },
                          "schedule": {
                            "trigger_type": "date",
                            "run_date": 1824072062000
                          }
                        },
                        "qc_0123456789_02": {
                          "query_definition_name": "test_2",
                          "xql": "dataset = xdr_data | limit 1",
                          "timeframe": {
                            "relativeTime": 86400000
                          },
                          "schedule": {
                            "trigger_type": "date",
                            "run_date": 1824072062000
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      },
      "parameters": []
    },
    "/public_api/v1/scheduled_queries/delete": {
      "post": {
        "tags": [
          "Scheduled Queries"
        ],
        "summary": "Delete a scheduled query",
        "description": "Delete scheduled queries.\n\nYou must have **Instance Administrator** permissions to run this endpoint.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "operationId": "post-public_api-v1-scheduled_queries-delete",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": [
                      "qc_1683461522_18780",
                      "qc_1677754986_6539",
                      "avram"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": [
                      "qc_1683461522_18780",
                      "qc_1677754986_6539",
                      "avram"
                    ]
                  }
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "scheduled_query_id": {
                            "type": "string",
                            "description": "Each JSON pair in the response is the scheduled query ID and the results of the deletion request."
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "qc_1685365772_6989": true
                      }
                    }
                  }
                }
              },
              "Example 1": {
                "example": {
                  "reply": {
                    "qc_1677754985_6538": true,
                    "qc_1677754986_6539": true,
                    "test": "Can't delete this query"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      },
      "parameters": []
    },
    "/public_api/xql_library/get": {
      "post": {
        "tags": [
          "Query Library"
        ],
        "summary": "Get XQL Queries",
        "description": "Retrieve a detailed list of XQL query libraries. You can filter by list of query names or by list of query tags.\n\nRequires the granular RBAC permission for this feature.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "operationId": "post-public_api-xql_library-get",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "required": [
                  "request_data"
                ],
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "extended_view": {
                        "type": "boolean",
                        "description": "Whether to retrieve the detailed information on each XQL query.",
                        "default": false
                      },
                      "xql_query_names": {
                        "type": "array",
                        "description": "An array of XQL query names to search for. Note: If searching by `xql_query_names`, you cannot search by `xql_query_tags` in the same call.",
                        "items": {
                          "type": "string"
                        }
                      },
                      "xql_query_tags": {
                        "type": "array",
                        "description": "An array of XQL tag names to search for. Note: If searching by `xql_query_tags`, you cannot search by `xql_query_names` in the same call.",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "xql_query_names": [
                        "test_ql11",
                        "test_ql2",
                        "test_ql33"
                      ],
                      "xql_query_tags": [
                        "tag1",
                        "tag2",
                        "tag3"
                      ]
                    }
                  }
                }
              },
              "examples": {
                "Get all XQL libraries in extended view": {
                  "value": {
                    "request_data": {
                      "extended_view": "True"
                    }
                  }
                },
                "Get all XQL libraries": {
                  "value": {
                    "request_data": {}
                  }
                },
                "Get XQL libraries by query name": {
                  "value": {
                    "request_data": {
                      "xql_query_names": [
                        "KILLER",
                        "Rare Executions of PSEXEC",
                        "Top 10 Users failing to log in"
                      ]
                    }
                  }
                },
                "Get XQL libraries by query tags": {
                  "value": {
                    "request_data": {
                      "xql_query_tags": [
                        "perf",
                        "perf2"
                      ]
                    }
                  }
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "queries_count": {
                          "type": "integer"
                        },
                        "xql_queries": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer"
                              },
                              "name": {
                                "type": "string"
                              },
                              "description": {
                                "type": "string"
                              },
                              "query_text": {
                                "type": "string"
                              },
                              "created_at": {
                                "type": "integer"
                              },
                              "created_by": {
                                "type": "string"
                              },
                              "created_by_pretty": {
                                "type": "string"
                              },
                              "query_metadata": {
                                "type": "object",
                                "properties": {
                                  "is_valid": {
                                    "type": "boolean"
                                  },
                                  "query_calls": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {}
                                    }
                                  },
                                  "is_datamodel": {
                                    "type": "boolean"
                                  },
                                  "query_tables": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "query_presets": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {}
                                    }
                                  }
                                }
                              },
                              "is_private": {
                                "type": "boolean"
                              },
                              "labels": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "queries_count": 2,
                        "xql_queries": [
                          {
                            "id": 1835,
                            "name": "test_ql11",
                            "description": "",
                            "query_text": "dataset = xdr_data |limit 2",
                            "created_at": 1684766552000,
                            "created_by": "N/A",
                            "created_by_pretty": "Public API - 5",
                            "modified_at": 1684910188000,
                            "modified_by": "N/A",
                            "modified_by_pretty": "Public API - 6",
                            "query_metadata": {
                              "is_valid": true,
                              "query_calls": [],
                              "is_datamodel": false,
                              "query_tables": [
                                "xdr_data"
                              ],
                              "query_presets": []
                            },
                            "is_private": false,
                            "labels": [
                              "tag1",
                              "tag101"
                            ]
                          },
                          {
                            "id": 1836,
                            "name": "test_ql2",
                            "description": "",
                            "query_text": "dataset = xdr_data |limit 2",
                            "created_at": 1684910190000,
                            "created_by": "N/A",
                            "created_by_pretty": "Public API - 6",
                            "query_metadata": {
                              "is_valid": true,
                              "query_calls": [],
                              "is_datamodel": false,
                              "query_tables": [
                                "xdr_data"
                              ],
                              "query_presets": []
                            },
                            "is_private": false,
                            "labels": [
                              "tag2",
                              "tag102"
                            ]
                          }
                        ]
                      }
                    }
                  }
                }
              },
              "Example 1": {
                "example": {
                  "reply": {
                    "queries_count": 0,
                    "xql_queries": [
                      {
                        "xql_query_name": "string",
                        "xql_query": "string",
                        "xql_query_tags": [
                          "string"
                        ]
                      }
                    ]
                  }
                }
              },
              "With extended view": {
                "example": {
                  "reply": {
                    "queries_count": 2,
                    "xql_queries": [
                      {
                        "id": 1835,
                        "name": "test_ql11",
                        "description": "",
                        "query_text": "dataset = xdr_data |limit 2",
                        "content_global_id": null,
                        "created_at": 1684766552000,
                        "created_by": "N/A",
                        "created_by_pretty": "Public API - 5",
                        "modified_at": 1684910188000,
                        "modified_by": "N/A",
                        "modified_by_pretty": "Public API - 6",
                        "query_metadata": {
                          "is_valid": true,
                          "query_calls": [],
                          "is_datamodel": false,
                          "query_tables": [
                            "xdr_data"
                          ],
                          "query_presets": []
                        },
                        "is_private": false,
                        "labels": [
                          "tag1",
                          "tag101"
                        ]
                      },
                      {
                        "id": 1836,
                        "name": "test_ql2",
                        "description": "",
                        "query_text": "dataset = xdr_data |limit 2",
                        "content_global_id": null,
                        "created_at": 1684910190000,
                        "created_by": "N/A",
                        "created_by_pretty": "Public API - 6",
                        "modified_at": null,
                        "modified_by": null,
                        "modified_by_pretty": null,
                        "query_metadata": {
                          "is_valid": true,
                          "query_calls": [],
                          "is_datamodel": false,
                          "query_tables": [
                            "xdr_data"
                          ],
                          "query_presets": []
                        },
                        "is_private": false,
                        "labels": [
                          "tag2",
                          "tag102"
                        ]
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/public_api/xql_library/insert": {
      "post": {
        "tags": [
          "Query Library"
        ],
        "summary": "Insert or update XQL queries",
        "description": "Insert new XQL queries or update existing XQL queries.\n\n**Note:** You should use unique `xql_query_name` for each XQL query on a given tenant.\n\nRequires the granular RBAC permission for this feature.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "operationId": "post-public_api-xql_library-insert",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "xql_queries_override": true,
                      "xql_queries": [
                        {
                          "xql_query": "dataset = xdr_data |limit 1",
                          "xql_query_name": "test_ql1"
                        },
                        {
                          "xql_query": "dataset = xdr_data |limit 2",
                          "xql_query_name": "test_ql11"
                        },
                        {
                          "xql_query": "dataset = xdr_data |limit 2",
                          "xql_query_name": "test_ql11"
                        }
                      ],
                      "xql_query_tags": [
                        "tag1",
                        "tag101"
                      ]
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "required": [
                      "xql_queries"
                    ],
                    "properties": {
                      "xql_queries_override": {
                        "type": "boolean",
                        "description": "When the `xql_query_name` already exists on the tenant, this field defines whether or not to overwrite the existing XQL query with the new content. When `true`, the query will be overwritten. When `false`, the query will not be updated and an error will be returned.",
                        "default": false
                      },
                      "xql_queries": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "xql_query",
                            "xql_query_name"
                          ],
                          "properties": {
                            "xql_query": {
                              "type": "string"
                            },
                            "xql_query_name": {
                              "type": "string",
                              "description": "XQL query name should be unique."
                            }
                          }
                        }
                      },
                      "xql_query_tags": {
                        "type": "array",
                        "description": "XQL query tags are optional",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "xql_queries_override": true,
                      "xql_queries": [
                        {
                          "xql_query": "dataset = xdr_data |limit 1",
                          "xql_query_name": "test_ql1"
                        },
                        {
                          "xql_query": "dataset = xdr_data |limit 2",
                          "xql_query_name": "test_ql11"
                        },
                        {
                          "xql_query": "dataset = xdr_data |limit 2",
                          "xql_query_name": "test_ql11"
                        }
                      ],
                      "xql_query_tags": [
                        "tag2",
                        "tag202"
                      ]
                    }
                  }
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "xql_queries_added": {
                          "type": "array",
                          "description": "List of XQL queries that were added.",
                          "items": {
                            "type": "string"
                          }
                        },
                        "xql_queries_updated": {
                          "type": "array",
                          "description": "List of XQL queries that were updated.",
                          "items": {
                            "type": "string"
                          }
                        },
                        "errors": {
                          "type": "array",
                          "description": "List of errors received from additions/updates.",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "xql_queries_added": [],
                        "xql_queries_updated": [
                          "test_ql11",
                          "test_ql11"
                        ],
                        "errors": [
                          "- test_ql1\n- >-\n  The given query name=test_ql1 Already exists as\n  private"
                        ]
                      }
                    }
                  }
                }
              },
              "Example 1": {
                "example": {
                  "reply": {
                    "xql_queries_added": [],
                    "xql_queries_updated": [
                      "test_ql11",
                      "test_ql11"
                    ],
                    "errors": [
                      "- test_ql1\n- The given query name=test_ql1 Already exists as private"
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/public_api/xql_library/delete": {
      "post": {
        "tags": [
          "Query Library"
        ],
        "summary": "Delete XQL Queries",
        "description": "Delete XQL queries. You can filter by list of query names or by list of query tags.\n\nRequires the granular RBAC permission for this feature.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "operationId": "post-public_api-xql_library-delete",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "xql_query_names": [
                        "test_ql11",
                        "test_ql2",
                        "test_ql33"
                      ],
                      "xql_query_tags": [
                        "tag1",
                        "tag2",
                        "tag3"
                      ]
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "xql_query_names": {
                        "type": "array",
                        "description": "List of XQL query names to delete. Note: If searching by `xql_query_names`, you cannot search by `xql_query_tags` in the same call.",
                        "items": {
                          "type": "string"
                        }
                      },
                      "xql_query_tags": {
                        "type": "array",
                        "description": "List of XQL query tags. Note: If searching by `xql_query_tags`, you cannot search by `xql_query_names` in the same call.",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Delete XQL libraries by query names": {
                  "value": {
                    "request_data": {
                      "xql_query_names": [
                        "KILLER",
                        "Rare Executions of PSEXEC",
                        "Top 10 Users failing to log in"
                      ]
                    }
                  }
                },
                "Delete XQL libraries by query tags": {
                  "value": {
                    "request_data": {
                      "xql_query_tags": [
                        "perf",
                        "perf2"
                      ]
                    }
                  }
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "queries_count": {
                          "type": "integer"
                        },
                        "xql_query_names": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {}
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "queries_count": 6,
                        "xql_query_names": [
                          "test_ql11",
                          "test_ql2",
                          "test_ql22",
                          "test_ql3",
                          "test_ql33",
                          "test_ql1000"
                        ],
                        "errors": []
                      }
                    }
                  }
                }
              },
              "Example 1": {
                "example": {
                  "reply": {
                    "queries_count": 6,
                    "xql_query_names": [
                      "test_ql11",
                      "test_ql2",
                      "test_ql22",
                      "test_ql3",
                      "test_ql33",
                      "test_ql1000"
                    ],
                    "errors": []
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/public_api/v1/indicators/get": {
      "post": {
        "tags": [
          "IOCs"
        ],
        "summary": "Get Indicators (IOCs)",
        "description": "Get a list of IOCs. You can return all IOCs or filter results. You can also return extended results with all details included.\r\n- The response is concatenated using AND condition (OR is not supported).\r\n- The maximum result set size is >100.\r\n- Offset is the zero-based number of incidents from the start of the result set.\r\n\r\nUI navigation: **CORTEX** > **Threat Management** > **Detection Rules** > **IOC**.\r\n\r\nYou must have **Rules Edit** permissions to run this endpoint.\r\n",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "operationId": "post-public_api-v1-indicators-get",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "extended_view": false,
                      "filters": [
                        {
                          "field": "rule_id",
                          "operator": "IN",
                          "value": [
                            57
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "extended_view": {
                        "type": "boolean"
                      },
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "indicator",
                                "type",
                                "severity",
                                "expiration_date",
                                "default_expiration_enabled",
                                "comment",
                                "reputation",
                                "reliability"
                              ],
                              "description": "Identifies the IOC field the filter is matching. Filters are based on the following keywords:\r\n- `indicator`: Indicator.\r\n- `type`: Indicator type.\r\n- `severity`: Indicator severity.\r\n- `expiration_date`: Expiration date in epoch milliseconds.\r\n- `default_expiration_enabled`: Whether the default expiration is enabled.\r\n- `comment`: Comment.\r\n- `reputation`: Reputation level.\r\n- `reliability`: Reliability level."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "EQ",
                                "NEQ",
                                "IN",
                                "GTE",
                                "LTE"
                              ],
                              "description": "Identifies the comparison operator you want to use for this filter. Valid keywords are:\r\n`gte` / `lte`\r\n- `expiration_date`: Integer in timestamp epoch milliseconds\r\n`EQ` / `NEQ`\r\n- `indicator`: String\r\n- `type`: String\r\n- `severity`: String\r\n- `default_expiration_enabled`: Boolean\r\n- `comment`: String\r\n- `reputation`: String\r\n- `reliability`: String"
                            },
                            "value": {
                              "oneOf": [
                                {
                                  "type": "array",
                                  "items": {}
                                },
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "boolean"
                                }
                              ],
                              "description": "Value that this filter must match. The contents of this field will differ depending on the IOC field that you specified for this filter:\r\n- `indicator`, `comment`: String.\r\n- `type`: String, can be one of the following: `hash`, `ip`, `path`, `domain_name`, `filename`, `mixed`.\r\n- `severity`: String, can be one of the following: `SEV_010_INFO`, `SEV_020_LOW`, `SEV_030_MEDIUM`, `SEV_040_HIGH`\r\n- `expiration_date`: Integer representing the number of milliseconds after the Unix epoch, UTC timezone.\r\n- `default_expiration_enabled`: Boolean value: `true` or `false`.\r\n- `comment`: String.\r\n- `reputation`: String, can be one of the following: `good`, `bad`, `suspicious`, `unknown`, `no_reputation`.\r\n- `reliability`: String, can be one of the following: `A`, `B`, `C`, `D`, `E`, `F`, `G`."
                            }
                          }
                        }
                      },
                      "search_from": {
                        "type": "integer",
                        "description": "Integer representing the starting offset within the query result set from which you want indicators returned.\r\nIndicators are returned as a zero-based list. Any indicator indexed less than this value is not returned in the final result set and defaults to zero."
                      },
                      "search_to": {
                        "type": "integer",
                        "description": "Integer representing the end offset within the result set after which you do not want indicators returned.\r\nIndicators in the indicator list that are indexed higher than this value are not returned in the final results set. Defaults to >100, which returns all indicators to the end of the list."
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "extended_view": false,
                      "filters": [
                        {
                          "field": "indicator",
                          "operator": "IN",
                          "value": [
                            57
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "objects_count": {
                      "type": "integer"
                    },
                    "objects": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "rule_id": {
                            "type": "integer"
                          },
                          "indicator": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string"
                          },
                          "expiration_date": {
                            "type": "integer"
                          },
                          "comment": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "objects_type": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "objects_count": 1,
                      "objects": [
                        {
                          "rule_id": 57,
                          "indicator": "virus1.exe",
                          "type": "FILENAME",
                          "severity": "SEV_040_HIGH",
                          "expiration_date": -1,
                          "comment": "test"
                        }
                      ],
                      "objects_type": "indicator"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "objects_count": 1,
                      "objects": [
                        {
                          "rule_id": 57,
                          "indicator": "virus1.exe",
                          "type": "FILENAME",
                          "severity": "SEV_040_HIGH",
                          "expiration_date": -1,
                          "comment": "test"
                        }
                      ],
                      "objects_type": "indicator"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/public_api/v1/indicators/insert": {
      "post": {
        "tags": [
          "IOCs"
        ],
        "summary": "Insert or update IOCs",
        "description": "Insert new IOCs or update existing IOCs.\n\n**Note:** The IOC `rule_id` is tenant specific and can't be used across tenants. Inserting IOCs with the same `rule_id` as an existing IOC on that tenant will overwrite the existing IOC.\n\nRequires the granular RBAC permission for this feature.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "operationId": "post-public_api-v1-indicators-insert",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": [
                      {
                        "indicator": "virus1.exe",
                        "type": "FILENAME",
                        "severity": "SEV_040_HIGH",
                        "expiration_date": 1234567891234,
                        "default_expiration_enabled": false,
                        "comment": "test"
                      },
                      {
                        "indicator": "test.exe",
                        "type": "FILENAME",
                        "severity": "SEV_030_MEDIUM",
                        "expiration_date": 1234567891234,
                        "default_expiration_enabled": true
                      }
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "rule_id": {
                          "type": "number"
                        },
                        "indicator": {
                          "type": "string"
                        },
                        "type": {
                          "enum": [
                            "HASH",
                            "IP",
                            "PATH",
                            "DOMAIN_NAME",
                            "FILENAME",
                            "MIXED"
                          ]
                        },
                        "severity": {
                          "enum": [
                            "SEV_010_INFO",
                            "SEV_020_LOW",
                            "SEV_030_MEDIUM",
                            "SEV_040_HIGH"
                          ]
                        },
                        "expiration_date": {
                          "type": "integer"
                        },
                        "default_expiration_enabled": {
                          "type": "boolean"
                        },
                        "comment": {
                          "type": "string"
                        },
                        "reputation": {
                          "enum": [
                            "GOOD",
                            "BAD",
                            "SUSPICIOUS",
                            "UNKNOWN",
                            "NO_REPUTATION"
                          ]
                        },
                        "reliability": {
                          "enum": [
                            "A",
                            "B",
                            "C",
                            "D",
                            "E",
                            "F",
                            "G"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": [
                      {
                        "indicator": "virus1.exe",
                        "type": "FILENAME",
                        "severity": "SEV_040_HIGH",
                        "expiration_date": 1234567891234,
                        "default_expiration_enabled": false,
                        "comment": "test",
                        "reputation": "GOOD",
                        "reliability": "A"
                      },
                      {
                        "indicator": "test.exe",
                        "type": "FILENAME",
                        "severity": "SEV_030_MEDIUM",
                        "expiration_date": 1234567891234,
                        "default_expiration_enabled": true,
                        "reputation": "GOOD",
                        "reliability": "B"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "added_objects": {
                      "type": "array",
                      "description": "List of IOC objects added.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer"
                          },
                          "status": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "updated_objects": {
                      "type": "array",
                      "description": "List of IOC objects updated.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer"
                          },
                          "status": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "errors": {
                      "type": "array",
                      "description": "List of errors, if any.",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "added_objects": [
                        {
                          "id": 69,
                          "status": "Created a new IOC rule with the ID: 69 successfully"
                        }
                      ],
                      "updated_objects": [
                        {
                          "id": 57,
                          "status": "Updated the IOC rule with the indicator: 'virus1.exe' successfully"
                        }
                      ],
                      "errors": []
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "added_objects": [
                        {
                          "id": 69,
                          "status": "Created a new IOC rule with the ID: 69 successfully"
                        }
                      ],
                      "updated_objects": [
                        {
                          "id": 57,
                          "status": "Updated the IOC rule with the indicator: 'virus1.exe' successfully"
                        }
                      ],
                      "errors": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/public_api/v1/indicators/delete": {
      "post": {
        "tags": [
          "IOCs"
        ],
        "summary": "Delete Indicators (IOCs)",
        "description": "Delete IOCs selected by filter.\n\nRequires the granular RBAC permission for this feature.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "operationId": "post-public_api-v1-indicators-delete",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "extended_view": false,
                      "filters": [
                        {
                          "field": "rule_id",
                          "operator": "EQ",
                          "value": 57
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "enum": [
                                "indicator",
                                "type",
                                "severity",
                                "expiration_date",
                                "default_expiration_enabled",
                                "comment",
                                "reputation",
                                "reliability"
                              ],
                              "description": "Identifies the IOC field the filter is matching. Filters are based on the following keywords:\r\n- `indicator`: Indicator.\r\n- `type`: Indicator type.\r\n- `severity`: Indicator severity.\r\n- `expiration_date`: Expiration date in epoch milliseconds.\r\n- `default_expiration_enabled`: Whether the default expiration is enabled.\r\n- `comment`: Comment.\r\n- `reputation`: Reputation level.\r\n- `reliability`: Reliability level."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "EQ",
                                "NEQ",
                                "IN",
                                "GTE",
                                "LTE"
                              ],
                              "description": "Identifies the comparison operator you want to use for this filter. Valid keywords are:\r\n`gte` / `lte`\r\n- `expiration_date`: Integer in timestamp epoch milliseconds\r\n`EQ` / `NEQ`\r\n- `indicator`: String\r\n- `type`: String\r\n- `severity`: String\r\n- `default_expiration_enabled`: Boolean\r\n- `comment`: String\r\n- `reputation`: String\r\n- `reliability`: String"
                            },
                            "value": {
                              "oneOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {}
                                }
                              ],
                              "description": "Value that this filter must match. The contents of this field will differ depending on the IOC field that you specified for this filter:\r\n- `indicator`, `comment`: String.\r\n- `type`: String, can be one of the following: `hash`, `ip`, `path`, `domain_name`, `filename`, `mixed`.\r\n- `severity`: String, can be one of the following: `SEV_010_INFO`, `SEV_020_LOW`, `SEV_030_MEDIUM`, `SEV_040_HIGH`\r\n- `expiration_date`: Integer representing the number of milliseconds after the Unix epoch, UTC timezone.\r\n- `default_expiration_enabled`: Boolean value: `true` or `false`.\r\n- `comment`: String.\r\n- `reputation`: String, can be one of the following: `good`, `bad`, `suspicious`, `unknown`, `no_reputation`.\r\n- `reliability`: String, can be one of the following: `A`, `B`, `C`, `D`, `E`, `F`, `G`."
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "extended_view": false,
                      "filters": [
                        {
                          "field": "indicator",
                          "operator": "EQ",
                          "value": 57
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "objects_count": {
                      "type": "integer"
                    },
                    "objects": {
                      "type": "array",
                      "items": {
                        "type": "integer"
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "objects_count": 1,
                      "objects": [
                        57
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "objects_count": 1,
                      "objects": [
                        57
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/public_api/v1/bioc/get": {
      "post": {
        "tags": [
          "BIOCs"
        ],
        "summary": "Get BIOCs",
        "description": "Return a list of BIOCs. You can return all BIOCs or filter results. You can also return extended results with all details included.- The response is concatenated using AND condition (OR is not supported).\r\n- The maximum result set size is >100.\r\n- Offset is the zero-based number of incidents from the start of the result set.\r\n\r\nYou must have **Rules Edit** permissions to run this endpoint.\r\n",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "operationId": "post-public_api-v1-bioc-get",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "extended_view": false
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "extended_view": {
                        "type": "boolean"
                      },
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "enum": [
                                "name",
                                "severity",
                                "type",
                                "is_xql",
                                "comment",
                                "status",
                                "indicator",
                                "mitre_technique_id_and_name",
                                "mitre_tactic_id_and_name"
                              ],
                              "description": "Identifies the BIOC field the filter is matching. Filters are based on the following keywords:\r\n- `name`: BIOC name.\r\n- `severity`: BIOC severity level.\r\n- `type`: BIOC type.\r\n- `is_xql`: Whether or not the BIOC is XQL.\r\n- `comment`: Comment.\r\n- `status`: BIOC status.\r\n- `indicator`: Indicator.\r\n- `mitre_technique_id_and_name`: MITRE technique ID and name.\r\n- `mitre_tactic_id_and_name`: MITRE tactic ID and name."
                            },
                            "operator": {
                              "enum": [
                                "EQ",
                                "NEQ",
                                "IN",
                                "GTE",
                                "LTE"
                              ],
                              "description": "Identifies the comparison operator you want to use for this filter. Valid keywords are:\r\n`EQ` / `NEQ`\r\n- `name`: String\r\n- `severity`: String\r\n- `type`: String\r\n- `is_xql`: Boolean\r\n- `comment`: String\r\n- `status`: String\r\n- `indicator`: String\r\n`IN`\r\n- `mitre_technique_id_and_name`: List of strings\r\n- `mitre_tactic_id_and_name`: List of strings"
                            },
                            "value": {
                              "oneOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "boolean"
                                }
                              ],
                              "description": "Value that this filter must match. The contents of this field will differ depending on the IOC field that you specified for this filter:\r\n- `name`, `comment`: String.\r\n- `severity`: String, can be one of the following: `SEV_010_INFO`, `SEV_020_LOW`, `SEV_030_MEDIUM`, `SEV_040_HIGH`\r\n- `type`: String, can be one of the following: `other`, `persistence`, `evasion`, `tampering`, `file_type_obfuscation`, `privilege_escalation`, `credential_access`, `lateral_movement`, `execution`, `collection`, `exfiltration`, `infiltration`, `dropper`, `file_privilege_manipulation`, `reconnaissance`, `discovery`.\r\n- `is_xql`: Boolean: `true` or `false`.\r\n- `status`: String, can be one of the following: `enabled`, `disabled`.\r\n- `indicator`: String or dictionary in the format you wrote it.\r\n- `mitre_technique_id_and_name`: List of strings.\r\n- `mitre_tactic_id_and_name`: List of strings.",
                              "items": {}
                            }
                          }
                        }
                      },
                      "search_from": {
                        "type": "integer",
                        "description": "Integer representing the starting offset within the query result set from which you want BIOCs returned.\r\nBIOCs are returned as a zero-based list. Any BIOC indexed less than this value is not returned in the final result set and defaults to zero."
                      },
                      "search_to": {
                        "type": "integer",
                        "description": "Integer representing the end offset within the result set after which you do not want BIOCs returned.\r\nBIOCs in the BIOC list that are indexed higher than this value are not returned in the final results set. Defaults to >100, which returns all BIOCs to the end of the list."
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "extended_view": false
                    }
                  }
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "objects_count": {
                      "type": "integer"
                    },
                    "objects": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "rule_id": {
                            "type": "integer"
                          },
                          "name": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string"
                          },
                          "comment": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "is_xql": {
                            "type": "boolean"
                          },
                          "indicator": {
                            "type": "object",
                            "properties": {
                              "runOnCGO": {
                                "type": "boolean"
                              },
                              "investigationType": {
                                "type": "string"
                              },
                              "investigation": {
                                "type": "object",
                                "properties": {
                                  "PROCESS_EXECUTION_EVENT": {
                                    "type": "object",
                                    "properties": {
                                      "filter": {
                                        "type": "object",
                                        "properties": {
                                          "AND": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "SEARCH_FIELD": {
                                                  "type": "string"
                                                },
                                                "SEARCH_TYPE": {
                                                  "type": "string"
                                                },
                                                "SEARCH_VALUE": {
                                                  "type": "string"
                                                },
                                                "EXTRA_FIELDS": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "object",
                                                    "properties": {}
                                                  }
                                                },
                                                "isExtended": {
                                                  "type": "boolean"
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "mitre_tactic_id_and_name": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "mitre_technique_id_and_name": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "objects_type": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "objects_count": 2,
                      "objects": [
                        {
                          "rule_id": 376,
                          "name": "TestDataSourceTags",
                          "type": "OTHER",
                          "severity": "SEV_030_MEDIUM",
                          "comment": "",
                          "status": "DISABLED",
                          "is_xql": false,
                          "indicator": {
                            "runOnCGO": true,
                            "investigationType": "PROCESS_EXECUTION_EVENT",
                            "investigation": {
                              "PROCESS_EXECUTION_EVENT": {
                                "filter": {
                                  "AND": [
                                    {
                                      "SEARCH_FIELD": "action_process_username",
                                      "SEARCH_TYPE": "EQ",
                                      "SEARCH_VALUE": "guyk",
                                      "EXTRA_FIELDS": [],
                                      "isExtended": false
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          "mitre_tactic_id_and_name": [],
                          "mitre_technique_id_and_name": []
                        },
                        {
                          "rule_id": 421,
                          "name": "new_bioc_test",
                          "type": "EXECUTION",
                          "severity": "SEV_020_LOW",
                          "comment": "",
                          "status": "ENABLED",
                          "is_xql": true,
                          "indicator": "dataset = xdr_data | filter event_type = 1 and actor_process_image_name = \"SDFDSGFHFN\"",
                          "mitre_tactic_id_and_name": [
                            "12 - Tactic",
                            "45 - Another Tactic"
                          ],
                          "mitre_technique_id_and_name": [
                            "123 - Test",
                            "12 - Another Test"
                          ]
                        }
                      ],
                      "objects_type": "bioc"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "objects_count": 2,
                      "objects": [
                        {
                          "rule_id": 376,
                          "name": "TestDataSourceTags",
                          "type": "OTHER",
                          "severity": "SEV_030_MEDIUM",
                          "comment": "",
                          "status": "DISABLED",
                          "is_xql": false,
                          "indicator": {
                            "runOnCGO": true,
                            "investigationType": "PROCESS_EXECUTION_EVENT",
                            "investigation": {
                              "PROCESS_EXECUTION_EVENT": {
                                "filter": {
                                  "AND": [
                                    {
                                      "SEARCH_FIELD": "action_process_username",
                                      "SEARCH_TYPE": "EQ",
                                      "SEARCH_VALUE": "guyk",
                                      "EXTRA_FIELDS": [],
                                      "isExtended": false
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          "mitre_tactic_id_and_name": [],
                          "mitre_technique_id_and_name": []
                        },
                        {
                          "rule_id": 421,
                          "name": "new_bioc_test",
                          "type": "EXECUTION",
                          "severity": "SEV_020_LOW",
                          "comment": "",
                          "status": "ENABLED",
                          "is_xql": true,
                          "indicator": "dataset = xdr_data | filter event_type = 1 and actor_process_image_name = \"SDFDSGFHFN\"",
                          "mitre_tactic_id_and_name": [
                            "12 - Tactic",
                            "45 - Another Tactic"
                          ],
                          "mitre_technique_id_and_name": [
                            "123 - Test",
                            "12 - Another Test"
                          ]
                        }
                      ],
                      "objects_type": "bioc"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/public_api/v1/bioc/insert": {
      "post": {
        "tags": [
          "BIOCs"
        ],
        "summary": "Insert or update BIOCs",
        "description": "Insert new BIOCs or update existing BIOCs.\n\n**Note:** The BIOC `rule_id` is tenant specific and can't be used across tenants. Inserting BIOCs with the same `rule_id` as an existing BIOC on that tenant will overwrite the existing BIOC.\n\nRequires the granular RBAC permission for this feature.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "operationId": "post-public_api-v1-bioc-insert",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": [
                      {
                        "name": "TestBIOC",
                        "type": "EXECUTION",
                        "severity": "SEV_020_LOW",
                        "comment": "",
                        "status": "ENABLED",
                        "is_xql": false,
                        "indicator": {
                          "runOnCGO": true,
                          "investigationType": "FILE_EVENT",
                          "investigation": {
                            "FILE_EVENT": {
                              "filter": {
                                "AND": [
                                  {
                                    "OR": [
                                      {
                                        "SEARCH_FIELD": "event_sub_type",
                                        "SEARCH_TYPE": "EQ",
                                        "SEARCH_VALUE": "1",
                                        "isExtended": false
                                      },
                                      {
                                        "SEARCH_FIELD": "event_sub_type",
                                        "SEARCH_TYPE": "EQ",
                                        "SEARCH_VALUE": "2",
                                        "isExtended": false
                                      },
                                      {
                                        "SEARCH_FIELD": "event_sub_type",
                                        "SEARCH_TYPE": "EQ",
                                        "SEARCH_VALUE": "3",
                                        "isExtended": false
                                      },
                                      {
                                        "SEARCH_FIELD": "event_sub_type",
                                        "SEARCH_TYPE": "EQ",
                                        "SEARCH_VALUE": "5",
                                        "isExtended": false
                                      },
                                      {
                                        "SEARCH_FIELD": "event_sub_type",
                                        "SEARCH_TYPE": "EQ",
                                        "SEARCH_VALUE": "6",
                                        "isExtended": false
                                      }
                                    ]
                                  },
                                  {
                                    "SEARCH_FIELD": "action_file_name",
                                    "SEARCH_TYPE": "EQ",
                                    "SEARCH_VALUE": "aaaaaa",
                                    "EXTRA_FIELDS": [],
                                    "isExtended": false
                                  }
                                ]
                              }
                            }
                          }
                        },
                        "mitre_tactic_id_and_name": [
                          ""
                        ],
                        "mitre_technique_id_and_name": [
                          ""
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "rule_id": {
                          "type": "integer"
                        },
                        "name": {
                          "type": "string",
                          "description": "BIOC name."
                        },
                        "type": {
                          "enum": [
                            "OTHER",
                            "PERSISTENCE",
                            "EVASION",
                            "TAMPERING",
                            "FILE_TYPE_OBFUSCATION",
                            "PRIVILEGE_ESCALATION",
                            "CREDENTIAL_ACCESS",
                            "LATERAL_MOVEMENT",
                            "EXECUTION",
                            "COLLECTION",
                            "EXFILTRATION",
                            "INFILTRATION",
                            "DROPPER",
                            "FILE_PRIVILEGE_MANIPULATION",
                            "RECONNAISSANCE",
                            "DISCOVERY"
                          ],
                          "description": "BIOC type."
                        },
                        "severity": {
                          "enum": [
                            "SEV_010_INFO",
                            "SEV_020_LOW",
                            "SEV_030_MEDIUM",
                            "SEV_040_HIGH"
                          ],
                          "description": "BIOC severity."
                        },
                        "comment": {
                          "type": "string"
                        },
                        "status": {
                          "enum": [
                            "enabled",
                            "disabled"
                          ],
                          "description": "BIOC status."
                        },
                        "is_xql": {
                          "type": "boolean"
                        },
                        "indicator": {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        "mitre_tactic_id_and_name": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "mitre_technique_id_and_name": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": [
                      {
                        "name": "TestBIOC",
                        "type": "EXECUTION",
                        "severity": "SEV_020_LOW",
                        "comment": "",
                        "status": "ENABLED",
                        "is_xql": false,
                        "indicator": {
                          "runOnCGO": true,
                          "investigationType": "FILE_EVENT",
                          "investigation": {
                            "FILE_EVENT": {
                              "filter": {
                                "AND": [
                                  {
                                    "OR": [
                                      {
                                        "SEARCH_FIELD": "event_sub_type",
                                        "SEARCH_TYPE": "EQ",
                                        "SEARCH_VALUE": "1",
                                        "isExtended": false
                                      },
                                      {
                                        "SEARCH_FIELD": "event_sub_type",
                                        "SEARCH_TYPE": "EQ",
                                        "SEARCH_VALUE": "2",
                                        "isExtended": false
                                      },
                                      {
                                        "SEARCH_FIELD": "event_sub_type",
                                        "SEARCH_TYPE": "EQ",
                                        "SEARCH_VALUE": "3",
                                        "isExtended": false
                                      },
                                      {
                                        "SEARCH_FIELD": "event_sub_type",
                                        "SEARCH_TYPE": "EQ",
                                        "SEARCH_VALUE": "5",
                                        "isExtended": false
                                      },
                                      {
                                        "SEARCH_FIELD": "event_sub_type",
                                        "SEARCH_TYPE": "EQ",
                                        "SEARCH_VALUE": "6",
                                        "isExtended": false
                                      }
                                    ]
                                  },
                                  {
                                    "SEARCH_FIELD": "action_file_name",
                                    "SEARCH_TYPE": "EQ",
                                    "SEARCH_VALUE": "aaaaaa",
                                    "EXTRA_FIELDS": [],
                                    "isExtended": false
                                  }
                                ]
                              }
                            }
                          }
                        },
                        "mitre_tactic_id_and_name": [
                          ""
                        ],
                        "mitre_technique_id_and_name": [
                          ""
                        ]
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "added_objects": {
                      "type": "array",
                      "description": "List of BIOC objects added.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer"
                          },
                          "status": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "updated_objects": {
                      "type": "array",
                      "description": "List of BIOC objects updated.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer"
                          },
                          "status": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "errors": {
                      "type": "array",
                      "description": "A list of errors.",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "added_objects": [
                        {
                          "id": 34,
                          "status": "Created a new BIOC rule with the ID: 34 successfully"
                        }
                      ],
                      "updated_objects": [
                        {
                          "id": 26,
                          "status": "Updated a BIOC rule with the ID: 26 successfully"
                        }
                      ],
                      "errors": []
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "added_objects": [
                        {
                          "id": 34,
                          "status": "Created a new BIOC rule with the ID: 34 successfully"
                        }
                      ],
                      "updated_objects": [],
                      "errors": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/public_api/v1/bioc/delete": {
      "post": {
        "tags": [
          "BIOCs"
        ],
        "summary": "Delete BIOCs",
        "operationId": "post-public_api-v1-bioc-delete",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "extended_view": false,
                      "filters": [
                        {
                          "field": "severity",
                          "operator": "EQ",
                          "value": "SEV_020_LOW"
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "name",
                                "severity",
                                "type",
                                "is_xql",
                                "comment",
                                "status",
                                "indicator",
                                "mitre_technique_id_and_name",
                                "mitre_tactic_id_and_name"
                              ],
                              "description": "Identifies the BIOC field the filter is matching. Filters are based on the following keywords:\r\n- `name`: BIOC name.\r\n- `severity`: BIOC severity level.\r\n- `type`: BIOC type.\r\n- `is_xql`: Whether or not the BIOC is XQL.\r\n- `comment`: Comment.\r\n- `status`: BIOC status.\r\n- `indicator`: Indicator.\r\n- `mitre_technique_id_and_name`: MITRE technique ID and name.\r\n- `mitre_tactic_id_and_name`: MITRE tactic ID and name."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "EQ",
                                "NEQ",
                                "IN",
                                "GTE",
                                "LTE"
                              ],
                              "description": "Identifies the comparison operator you want to use for this filter. Valid keywords are:\r\n`EQ` / `NEQ`\r\n- `name`: String\r\n- `severity`: String\r\n- `type`: String\r\n- `is_xql`: Boolean\r\n- `comment`: String\r\n- `status`: String\r\n- `indicator`: String\r\n`IN`\r\n- `mitre_technique_id_and_name`: List of strings\r\n- `mitre_tactic_id_and_name`: List of strings"
                            },
                            "value": {
                              "oneOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              ],
                              "description": "Value that this filter must match. The contents of this field will differ depending on the IOC field that you specified for this filter:\r\n- `name`, `comment`: String.\r\n- `severity`: String, can be one of the following: `SEV_010_INFO`, `SEV_020_LOW`, `SEV_030_MEDIUM`, `SEV_040_HIGH`\r\n- `type`: String, can be one of the following: `other`, `persistence`, `evasion`, `tampering`, `file_type_obfuscation`, `privilege_escalation`, `credential_access`, `lateral_movement`, `execution`, `collection`, `exfiltration`, `infiltration`, `dropper`, `file_privilege_manipulation`, `reconnaissance`, `discovery`.\r\n- `is_xql`: Boolean: `true` or `false`.\r\n- `status`: String, can be one of the following: `enabled`, `disabled`.\r\n- `indicator`: String or dictionary in the format you wrote it.\r\n- `mitre_technique_id_and_name`: List of strings.\r\n- `mitre_tactic_id_and_name`: List of strings.",
                              "items": {}
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "extended_view": false,
                      "filters": [
                        {
                          "field": "severity",
                          "operator": "EQ",
                          "value": "SEV_020_LOW"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "objects_count": {
                      "type": "integer",
                      "description": "Number of BIOC objects deleted."
                    },
                    "objects": {
                      "type": "array",
                      "items": {
                        "type": "integer"
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "objects_count": 3,
                      "objects": [
                        1,
                        3,
                        7
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "objects_count": 3,
                      "objects": [
                        1,
                        3,
                        7
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body",
        "description": "Delete BIOCs selected by filter.\n\nRequires the granular RBAC permission for this feature."
      }
    },
    "/public_api/v1/correlations/get": {
      "post": {
        "tags": [
          "Correlation Rules"
        ],
        "summary": "Get Correlation Rules",
        "description": "Return a list of correlation rules. You can return all correlation rules or filter results. You can also return extended results with all details included.\r\n- The response is concatenated using AND condition (OR is not supported).\r\n- The maximum result set size is >100.\r\n- Offset is the zero-based number of incidents from the start of the result set.\r\n\r\nRequires the granular RBAC permission for this feature.\r\n",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "operationId": "post-public_api-v1-correlations-get",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "extended_view": false
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "extended_view": {
                        "type": "boolean"
                      },
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "enum": [
                                "name",
                                "severity",
                                "xql_query",
                                "is_enabled",
                                "description",
                                "alert_name",
                                "alert_category",
                                "alert_description",
                                "alert_fields",
                                "execution_mode",
                                "search_window",
                                "simple_schedule",
                                "timezone",
                                "crontab",
                                "suppression_enabled",
                                "suppression_duration",
                                "suppression_fields",
                                "dataset",
                                "user_defined_severity",
                                "user_defined_category",
                                "mitre_defs",
                                "investigation_query_link",
                                "drilldown_query_timeframe",
                                "mapping_strategy",
                                "alert_domain"
                              ],
                              "description": "Identifies the correlation rule field the filter is matching. Filters are based on the following keywords:\r\n- `name`: Correlation rule name.\r\n- `severity`: Correlation rule severity.\r\n- `xql_query`: Correlation rule XQL query.\r\n- `is_enabled`: Whether the correlation rule is enabled or disabled.\r\n- `description`: Correlation rule description.\r\n- `alert_name`: Alert name.\r\n- `alert_category`: Alert category.\r\n- `alert_description`: Alert description.\r\n- `alert_fields`: Alert fields.\r\n- `execution_mode`: Whether execution mode is scheduled or real time.\r\n- `search_window`: Amount of time for search window.\r\n- `simple_schedule`: Correlation rule schedule.\r\n- `timezone`: Correlation rule timezone.\r\n- `crontab`: Linux scheduling for correlation rule.\r\n- `suppression_enabled`: Whether suppression is enabled for correlation rule.\r\n- `suppression_duration`: Duration of correlation rule suppression.\r\n- `suppression_fields`: Suppression fields.\r\n- `dataset`: Correlation rule dataset.\r\n- `user_defined_severity`: User-defined severity.\r\n- `user_defined_category`: User-defined category.\r\n- `mitre_defs`: MITRE definitions.\r\n- `investigation_query_link`: Investigation query link.\r\n- `drilldown_query_timeframe`: Whether the drilldown query timeframe is query or alert.\r\n- `mapping_strategy`: Whether the mapping strategy is auto or custom.\r\n- `alert_domain`: Alert domain."
                            },
                            "operator": {
                              "enum": [
                                "EQ",
                                "NEQ",
                                "IN",
                                "GTE",
                                "LTE"
                              ],
                              "description": "Identifies the comparison operator you want to use for this filter. Valid keywords are:\r\n`EQ` / `NEQ`\r\n- `name`: String\r\n- `severity`: String\r\n- `xql_query`: String\r\n- `is_enabled`: Boolean\r\n- `description`: String\r\n- `alert_name`: String\r\n- `alert_category`: String\r\n- `alert_description`: String\r\n- `alert_fields`: String or dictionary\r\n- `execution_mode`: String\r\n- `search_window`: String\r\n- `simple_schedule`: String\r\n- `timezone`: String\r\n- `crontab`: String\r\n- `suppression_enabled`: Boolean\r\n- `suppression_duration`: String\r\n- `dataset`: String\r\n- `user_defined_severity`: String\r\n- `user_defined_category`: String\r\n- `investigation_query_link`: String\r\n- `drilldown_query_timeframe`: String\r\n- `mapping_strategy`: String\r\n- `alert_domain`: String\r\n`IN`\r\n- `suppression_fields`: List of strings\r\n- `mitre_defs`: List of strings"
                            },
                            "value": {
                              "oneOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "array",
                                  "items": {}
                                }
                              ],
                              "description": "Value that this filter must match. The contents of this field will differ depending on the correlation rule field that you specified for this filter:\r\n- `name`, `xql_query`, `description`, `alert_name`, `alert_description`, `alert_fields`, `suppression_duration`, `dataset`, `user_defined_severity`, `user_defined_category`, `investigation_query_link`: String.\r\n- `severity`: String, can be one of the following: `SEV_010_INFO`, `SEV_020_LOW`, `SEV_030_MEDIUM`, `SEV_040_HIGH`\r\n- `is_enabled`: String, can be one of the following: `enabled` or `disabled`.\r\n- `alert_category`: String, can be one of the following: `other`, `persistence`, `evasion`, `tampering`, `file_type_obfuscation`, `privilege_escalation`, `credential_access`, `lateral_movement`, `execution`, `collection`, `exfiltration`, `infiltration`, `dropper`, `file_privilege_manipulation`, `reconnaissance`, `discovery`.\r\n- `alert_fields`: Dictionary.\r\n- `execution_mode`: String, can be one of the following: `scheduled` or `real_time`.\r\n- `search_window`: String, for example: \"2 hours\".\r\n- `simple_schedule`: String, for example: \"5 minutes\".\r\n- `timezone`: String, for example: \"Asia/Jerusalem\".\r\n- `crontab`: String, for example: \"*/10 * * * *\".\r\n- `suppression_enabled`: Boolean: `true` or `false`.\r\n- `suppression_fields`: List of strings.\r\n- `mitre_defs`: List of strings or dictionary.\r\n- `drilldown_query_timeframe`: String, can be one of the following: `query` or `alert`.\r\n- `mapping_strategy`: String, can be one of the following: `auto` or `custom`.\r\n- `alert_domain`: String, can be one of the following: `domain_security`, `domain_it`, `domain_hunting`."
                            }
                          }
                        }
                      },
                      "search_from": {
                        "type": "integer",
                        "description": "Integer representing the starting offset within the query result set from which you want correlation rules returned.\r\nCorrelation rules are returned as a zero-based list. Any correlation rule indexed less than this value is not returned in the final result set and defaults to zero."
                      },
                      "search_to": {
                        "type": "integer",
                        "description": "Integer representing the end offset within the result set after which you do not want BIOCs returned.\r\nBIOCs in the BIOC list that are indexed higher than this value are not returned in the final results set. Defaults to >100, which returns all BIOCs to the end of the list."
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "extended_view": false
                    }
                  }
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "objects_count": {
                      "type": "integer"
                    },
                    "objects": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer"
                          },
                          "name": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string"
                          },
                          "xql_query": {
                            "type": "string"
                          },
                          "is_enabled": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "alert_name": {
                            "type": "string"
                          },
                          "alert_category": {
                            "type": "string"
                          },
                          "alert_fields": {
                            "type": "object",
                            "properties": {}
                          },
                          "execution_mode": {
                            "type": "string"
                          },
                          "search_window": {
                            "type": "string"
                          },
                          "simple_schedule": {
                            "type": "string"
                          },
                          "timezone": {
                            "type": "string"
                          },
                          "crontab": {
                            "type": "string"
                          },
                          "suppression_enabled": {
                            "type": "boolean"
                          },
                          "suppression_fields": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "dataset": {
                            "type": "string"
                          },
                          "mitre_defs": {
                            "type": "object",
                            "properties": {
                              "TA0005 - Defense Evasion": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "drilldown_query_timeframe": {
                            "type": "string"
                          },
                          "mapping_strategy": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "objects_type": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "objects_count": 2,
                      "objects": [
                        {
                          "id": 1,
                          "name": "Test",
                          "severity": "SEV_040_HIGH",
                          "xql_query": "dataset = xdr_data | filter event_type = 1",
                          "is_enabled": "DISABLED",
                          "description": "",
                          "alert_name": "Test",
                          "alert_category": "User Defined",
                          "alert_fields": {},
                          "execution_mode": "SCHEDULED",
                          "search_window": "10 minutes",
                          "simple_schedule": "10 minutes",
                          "timezone": "Asia/Jerusalem",
                          "crontab": "*/10 * * * *",
                          "suppression_enabled": false,
                          "dataset": "alerts",
                          "user_defined_category": "event_type",
                          "mitre_defs": {},
                          "drilldown_query_timeframe": "ALERT",
                          "mapping_strategy": "AUTO"
                        },
                        {
                          "id": 28,
                          "name": "AnotherTest",
                          "severity": "SEV_030_MEDIUM",
                          "xql_query": "dataset = xdr_data | fields event_type, action_process_username, uuid, action_boot_time  | comp values(*) as * by action_process_username\n",
                          "is_enabled": "ENABLED",
                          "description": "Some description",
                          "alert_name": "Test Alert",
                          "alert_category": "DISCOVERY",
                          "alert_description": "Test",
                          "alert_fields": {},
                          "execution_mode": "SCHEDULED",
                          "search_window": "1 hours",
                          "simple_schedule": "10 minutes",
                          "timezone": "Asia/Jerusalem",
                          "crontab": "*/10 * * * *",
                          "suppression_enabled": true,
                          "suppression_duration": "1 hours",
                          "suppression_fields": [
                            "event_type"
                          ],
                          "dataset": "alerts",
                          "mitre_defs": {
                            "TA0005 - Defense Evasion": [
                              "T1014 - Rootkit"
                            ]
                          },
                          "investigation_query_link": "dataset = xdr_data | fields event_type, action_process_username, uuid, action_boot_time  | comp values(*) as * by action_process_username",
                          "drilldown_query_timeframe": "ALERT",
                          "mapping_strategy": "CUSTOM"
                        }
                      ],
                      "objects_type": "correlations"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "objects_count": 2,
                      "objects": [
                        {
                          "id": 1,
                          "name": "Test",
                          "severity": "SEV_040_HIGH",
                          "xql_query": "dataset = xdr_data | filter event_type = 1",
                          "is_enabled": "DISABLED",
                          "description": "",
                          "alert_name": "Test",
                          "alert_category": "User Defined",
                          "alert_description": null,
                          "alert_fields": {
                            "agent_hostname": null,
                            "action_local_ip": null,
                            "action_remote_ip": null,
                            "action_remote_port": null,
                            "agent_device_domain": null,
                            "actor_effective_username": null,
                            "actor_process_image_name": null,
                            "actor_process_image_path": null,
                            "actor_process_command_line": null,
                            "actor_process_image_sha256": null
                          },
                          "execution_mode": "SCHEDULED",
                          "search_window": "10 minutes",
                          "simple_schedule": "10 minutes",
                          "timezone": "Asia/Jerusalem",
                          "crontab": "*/10 * * * *",
                          "suppression_enabled": false,
                          "suppression_duration": null,
                          "suppression_fields": null,
                          "dataset": "alerts",
                          "user_defined_severity": null,
                          "user_defined_category": "event_type",
                          "mitre_defs": {},
                          "investigation_query_link": null,
                          "drilldown_query_timeframe": "ALERT",
                          "mapping_strategy": "AUTO"
                        },
                        {
                          "id": 28,
                          "name": "AnotherTest",
                          "severity": "SEV_030_MEDIUM",
                          "xql_query": "dataset = xdr_data | fields event_type, action_process_username, uuid, action_boot_time  | comp values(*) as * by action_process_username\n",
                          "is_enabled": "ENABLED",
                          "description": "Some description",
                          "alert_name": "Test Alert",
                          "alert_category": "DISCOVERY",
                          "alert_description": "Test",
                          "alert_fields": {},
                          "execution_mode": "SCHEDULED",
                          "search_window": "1 hours",
                          "simple_schedule": "10 minutes",
                          "timezone": "Asia/Jerusalem",
                          "crontab": "*/10 * * * *",
                          "suppression_enabled": true,
                          "suppression_duration": "1 hours",
                          "suppression_fields": [
                            "event_type"
                          ],
                          "dataset": "alerts",
                          "user_defined_severity": null,
                          "user_defined_category": null,
                          "mitre_defs": {
                            "TA0005 - Defense Evasion": [
                              "T1014 - Rootkit"
                            ]
                          },
                          "investigation_query_link": "dataset = xdr_data | fields event_type, action_process_username, uuid, action_boot_time  | comp values(*) as * by action_process_username",
                          "drilldown_query_timeframe": "ALERT",
                          "mapping_strategy": "CUSTOM"
                        }
                      ],
                      "objects_type": "correlations"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/public_api/v1/correlations/insert": {
      "post": {
        "tags": [
          "Correlation Rules"
        ],
        "summary": "Insert or update Correlation Rules",
        "description": "Insert new Correlation Rules or update existing Correlation Rules.\n\n**Note:** The Correlation Rule `id` is tenant specific and can't be used across tenants. Inserting Correlation Rules with the same `id` as an existing Correlation Rule on that tenant will overwrite the existing Correlation Rule.\n\nRequires the granular RBAC permission for this feature.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "operationId": "post-public_api-v1-correlations-insert",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": [
                      {
                        "id": 28,
                        "name": "Test",
                        "severity": "SEV_030_MEDIUM",
                        "xql_query": "dataset = xdr_data | fields event_type, action_process_username, uuid, action_boot_time  | comp values(*) as * by action_process_username\n",
                        "is_enabled": "ENABLED",
                        "description": "RTESRTESTestret",
                        "alert_name": "Test",
                        "alert_category": "DISCOVERY",
                        "alert_description": "Test",
                        "alert_fields": {},
                        "execution_mode": "REAL_TIME",
                        "search_window": "1 hours",
                        "simple_schedule": "10 minutes",
                        "timezone": "Asia/Jerusalem",
                        "crontab": "*/10 * * * *",
                        "suppression_enabled": true,
                        "suppression_duration": "1 hours",
                        "suppression_fields": [
                          "event_type"
                        ],
                        "dataset": "alerts",
                        "mitre_defs": {
                          "TA0005 - Defense Evasion": [
                            "T1014 - Rootkit"
                          ]
                        },
                        "investigation_query_link": "dataset = xdr_data | fields event_type, action_process_username, uuid, action_boot_time  | comp values(*) as * by action_process_username",
                        "drilldown_query_timeframe": "ALERT",
                        "mapping_strategy": "AUTO"
                      }
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "rule_id": {
                          "type": "integer"
                        },
                        "name": {
                          "type": "string",
                          "description": "Correlation rule name."
                        },
                        "severity": {
                          "enum": [
                            "SEV_010_INFO",
                            "SEV_020_LOW",
                            "SEV_030_MEDIUM",
                            "SEV_040_HIGH"
                          ],
                          "description": "Correlation rule severity."
                        },
                        "xql_query": {
                          "type": "string",
                          "description": "Correlation rule XQL query."
                        },
                        "is_enabled": {
                          "type": "boolean",
                          "description": "Whether the correlation rule is enabled or disabled."
                        },
                        "description": {
                          "type": "string",
                          "description": "Correlation rule description."
                        },
                        "alert_name": {
                          "type": "string",
                          "description": "Alert name."
                        },
                        "alert_category": {
                          "enum": [
                            "OTHER",
                            "PERSISTENCE",
                            "EVASION",
                            "TAMPERING",
                            "FILE_TYPE_OBFUSCATION",
                            "PRIVILEGE_ESCALATION",
                            "CREDENTIAL_ACCESS",
                            "LATERAL_MOVEMENT",
                            "EXECUTION",
                            "COLLECTION",
                            "EXFILTRATION",
                            "INFILTRATION",
                            "DROPPER",
                            "FILE_PRIVILEGE_MANIPULATION",
                            "RECONNAISSANCE",
                            "DISCOVERY"
                          ],
                          "description": "Alert category."
                        },
                        "alert_description": {
                          "type": "string",
                          "description": "Alert description."
                        },
                        "alert_fields": {
                          "type": "object",
                          "description": "Alert fields.",
                          "additionalProperties": {}
                        },
                        "execution_mode": {
                          "enum": [
                            "SCHEDULED",
                            "REAL_TIME"
                          ],
                          "description": "Correlation rule execution mode."
                        },
                        "search_window": {
                          "type": "string",
                          "description": "Search window.",
                          "example": "\"2 hours\""
                        },
                        "simple_schedule": {
                          "type": "string",
                          "description": "Correlation rule simple schedule.",
                          "example": "\"5 minutes\""
                        },
                        "timezone": {
                          "type": "string",
                          "description": "Correlation rule timezone.",
                          "example": "\"Asia/Jerusalem\""
                        },
                        "crontab": {
                          "type": "string",
                          "description": "Linux scheduling for correlation rule.",
                          "example": "\"*/10 * * * *\""
                        },
                        "suppression_enabled": {
                          "type": "boolean"
                        },
                        "suppression_duration": {
                          "type": "string",
                          "example": "\"1 hours\""
                        },
                        "suppression_fields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "example": "\"event_type\""
                          }
                        },
                        "dataset": {
                          "type": "string"
                        },
                        "user_defined_severity": {
                          "type": "string",
                          "nullable": true
                        },
                        "user_defined_category": {
                          "type": "string",
                          "nullable": true
                        },
                        "mitre_defs": {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        "investigation_query_link": {
                          "type": "string"
                        },
                        "drilldown_query_timeframe": {
                          "enum": [
                            "QUERY",
                            "ALERT"
                          ]
                        },
                        "mapping_strategy": {
                          "enum": [
                            "AUTO",
                            "CUSTOM"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": [
                      {
                        "rule_id": 28,
                        "name": "Test",
                        "severity": "SEV_030_MEDIUM",
                        "xql_query": "dataset = xdr_data | fields event_type, action_process_username, uuid, action_boot_time  | comp values(*) as * by action_process_username\n",
                        "is_enabled": "true",
                        "description": "RTESRTESTestret",
                        "alert_name": "Test",
                        "alert_category": "DISCOVERY",
                        "alert_description": "Test",
                        "alert_fields": {},
                        "execution_mode": "REAL_TIME",
                        "search_window": "1 hours",
                        "simple_schedule": "10 minutes",
                        "timezone": "Asia/Jerusalem",
                        "crontab": "*/10 * * * *",
                        "suppression_enabled": true,
                        "suppression_duration": "1 hours",
                        "suppression_fields": [
                          "event_type"
                        ],
                        "dataset": "alerts",
                        "user_defined_severity": null,
                        "user_defined_category": null,
                        "mitre_defs": {
                          "TA0005 - Defense Evasion": [
                            "T1014 - Rootkit"
                          ]
                        },
                        "investigation_query_link": "dataset = xdr_data | fields event_type, action_process_username, uuid, action_boot_time  | comp values(*) as * by action_process_username",
                        "drilldown_query_timeframe": "ALERT",
                        "mapping_strategy": "AUTO"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "added_objects": {
                      "type": "array",
                      "description": "List of Correlation Rule objects added.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer"
                          },
                          "status": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "updated_objects": {
                      "type": "array",
                      "description": "List of Correlation Rule objects updated.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer"
                          },
                          "status": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "errors": {
                      "type": "array",
                      "description": "List of error messages, if there are any.",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "added_objects": [
                        {
                          "id": 31,
                          "status": "Added the correlation rule with the ID: 31 successfully"
                        }
                      ],
                      "updated_objects": [
                        {
                          "id": 28,
                          "status": "Updated the correlation rule with the ID: 28 successfully"
                        }
                      ],
                      "errors": []
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "added_objects": [],
                      "updated_objects": [
                        {
                          "id": 28
                        },
                        {
                          "status": "Updated the correlation rule with the ID: 28 successfully"
                        }
                      ],
                      "errors": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/public_api/v1/correlations/delete": {
      "post": {
        "tags": [
          "Correlation Rules"
        ],
        "summary": "Delete Correlation Rules",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "operationId": "post-public_api-v1-correlations-delete",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "extended_view": false,
                      "filters": [
                        {
                          "field": "rule_id",
                          "operator": "EQ",
                          "value": 28
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "name",
                                "severity",
                                "xql_query",
                                "is_enabled",
                                "description",
                                "alert_name",
                                "alert_category",
                                "alert_description",
                                "alert_fields",
                                "execution_mode",
                                "search_window",
                                "simple_schedule",
                                "timezone",
                                "crontab",
                                "suppression_enabled",
                                "suppression_duration",
                                "suppression_fields",
                                "dataset",
                                "user_defined_severity",
                                "user_defined_category",
                                "mitre_defs",
                                "investigation_query_link",
                                "drilldown_query_timeframe",
                                "mapping_strategy",
                                "alert_domain"
                              ],
                              "description": "Identifies the correlation rule field the filter is matching. Filters are based on the following keywords:\r\n- `name`: Correlation rule name.\r\n- `severity`: Correlation rule severity.\r\n- `xql_query`: Correlation rule XQL query.\r\n- `is_enabled`: Whether the correlation rule is enabled or disabled.\r\n- `description`: Correlation rule description.\r\n- `alert_name`: Alert name.\r\n- `alert_category`: Alert category.\r\n- `alert_description`: Alert description.\r\n- `alert_fields`: Alert fields.\r\n- `execution_mode`: Whether execution mode is scheduled or real time.\r\n- `search_window`: Amount of time for search window.\r\n- `simple_schedule`: Correlation rule schedule.\r\n- `timezone`: Correlation rule timezone.\r\n- `crontab`: Linux scheduling for correlation rule.\r\n- `suppression_enabled`: Whether suppression is enabled for correlation rule.\r\n- `suppression_duration`: Duration of correlation rule suppression.\r\n- `suppression_fields`: Suppression fields.\r\n- `dataset`: Correlation rule dataset.\r\n- `user_defined_severity`: User-defined severity.\r\n- `user_defined_category`: User-defined category.\r\n- `mitre_defs`: MITRE definitions.\r\n- `investigation_query_link`: Investigation query link.\r\n- `drilldown_query_timeframe`: Whether the drilldown query timeframe is query or alert.\r\n- `mapping_strategy`: Whether the mapping strategy is auto or custom.\r\n- `alert_domain`: Alert domain."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "EQ",
                                "IN",
                                "GTE",
                                "LTE"
                              ],
                              "description": "Identifies the comparison operator you want to use for this filter. Valid keywords are:\r\n`EQ`\r\n- `name`: String\r\n- `severity`: String\r\n- `xql_query`: String\r\n- `is_enabled`: Boolean\r\n- `description`: String\r\n- `alert_name`: String\r\n- `alert_category`: String\r\n- `alert_description`: String\r\n- `alert_fields`: String or dictionary\r\n- `execution_mode`: String\r\n- `search_window`: String\r\n- `simple_schedule`: String\r\n- `timezone`: String\r\n- `crontab`: String\r\n- `suppression_enabled`: Boolean\r\n- `suppression_duration`: String\r\n- `dataset`: String\r\n- `user_defined_severity`: String\r\n- `user_defined_category`: String\r\n- `investigation_query_link`: String\r\n- `drilldown_query_timeframe`: String\r\n- `mapping_strategy`: String\r\n- `alert_domain`: String\r\n`IN`\r\n- `suppression_fields`: List of strings\r\n- `mitre_defs`: List of strings"
                            },
                            "value": {
                              "oneOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {}
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "integer"
                                }
                              ],
                              "description": "Value that this filter must match. The contents of this field will differ depending on the correlation rule field that you specified for this filter:\r\n- `name`, `xql_query`, `description`, `alert_name`, `alert_description`, `alert_fields`, `suppression_duration`, `dataset`, `user_defined_severity`, `user_defined_category`, `investigation_query_link`: String.\r\n- `severity`: String, can be one of the following: `SEV_010_INFO`, `SEV_020_LOW`, `SEV_030_MEDIUM`, `SEV_040_HIGH`\r\n- `is_enabled`: String, can be one of the following: `enabled` or `disabled`.\r\n- `alert_category`: String, can be one of the following: `other`, `persistence`, `evasion`, `tampering`, `file_type_obfuscation`, `privilege_escalation`, `credential_access`, `lateral_movement`, `execution`, `collection`, `exfiltration`, `infiltration`, `dropper`, `file_privilege_manipulation`, `reconnaissance`, `discovery`.\r\n- `alert_fields`: Dictionary.\r\n- `execution_mode`: String, can be one of the following: `scheduled` or `real_time`.\r\n- `search_window`: String, for example: \"2 hours\".\r\n- `simple_schedule`: String, for example: \"5 minutes\".\r\n- `timezone`: String, for example: \"Asia/Jerusalem\".\r\n- `crontab`: String, for example: \"*/10 * * * *\".\r\n- `suppression_enabled`: Boolean: `true` or `false`.\r\n- `suppression_fields`: List of strings.\r\n- `mitre_defs`: List of strings or dictionary.\r\n- `drilldown_query_timeframe`: String, can be one of the following: `query` or `alert`.\r\n- `mapping_strategy`: String, can be one of the following: `auto` or `custom`.\r\n- `alert_domain`: String, can be one of the following: `domain_security`, `domain_it`, `domain_hunting`."
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "extended_view": false,
                      "filters": [
                        {
                          "field": "alert_domain",
                          "operator": "EQ",
                          "value": "domain1"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "objects_count": {
                      "type": "integer"
                    },
                    "objects": {
                      "type": "array",
                      "items": {
                        "type": "integer"
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "objects_count": 1,
                      "objects": [
                        28
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "objects_count": 1,
                      "objects": [
                        28
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body",
        "description": "Delete correlation rules selected by filter.\n\nRequires the granular RBAC permission for this feature."
      }
    },
    "/public_api/v1/playbooks/get": {
      "post": {
        "summary": "Get a playbook",
        "tags": [
          "Playbooks"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {}
          }
        },
        "operationId": "post-public_api-v1-playbooks-get",
        "description": " Get a playbook by filtering based on its name or ID. The playbook's YAML is returned in a ZIP file.\n\n Requires the granular RBAC permission for this feature.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": {
                        "field": "name",
                        "value": "Phishingplaybook"
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filter": {
                        "type": "object",
                        "description": "Filter fields.",
                        "properties": {
                          "field": {
                            "enum": [
                              "id",
                              "name"
                            ],
                            "description": "Identifies the playbook field the filter is matching. Filters are based on the following keywords:\r\n- `name`: Playbook name\r\n- `id`: Playbook ID"
                          },
                          "value": {
                            "type": "string",
                            "description": "Value that this filter must match."
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "filter": {
                        "field": "name",
                        "value": "Phishingplaybook"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/playbooks/insert": {
      "post": {
        "summary": "Insert or update playbooks",
        "tags": [
          "Playbooks"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "objects_count": 1,
                      "objects": {
                        "failures_items": [
                          {
                            "error": "Failed getting content item file from request, expecting form-data file (0)",
                            "id": ""
                          }
                        ]
                      }
                    }
                  },
                  "properties": {
                    "objects_count": {
                      "type": "integer",
                      "description": "The number of playbooks identified and attempted to be added."
                    },
                    "objects": {
                      "type": "object",
                      "properties": {
                        "failures_items": {
                          "type": "array",
                          "description": "This field in the response indicates that the playbook IDs listed failed to be added.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "error": {
                                "type": "string",
                                "description": "Error message."
                              },
                              "id": {
                                "type": "string",
                                "description": "Playbook ID of the playbook that failed to be added."
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "post-public_api-v1-playbooks-insert",
        "description": "Add or update a playbook by passing the YAML in a ZIP file.\n\nRequires the granular RBAC permission for this feature.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/playbooks/delete": {
      "post": {
        "summary": "Delete a playbook",
        "tags": [
          "Playbooks"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "objects_count": 1,
                      "objects": {
                        "failures_items": [
                          {
                            "error": "Error on automation script find:Error on automation script find",
                            "id": "importantScript"
                          }
                        ],
                        "succeeded_items": [
                          {
                            "id": "d90df88d-5d1e-41dd-8d16-8288c93d87dd"
                          }
                        ]
                      }
                    }
                  },
                  "properties": {
                    "objects_count": {
                      "type": "integer",
                      "description": "The number of playbooks identified and attempted to be deleted."
                    },
                    "objects": {
                      "type": "object",
                      "properties": {
                        "failures_items": {
                          "type": "array",
                          "description": "This field in the response indicates that the playbook IDs listed failed to be deleted.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "error": {
                                "type": "string",
                                "description": "Error message."
                              },
                              "id": {
                                "type": "string",
                                "description": "Playbook ID of the playbook that failed to be deleted."
                              }
                            }
                          }
                        },
                        "succeeded_items": {
                          "type": "array",
                          "description": "This field in the response indicates that the playbook IDs listed were successfully deleted.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Playbook ID of the playbook that was successfully deleted."
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "post-public_api-v1-playbooks-delete",
        "description": "Delete a playbook by filtering based on its name or ID.\n\nRequires the granular RBAC permission for this feature.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": {
                        "field": "name",
                        "value": "Phishingplaybook"
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filter": {
                        "type": "object",
                        "description": "Filter fields.",
                        "properties": {
                          "field": {
                            "enum": [
                              "id",
                              "name"
                            ],
                            "description": "Identifies the playbook field the filter is matching. Filters are based on the following keywords:\r\n- `name`: Playbook name\r\n- `id`: Playbook ID"
                          },
                          "value": {
                            "type": "string",
                            "description": "Value that this filter must match."
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "filter": {
                        "field": "name",
                        "value": "Phishingplaybook"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/scripts/get": {
      "post": {
        "summary": "Get a script",
        "tags": [
          "Scripts"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/zip": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "post-public_api-v1-scripts-get",
        "description": " Get a script by filtering based on its name or ID. The script's YAML is returned in a ZIP file.\n\n Requires the granular RBAC permission for this feature.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": {
                        "field": "name",
                        "value": "Phishingplaybook"
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filter": {
                        "type": "object",
                        "description": "Filter fields.",
                        "properties": {
                          "field": {
                            "enum": [
                              "id",
                              "name"
                            ],
                            "description": "Identifies the script field the filter is matching. Filters are based on the following keywords:\r\n- `name`: Script name\r\n- `id`: Script ID"
                          },
                          "value": {
                            "type": "string",
                            "description": "Value that this filter must match."
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "filter": {
                        "field": "name",
                        "value": "PhishingScript"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/scripts/insert": {
      "post": {
        "summary": "Insert or update a script",
        "tags": [
          "Scripts"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "objects_count": 1,
                      "objects": {
                        "failures_items": [
                          {
                            "error": "Failed getting content item file from request, expecting form-data file (0)",
                            "id": ""
                          }
                        ]
                      }
                    }
                  },
                  "properties": {
                    "objects_count": {
                      "type": "integer",
                      "description": "The number of scripts identified and attempted to be added."
                    },
                    "objects": {
                      "type": "object",
                      "properties": {
                        "failures_items": {
                          "type": "array",
                          "description": "This field in the response indicates that the script IDs listed failed to be added.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "error": {
                                "type": "string",
                                "description": "Error message."
                              },
                              "id": {
                                "type": "string",
                                "description": "Script ID of the script that failed to be added."
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "post-public_api-v1-scripts-insert",
        "description": "Update or add a script by passing the YAML in a ZIP file.\n\nRequires the granular RBAC permission for this feature.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "The script in YAML in a zipped file."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/scripts/delete": {
      "post": {
        "summary": "Delete a script",
        "tags": [
          "Scripts"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "objects_count": 1,
                      "objects": {
                        "failures_items": [
                          {
                            "error": "Error on automation script find:Error on automation script find",
                            "id": "importantScript"
                          }
                        ],
                        "succeeded_items": [
                          {
                            "id": "d90df88d-5d1e-41dd-8d16-8288c93d87dd"
                          }
                        ]
                      }
                    }
                  },
                  "properties": {
                    "objects_count": {
                      "type": "integer",
                      "description": "The number of scripts identified and attempted to be deleted."
                    },
                    "objects": {
                      "type": "object",
                      "properties": {
                        "failures_items": {
                          "type": "array",
                          "description": "This field in the response indicates that the script IDs listed failed to be deleted.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "error": {
                                "type": "string",
                                "description": "Error message."
                              },
                              "id": {
                                "type": "string",
                                "description": "Script ID of the script that failed to be deleted."
                              }
                            }
                          }
                        },
                        "succeeded_items": {
                          "type": "array",
                          "description": "This field in the response indicates that the script IDs listed were successfully deleted.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Script ID of the script that was successfully deleted."
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "post-public_api-v1-scripts-delete",
        "description": "Delete a script by filtering based on its name or ID.\n\nRequires the granular RBAC permission for this feature.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": {
                        "field": "name",
                        "value": "PhishingScript"
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filter": {
                        "type": "object",
                        "description": "Filter fields.",
                        "properties": {
                          "field": {
                            "enum": [
                              "id",
                              "name"
                            ],
                            "description": "Identifies the playbook field the filter is matching. Filters are based on the following keywords:\r\n- `name`: Playbook name\r\n- `id`: Playbook ID"
                          },
                          "value": {
                            "type": "string",
                            "description": "Value that this filter must match."
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "filters": {
                        "field": "name",
                        "value": "Phishingplaybook"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/dashboards/get": {
      "post": {
        "summary": "Get dashboards",
        "tags": [
          "Dashboards"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "objects_count": {
                      "type": "integer"
                    },
                    "objects": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "dashboards_data": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "description": {
                                  "type": "string",
                                  "nullable": true
                                },
                                "status": {
                                  "type": "string"
                                },
                                "layout": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string"
                                      },
                                      "data": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "key": {
                                              "type": "string"
                                            },
                                            "data": {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string"
                                                },
                                                "width": {
                                                  "type": "number"
                                                },
                                                "height": {
                                                  "type": "integer"
                                                },
                                                "time_frame": {
                                                  "type": "object",
                                                  "properties": {
                                                    "relativeTime": {
                                                      "type": "integer"
                                                    }
                                                  }
                                                },
                                                "alerts_or_incidents": {
                                                  "type": "string"
                                                },
                                                "params": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "object",
                                                    "properties": {
                                                      "name": {
                                                        "type": "string"
                                                      },
                                                      "value": {
                                                        "type": "string"
                                                      }
                                                    }
                                                  }
                                                },
                                                "phrase": {
                                                  "type": "string"
                                                },
                                                "viewOptions": {
                                                  "type": "object",
                                                  "properties": {
                                                    "type": {
                                                      "type": "string"
                                                    },
                                                    "commands": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "command": {
                                                            "type": "object",
                                                            "properties": {
                                                              "op": {
                                                                "type": "string"
                                                              },
                                                              "name": {
                                                                "type": "string"
                                                              },
                                                              "value": {
                                                                "type": "string"
                                                              }
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                },
                                "default_dashboard_id": {
                                  "type": "integer"
                                },
                                "global_id": {
                                  "type": "string"
                                },
                                "metadata": {
                                  "type": "object",
                                  "properties": {
                                    "params": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {}
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "widgets_data": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "widget_key": {
                                  "type": "string"
                                },
                                "title": {
                                  "type": "string"
                                },
                                "creation_time": {
                                  "type": "integer"
                                },
                                "description": {
                                  "type": "string"
                                },
                                "data": {
                                  "type": "object",
                                  "properties": {
                                    "params": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "name": {
                                            "type": "string"
                                          },
                                          "value": {
                                            "type": "string"
                                          }
                                        }
                                      }
                                    },
                                    "phrase": {
                                      "type": "string"
                                    },
                                    "time_frame": {
                                      "type": "object",
                                      "properties": {
                                        "relativeTime": {
                                          "type": "integer"
                                        }
                                      }
                                    },
                                    "viewOptions": {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "type": "string"
                                        },
                                        "commands": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "command": {
                                                "type": "object",
                                                "properties": {
                                                  "op": {
                                                    "type": "string"
                                                  },
                                                  "name": {
                                                    "type": "string"
                                                  },
                                                  "value": {
                                                    "type": "string"
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                },
                                "support_time_range": {
                                  "type": "boolean"
                                },
                                "additional_info": {
                                  "type": "object",
                                  "properties": {
                                    "query_tables": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "query_uses_library": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                "creator_mail": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "objects_type": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "objects_count": 2,
                      "objects": [
                        {
                          "dashboards_data": [
                            {
                              "name": "John Doe",
                              "description": null,
                              "status": "ENABLED",
                              "layout": [
                                {
                                  "id": "row-9847",
                                  "data": [
                                    {
                                      "key": "FAKE_KEY",
                                      "data": {
                                        "type": "Pie",
                                        "width": 5435435,
                                        "height": 451
                                      }
                                    },
                                    {
                                      "key": "incidentsByAssignment",
                                      "data": {
                                        "type": "Bar",
                                        "width": 33.333333333333336,
                                        "height": 451
                                      }
                                    },
                                    {
                                      "key": "incidentsHistory",
                                      "data": {
                                        "type": "Timeline",
                                        "width": 33.333333333333336,
                                        "height": 451,
                                        "time_frame": {
                                          "relativeTime": 86400000
                                        },
                                        "alerts_or_incidents": "incident"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "id": "row-2618",
                                  "data": [
                                    {
                                      "key": "xql_1683289526210",
                                      "data": {
                                        "type": "Custom XQL",
                                        "width": 33.333333333333336,
                                        "height": 11111,
                                        "params": [
                                          {
                                            "name": "name",
                                            "value": "orik"
                                          }
                                        ],
                                        "phrase": "dataset = drilldown | filter name = $name\n| view graph type = gauge subtype = radial header = \"User Score\" yaxis = score maxscalerange = 100 headerfontsize = 25 ",
                                        "time_frame": {
                                          "relativeTime": 86400000
                                        },
                                        "viewOptions": {
                                          "type": "gauge",
                                          "commands": [
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "subtype",
                                                "value": "radial"
                                              }
                                            },
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "header",
                                                "value": "\"User Score\""
                                              }
                                            },
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "yaxis",
                                                "value": "score"
                                              }
                                            },
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "maxscalerange",
                                                "value": "100"
                                              }
                                            },
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "headerfontsize",
                                                "value": "25"
                                              }
                                            }
                                          ]
                                        }
                                      }
                                    },
                                    {
                                      "key": "topIncidentsByAlertSeverity",
                                      "data": {
                                        "type": "Table",
                                        "width": 33.333333333333336,
                                        "height": 408
                                      }
                                    },
                                    {
                                      "key": "hostsBySeverity",
                                      "data": {
                                        "type": "Table",
                                        "width": 33.333333333333336,
                                        "height": 408
                                      }
                                    }
                                  ]
                                }
                              ],
                              "default_dashboard_id": 132131,
                              "global_id": "47052a2b17db4d799c4c5da38d203600",
                              "metadata": {
                                "params": []
                              }
                            }
                          ],
                          "widgets_data": [
                            {
                              "widget_key": "xql_1683289526210",
                              "title": "Drilldown | User Score",
                              "creation_time": 1687877496472,
                              "description": "",
                              "data": {
                                "params": [
                                  {
                                    "name": "name",
                                    "value": "orik"
                                  }
                                ],
                                "phrase": "dataset = drilldown | filter name = $name\n| view graph type = gauge subtype = radial header = \"User Score\" yaxis = score maxscalerange = 100 headerfontsize = 25 ",
                                "time_frame": {
                                  "relativeTime": 86400000
                                },
                                "viewOptions": {
                                  "type": "gauge",
                                  "commands": [
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "subtype",
                                        "value": "radial"
                                      }
                                    },
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "header",
                                        "value": "\"User Score\""
                                      }
                                    },
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "yaxis",
                                        "value": "score"
                                      }
                                    },
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "maxscalerange",
                                        "value": "100"
                                      }
                                    },
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "headerfontsize",
                                        "value": "25"
                                      }
                                    }
                                  ]
                                }
                              },
                              "support_time_range": true,
                              "additional_info": {
                                "query_tables": [
                                  "drilldown"
                                ],
                                "query_uses_library": false
                              },
                              "creator_mail": "user@company.com"
                            }
                          ]
                        },
                        {
                          "dashboards_data": [
                            {
                              "name": "John Doe",
                              "description": null,
                              "status": "ENABLED",
                              "layout": [
                                {
                                  "id": "row-9847",
                                  "data": [
                                    {
                                      "key": "FAKE_KEY",
                                      "data": {
                                        "type": "Pie",
                                        "width": 5435435,
                                        "height": 451
                                      }
                                    },
                                    {
                                      "key": "incidentsByAssignment",
                                      "data": {
                                        "type": "Bar",
                                        "width": 33.333333333333336,
                                        "height": 451
                                      }
                                    },
                                    {
                                      "key": "incidentsHistory",
                                      "data": {
                                        "type": "Timeline",
                                        "width": 33.333333333333336,
                                        "height": 451,
                                        "time_frame": {
                                          "relativeTime": 86400000
                                        },
                                        "alerts_or_incidents": "incident"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "id": "row-2618",
                                  "data": [
                                    {
                                      "key": "xql_1683289526210",
                                      "data": {
                                        "type": "Custom XQL",
                                        "width": 33.333333333333336,
                                        "height": 11111,
                                        "params": [
                                          {
                                            "name": "name",
                                            "value": "orik"
                                          }
                                        ],
                                        "phrase": "dataset = drilldown | filter name = $name\n| view graph type = gauge subtype = radial header = \"User Score\" yaxis = score maxscalerange = 100 headerfontsize = 25 ",
                                        "time_frame": {
                                          "relativeTime": 86400000
                                        },
                                        "viewOptions": {
                                          "type": "gauge",
                                          "commands": [
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "subtype",
                                                "value": "radial"
                                              }
                                            },
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "header",
                                                "value": "\"User Score\""
                                              }
                                            },
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "yaxis",
                                                "value": "score"
                                              }
                                            },
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "maxscalerange",
                                                "value": "100"
                                              }
                                            },
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "headerfontsize",
                                                "value": "25"
                                              }
                                            }
                                          ]
                                        }
                                      }
                                    },
                                    {
                                      "key": "topIncidentsByAlertSeverity",
                                      "data": {
                                        "type": "Table",
                                        "width": 33.333333333333336,
                                        "height": 408
                                      }
                                    },
                                    {
                                      "key": "hostsBySeverity",
                                      "data": {
                                        "type": "Table",
                                        "width": 33.333333333333336,
                                        "height": 408
                                      }
                                    }
                                  ]
                                }
                              ],
                              "default_dashboard_id": 132131,
                              "global_id": "27f78777b427452eb54974d3c14bf67a",
                              "metadata": {
                                "params": []
                              }
                            }
                          ],
                          "widgets_data": [
                            {
                              "widget_key": "xql_1683289526210",
                              "title": "Drilldown | User Score",
                              "creation_time": 1687877496472,
                              "description": "",
                              "data": {
                                "params": [
                                  {
                                    "name": "name",
                                    "value": "orik"
                                  }
                                ],
                                "phrase": "dataset = drilldown | filter name = $name\n| view graph type = gauge subtype = radial header = \"User Score\" yaxis = score maxscalerange = 100 headerfontsize = 25 ",
                                "time_frame": {
                                  "relativeTime": 86400000
                                },
                                "viewOptions": {
                                  "type": "gauge",
                                  "commands": [
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "subtype",
                                        "value": "radial"
                                      }
                                    },
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "header",
                                        "value": "\"User Score\""
                                      }
                                    },
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "yaxis",
                                        "value": "score"
                                      }
                                    },
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "maxscalerange",
                                        "value": "100"
                                      }
                                    },
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "headerfontsize",
                                        "value": "25"
                                      }
                                    }
                                  ]
                                }
                              },
                              "support_time_range": true,
                              "additional_info": {
                                "query_tables": [
                                  "drilldown"
                                ],
                                "query_uses_library": false
                              },
                              "creator_mail": "user@company.com"
                            }
                          ]
                        }
                      ],
                      "objects_type": "dashboards"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "objects_count": 2,
                      "objects": [
                        {
                          "dashboards_data": [
                            {
                              "name": "John Doe",
                              "description": null,
                              "status": "ENABLED",
                              "layout": [
                                {
                                  "id": "row-9847",
                                  "data": [
                                    {
                                      "key": "FAKE_KEY",
                                      "data": {
                                        "type": "Pie",
                                        "width": 5435435,
                                        "height": 451
                                      }
                                    },
                                    {
                                      "key": "incidentsByAssignment",
                                      "data": {
                                        "type": "Bar",
                                        "width": 33.333333333333336,
                                        "height": 451
                                      }
                                    },
                                    {
                                      "key": "incidentsHistory",
                                      "data": {
                                        "type": "Timeline",
                                        "width": 33.333333333333336,
                                        "height": 451,
                                        "time_frame": {
                                          "relativeTime": 86400000
                                        },
                                        "alerts_or_incidents": "incident"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "id": "row-2618",
                                  "data": [
                                    {
                                      "key": "xql_1683289526210",
                                      "data": {
                                        "type": "Custom XQL",
                                        "width": 33.333333333333336,
                                        "height": 11111,
                                        "params": [
                                          {
                                            "name": "name",
                                            "value": "orik"
                                          }
                                        ],
                                        "phrase": "dataset = drilldown | filter name = $name\n| view graph type = gauge subtype = radial header = \"User Score\" yaxis = score maxscalerange = 100 headerfontsize = 25 ",
                                        "time_frame": {
                                          "relativeTime": 86400000
                                        },
                                        "viewOptions": {
                                          "type": "gauge",
                                          "commands": [
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "subtype",
                                                "value": "radial"
                                              }
                                            },
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "header",
                                                "value": "\"User Score\""
                                              }
                                            },
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "yaxis",
                                                "value": "score"
                                              }
                                            },
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "maxscalerange",
                                                "value": "100"
                                              }
                                            },
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "headerfontsize",
                                                "value": "25"
                                              }
                                            }
                                          ]
                                        }
                                      }
                                    },
                                    {
                                      "key": "topIncidentsByAlertSeverity",
                                      "data": {
                                        "type": "Table",
                                        "width": 33.333333333333336,
                                        "height": 408
                                      }
                                    },
                                    {
                                      "key": "hostsBySeverity",
                                      "data": {
                                        "type": "Table",
                                        "width": 33.333333333333336,
                                        "height": 408
                                      }
                                    }
                                  ]
                                }
                              ],
                              "default_dashboard_id": 132131,
                              "global_id": "47052a2b17db4d799c4c5da38d203600",
                              "metadata": {
                                "params": []
                              }
                            }
                          ],
                          "widgets_data": [
                            {
                              "widget_key": "xql_1683289526210",
                              "title": "Drilldown | User Score",
                              "creation_time": 1687877496472,
                              "description": "",
                              "data": {
                                "params": [
                                  {
                                    "name": "name",
                                    "value": "orik"
                                  }
                                ],
                                "phrase": "dataset = drilldown | filter name = $name\n| view graph type = gauge subtype = radial header = \"User Score\" yaxis = score maxscalerange = 100 headerfontsize = 25 ",
                                "time_frame": {
                                  "relativeTime": 86400000
                                },
                                "viewOptions": {
                                  "type": "gauge",
                                  "commands": [
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "subtype",
                                        "value": "radial"
                                      }
                                    },
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "header",
                                        "value": "\"User Score\""
                                      }
                                    },
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "yaxis",
                                        "value": "score"
                                      }
                                    },
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "maxscalerange",
                                        "value": "100"
                                      }
                                    },
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "headerfontsize",
                                        "value": "25"
                                      }
                                    }
                                  ]
                                }
                              },
                              "support_time_range": true,
                              "additional_info": {
                                "query_tables": [
                                  "drilldown"
                                ],
                                "query_uses_library": false
                              },
                              "creator_mail": "user@company.com"
                            }
                          ]
                        },
                        {
                          "dashboards_data": [
                            {
                              "name": "John Doe",
                              "description": null,
                              "status": "ENABLED",
                              "layout": [
                                {
                                  "id": "row-9847",
                                  "data": [
                                    {
                                      "key": "FAKE_KEY",
                                      "data": {
                                        "type": "Pie",
                                        "width": 5435435,
                                        "height": 451
                                      }
                                    },
                                    {
                                      "key": "incidentsByAssignment",
                                      "data": {
                                        "type": "Bar",
                                        "width": 33.333333333333336,
                                        "height": 451
                                      }
                                    },
                                    {
                                      "key": "incidentsHistory",
                                      "data": {
                                        "type": "Timeline",
                                        "width": 33.333333333333336,
                                        "height": 451,
                                        "time_frame": {
                                          "relativeTime": 86400000
                                        },
                                        "alerts_or_incidents": "incident"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "id": "row-2618",
                                  "data": [
                                    {
                                      "key": "xql_1683289526210",
                                      "data": {
                                        "type": "Custom XQL",
                                        "width": 33.333333333333336,
                                        "height": 11111,
                                        "params": [
                                          {
                                            "name": "name",
                                            "value": "orik"
                                          }
                                        ],
                                        "phrase": "dataset = drilldown | filter name = $name\n| view graph type = gauge subtype = radial header = \"User Score\" yaxis = score maxscalerange = 100 headerfontsize = 25 ",
                                        "time_frame": {
                                          "relativeTime": 86400000
                                        },
                                        "viewOptions": {
                                          "type": "gauge",
                                          "commands": [
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "subtype",
                                                "value": "radial"
                                              }
                                            },
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "header",
                                                "value": "\"User Score\""
                                              }
                                            },
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "yaxis",
                                                "value": "score"
                                              }
                                            },
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "maxscalerange",
                                                "value": "100"
                                              }
                                            },
                                            {
                                              "command": {
                                                "op": "=",
                                                "name": "headerfontsize",
                                                "value": "25"
                                              }
                                            }
                                          ]
                                        }
                                      }
                                    },
                                    {
                                      "key": "topIncidentsByAlertSeverity",
                                      "data": {
                                        "type": "Table",
                                        "width": 33.333333333333336,
                                        "height": 408
                                      }
                                    },
                                    {
                                      "key": "hostsBySeverity",
                                      "data": {
                                        "type": "Table",
                                        "width": 33.333333333333336,
                                        "height": 408
                                      }
                                    }
                                  ]
                                }
                              ],
                              "default_dashboard_id": 132131,
                              "global_id": "27f78777b427452eb54974d3c14bf67a",
                              "metadata": {
                                "params": []
                              }
                            }
                          ],
                          "widgets_data": [
                            {
                              "widget_key": "xql_1683289526210",
                              "title": "Drilldown | User Score",
                              "creation_time": 1687877496472,
                              "description": "",
                              "data": {
                                "params": [
                                  {
                                    "name": "name",
                                    "value": "orik"
                                  }
                                ],
                                "phrase": "dataset = drilldown | filter name = $name\n| view graph type = gauge subtype = radial header = \"User Score\" yaxis = score maxscalerange = 100 headerfontsize = 25 ",
                                "time_frame": {
                                  "relativeTime": 86400000
                                },
                                "viewOptions": {
                                  "type": "gauge",
                                  "commands": [
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "subtype",
                                        "value": "radial"
                                      }
                                    },
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "header",
                                        "value": "\"User Score\""
                                      }
                                    },
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "yaxis",
                                        "value": "score"
                                      }
                                    },
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "maxscalerange",
                                        "value": "100"
                                      }
                                    },
                                    {
                                      "command": {
                                        "op": "=",
                                        "name": "headerfontsize",
                                        "value": "25"
                                      }
                                    }
                                  ]
                                }
                              },
                              "support_time_range": true,
                              "additional_info": {
                                "query_tables": [
                                  "drilldown"
                                ],
                                "query_uses_library": false
                              },
                              "creator_mail": "user@company.com"
                            }
                          ]
                        }
                      ],
                      "objects_type": "dashboards"
                    }
                  }
                }
              }
            }
          },
          "599": {
            "description": "Invalid field or operator.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "operationId": "post-public_api-v1-dashboards-get",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "name",
                          "value": "This is a cool dashboard",
                          "operator": "EQ"
                        },
                        {
                          "field": "source",
                          "value": "Vitaly Fintushal",
                          "operator": "EQ"
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "enum": [
                                "dashboard_id",
                                "name",
                                "time_generated",
                                "source"
                              ],
                              "description": "Identifies the dashboard field the filter is matching. Filters are based on the following keywords:\r\n- `dashboard_id`: Dashboard ID.\r\n- `name`: Dashboard name.\r\n- `time_generated`: Time the dashboard was generated in epoch milliseconds.\r\n- `source`: Dashboard source."
                            },
                            "operator": {
                              "enum": [
                                "EQ",
                                "NEQ",
                                "IN",
                                "GTE",
                                "LTE"
                              ],
                              "description": "Identifies the comparison operator you want to use for this filter. Valid keywords are:\r\n`EQ` / `NEQ`\r\n- `dashboard_id`: Integer\r\n- `name`: String\r\n- `source`: String\r\n\r\n`IN`\r\n- `dashboard_id`: List of integers\r\n- `name`: List of strings\r\n- `source`: List of strings\r\n\r\n`gte` / `lte`\r\n- `time_generated`: Integer representing the time the dashboard was generated in epoch milliseconds.\r\n- `dashboard_id`: Integer representing the dashboard ID"
                            },
                            "value": {
                              "oneOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              ],
                              "description": "Value that this filter must match. The contents of this field will differ depending on the dashboard field that you specified for this filter:\r\n- `name`, `source`: String or list of strings.\r\n- `time_generated`: Integer.\r\n- `dashboard_id`: Integer or list of integers.",
                              "items": {}
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "name",
                          "value": "Incident by Severity",
                          "operator": "EQ"
                        },
                        {
                          "field": "source",
                          "value": "John Doe",
                          "operator": "EQ"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "description": "Get dashboard details by filtering based on the dashboard name, dashboard ID, time the dashboard was generated, or dashboard source.\r\n\r\nYou must have **Instance Administrator** permissions to run this endpoint.\r\n",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ]
      },
      "parameters": []
    },
    "/public_api/v1/dashboards/insert": {
      "post": {
        "summary": "Insert or update dashboards",
        "tags": [
          "Dashboards"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "added_objects": [
                        {
                          "global_id": "47052a2b47db4d899c4c5da32d203700",
                          "internal_id": 37
                        }
                      ],
                      "updated_objects": [
                        {
                          "global_id": "27f78778b427452ed54974d6c14cf67a",
                          "internal_id": 44
                        }
                      ],
                      "errors": [
                        {
                          "global_id": "a62ed1dag81741fc948720e2a1be2801",
                          "error": "This is the reason for the failure."
                        }
                      ]
                    }
                  },
                  "properties": {
                    "added_objects": {
                      "type": "array",
                      "description": "Array listing the the global ID and internal ID of the objects added.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "global_id": {
                            "type": "string"
                          },
                          "internal_id": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "updated_objects": {
                      "type": "array",
                      "description": "Array listing the the global ID and internal ID of the objects updated.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "global_id": {
                            "type": "string"
                          },
                          "internal_id": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "errors": {
                      "type": "array",
                      "description": "List of errors including the global ID and the error message.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "global_id": {
                            "type": "string"
                          },
                          "error": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "added_objects": [
                        {
                          "global_id": "47052a2b47db4d899c4c5da32d203700",
                          "internal_id": 37
                        }
                      ],
                      "updated_objects": [
                        {
                          "global_id": "27f78778b427452ed54974d6c14cf67a",
                          "internal_id": 44
                        }
                      ],
                      "errors": [
                        {
                          "global_id": "a62ed1dag81741fc948720e2a1be2801",
                          "error": "This is the reason for the failure."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "post-public_api-v1-dashboards-insert",
        "description": "Add or update the dashboards retrieved by the Get dashboards API.\n\nYou must have **Instance Administrator** permissions to run this endpoint.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "dashboards_data": [
                        {
                          "name": "temp",
                          "description": null,
                          "status": "ENABLED",
                          "layout": [
                            {
                              "id": "row-9847",
                              "data": [
                                {
                                  "key": "incidentsBySeverity",
                                  "data": {
                                    "type": "Pie",
                                    "width": 25,
                                    "height": 451
                                  }
                                },
                                {
                                  "key": "xql_17083686713115",
                                  "data": {
                                    "type": "Custom XQL",
                                    "width": 25,
                                    "height": 451,
                                    "phrase": "dataset = xdr_data ",
                                    "time_frame": {
                                      "relativeTime": 86400000
                                    },
                                    "viewOptions": {
                                      "type": "table",
                                      "commands": []
                                    }
                                  }
                                },
                                {
                                  "key": "incidentsByAssignment",
                                  "data": {
                                    "type": "Bar",
                                    "width": 25,
                                    "height": 451
                                  }
                                },
                                {
                                  "key": "incidentsHistory",
                                  "data": {
                                    "type": "Timeline",
                                    "width": 25,
                                    "height": 451,
                                    "time_frame": {
                                      "relativeTime": 86400000
                                    },
                                    "alerts_or_incidents": "incident"
                                  }
                                }
                              ]
                            },
                            {
                              "id": "row-2618",
                              "data": [
                                {
                                  "key": "topIncidentsByAlertSeverity",
                                  "data": {
                                    "type": "Table",
                                    "width": 50,
                                    "height": 408
                                  }
                                },
                                {
                                  "key": "hostsBySeverity",
                                  "data": {
                                    "type": "Table",
                                    "width": 50,
                                    "height": 408
                                  }
                                }
                              ]
                            },
                            {
                              "id": "row-776",
                              "data": [
                                {
                                  "key": "incidentsByAssigneeOverTime",
                                  "data": {
                                    "type": "Timeline",
                                    "width": 100,
                                    "height": 250,
                                    "time_frame": {
                                      "relativeTime": 2592000000
                                    }
                                  }
                                }
                              ]
                            }
                          ],
                          "default_dashboard_id": 1,
                          "global_id": "aaebad58d7f84452abe650cf34b80d64",
                          "metadata": {
                            "params": []
                          }
                        }
                      ],
                      "widgets_data": [
                        {
                          "widget_key": "xql_17083686713115",
                          "title": "papi_widget_test2",
                          "creation_time": 1713089132145,
                          "description": null,
                          "data": {
                            "phrase": "dataset = xdr_data ",
                            "time_frame": {
                              "relativeTime": 86400000
                            },
                            "viewOptions": {
                              "type": "table",
                              "commands": []
                            }
                          },
                          "support_time_range": true,
                          "additional_info": {
                            "query_tables": [
                              "xdr_data"
                            ],
                            "query_uses_library": false
                          },
                          "creator_mail": "user@company.com"
                        }
                      ]
                    }
                  }
                },
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "dashboards_data": {
                        "type": "array",
                        "description": "An array of dashboard details as retrieved by the Get dashboards API.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "description": "Dashboard name."
                            },
                            "description": {
                              "type": "string",
                              "description": "Dashboard description.",
                              "nullable": true
                            },
                            "status": {
                              "type": "string",
                              "description": "Dashboard status."
                            },
                            "layout": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "data": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "key": {
                                          "type": "string"
                                        },
                                        "data": {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string"
                                            },
                                            "width": {
                                              "type": "integer"
                                            },
                                            "height": {
                                              "type": "integer"
                                            },
                                            "time_frame": {
                                              "type": "object",
                                              "properties": {
                                                "relativeTime": {
                                                  "type": "integer"
                                                }
                                              }
                                            },
                                            "alerts_or_incidents": {
                                              "type": "string"
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            },
                            "default_dashboard_id": {
                              "type": "integer"
                            },
                            "global_id": {
                              "type": "string",
                              "description": "**Note:** If no global ID is added in the request data, there might be errors with the global ID listed as \"None\"."
                            },
                            "metadata": {
                              "type": "object",
                              "properties": {
                                "params": {
                                  "type": "array",
                                  "items": {
                                    "type": "object"
                                  }
                                }
                              }
                            }
                          }
                        }
                      },
                      "widgets_data": {
                        "type": "array",
                        "description": "An array of relevant XQL widget details as retrieved by the Get dashboards API.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "widget_key": {
                              "type": "string"
                            },
                            "title": {
                              "type": "string"
                            },
                            "creation_time": {
                              "type": "integer"
                            },
                            "description": {
                              "type": "string",
                              "nullable": true
                            },
                            "data": {
                              "type": "object",
                              "properties": {
                                "phrase": {
                                  "type": "string"
                                },
                                "time_frame": {
                                  "type": "object",
                                  "properties": {
                                    "relativeTime": {
                                      "type": "integer"
                                    }
                                  }
                                },
                                "viewOptions": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string"
                                    },
                                    "commands": {
                                      "type": "array",
                                      "items": {
                                        "type": "object"
                                      }
                                    }
                                  }
                                }
                              }
                            },
                            "support_time_range": {
                              "type": "boolean"
                            },
                            "additional_info": {
                              "type": "object",
                              "properties": {
                                "query_tables": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "query_uses_library": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "creator_mail": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "dashboards_data": [
                        {
                          "name": "John Doe",
                          "description": null,
                          "status": "ENABLED",
                          "layout": [
                            {
                              "id": "row-5867",
                              "data": [
                                {
                                  "key": "FAKE_KEY",
                                  "data": {
                                    "type": "Pie",
                                    "width": 5435435,
                                    "height": 451
                                  }
                                },
                                {
                                  "key": "incidentsByAssignment",
                                  "data": {
                                    "type": "Bar",
                                    "width": 33,
                                    "height": 451
                                  }
                                },
                                {
                                  "key": "incidentsHistory",
                                  "data": {
                                    "type": "Timeline",
                                    "width": 33,
                                    "height": 451,
                                    "time_frame": {
                                      "relativeTime": 86400000
                                    },
                                    "alerts_or_incidents": "incident"
                                  }
                                }
                              ]
                            },
                            {
                              "id": "row-3678",
                              "data": [
                                {
                                  "key": "xql_1583269521210",
                                  "data": {
                                    "type": "Custom XQL",
                                    "width": 33,
                                    "height": 11111,
                                    "params": [
                                      {
                                        "name": "name",
                                        "value": "orik"
                                      }
                                    ],
                                    "phrase": "dataset = drilldown | filter name = $name\n| view graph type = gauge subtype = radial header = \"User Score\" yaxis = score maxscalerange = 100 headerfontsize = 25 ",
                                    "time_frame": {
                                      "relativeTime": 86400000
                                    },
                                    "viewOptions": {
                                      "type": "gauge",
                                      "commands": [
                                        {
                                          "command": {
                                            "op": "=",
                                            "name": "subtype",
                                            "value": "radial"
                                          }
                                        },
                                        {
                                          "command": {
                                            "op": "=",
                                            "name": "header",
                                            "value": "\"User Score\""
                                          }
                                        },
                                        {
                                          "command": {
                                            "op": "=",
                                            "name": "yaxis",
                                            "value": "score"
                                          }
                                        },
                                        {
                                          "command": {
                                            "op": "=",
                                            "name": "maxscalerange",
                                            "value": "100"
                                          }
                                        },
                                        {
                                          "command": {
                                            "op": "=",
                                            "name": "headerfontsize",
                                            "value": "25"
                                          }
                                        }
                                      ]
                                    }
                                  }
                                },
                                {
                                  "key": "topIncidentsByAlertSeverity",
                                  "data": {
                                    "type": "Table",
                                    "width": 33,
                                    "height": 408
                                  }
                                },
                                {
                                  "key": "hostsBySeverity",
                                  "data": {
                                    "type": "Table",
                                    "width": 33,
                                    "height": 408
                                  }
                                }
                              ]
                            }
                          ],
                          "default_dashboard_id": 132131,
                          "global_id": "47052a2b17db4d799c4c5da38d203600",
                          "metadata": {
                            "params": []
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/dashboards/delete": {
      "post": {
        "summary": "Delete dashboards",
        "tags": [
          "Dashboards"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "objects_count": 3,
                      "objects": {
                        "succeeded_items": [
                          {
                            "global_id": "47052a2b17db4d799c4c5da38d203600",
                            "internal_id": 17
                          },
                          {
                            "global_id": "a62eb1daf81741fc948710e2e1be2801",
                            "internal_id": 41
                          }
                        ],
                        "failures_items": [
                          {
                            "global_id": "27f78777b427452eb54974d3c14bf67a",
                            "internal_id": 54,
                            "error": "Dashboard isn't allowed for deletion"
                          }
                        ]
                      }
                    }
                  },
                  "properties": {
                    "objects_count": {
                      "type": "integer"
                    },
                    "objects": {
                      "type": "object",
                      "properties": {
                        "succeeded_items": {
                          "type": "array",
                          "description": "List of the global ID and internal ID of dashboards successfully deleted.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "global_id": {
                                "type": "string"
                              },
                              "internal_id": {
                                "type": "integer"
                              }
                            }
                          }
                        },
                        "failures_items": {
                          "type": "array",
                          "description": "List of global IDs and internal IDs that were not deleted and the error messages explaining why.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "global_id": {
                                "type": "string"
                              },
                              "internal_id": {
                                "type": "integer"
                              },
                              "error": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "objects_count": 3,
                      "objects": {
                        "succeeded_items": [
                          {
                            "global_id": "47052a2b17db4e799c4c5db38d603600",
                            "internal_id": 27
                          },
                          {
                            "global_id": "a62ab1daf82741fc948760e2e1be2401",
                            "internal_id": 31
                          }
                        ],
                        "failures_items": [
                          {
                            "global_id": "25f78778b427452ec54974d3c14bf67a",
                            "internal_id": 55,
                            "error": "Dashboard is not allowed to be deleted."
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "599": {
            "description": "Invalid field or operator.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "operationId": "post-public_api-v1-dashboards-delete",
        "description": "Delete the dashboards retrieved by the Get dashboards API.\n\nYou must have **Instance Administrator** permissions to run this endpoint.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "name",
                          "value": "Incident by Severity",
                          "operator": "EQ"
                        },
                        {
                          "field": "source",
                          "value": "John Doe",
                          "operator": "EQ"
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "description": "Identifies the dashboard field the filter is matching. Filters are based on the following keywords:\r\n- `dashboard_id`: Dashboard ID.\r\n- `name`: Dashboard name.\r\n- `time_generated`: Time the dashboard was generated in epoch milliseconds.\r\n- `source`: Dashboard source.",
                              "enum": [
                                "dashboard_id"
                              ]
                            },
                            "operator": {
                              "description": "Identifies the comparison operator you want to use for this filter. Valid keywords are:\r\n`EQ` / `NEQ`\r\n- `dashboard_id`: Integer\r\n- `name`: String\r\n- `source`: String\r\n\r\n`IN`\r\n- `dashboard_id`: List of integers\r\n- `name`: List of strings\r\n- `source`: List of strings\r\n\r\n`gte` / `lte`\r\n- `time_generated`: Integer representing the time the dashboard was generated in epoch milliseconds.\r\n- `dashboard_id`': Integer representing the dashboard ID.",
                              "enum": [
                                "EQ",
                                "NEQ",
                                "IN",
                                "GTE",
                                "LTE"
                              ]
                            },
                            "value": {
                              "oneOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              ],
                              "description": "Value that this filter must match. The contents of this field will differ depending on the dashboard field that you specified for this filter:\r\n- `name`, `source`: String or list of strings.\r\n- `time_generated`: Integer.\r\n- `dashboard_id`: Integer or list of integers.",
                              "items": {}
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "dashboard_id",
                          "value": 132131,
                          "operator": "EQ"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/widgets/get": {
      "post": {
        "summary": "Get widgets",
        "tags": [
          "Widgets"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "objects_count": 2,
                      "objects": [
                        {
                          "widgets_data": [
                            {
                              "widget_key": "xql_1646052681403",
                              "title": "Widget A",
                              "creation_time": 1653303166334,
                              "description": null,
                              "data": {
                                "phrase": "cold_dataset = endpoints",
                                "time_frame": {
                                  "relativeTime": 86400000
                                },
                                "viewOptions": {
                                  "type": "table",
                                  "commands": []
                                }
                              },
                              "support_time_range": true,
                              "additional_info": {
                                "query_tables": [
                                  "endpoints"
                                ],
                                "query_uses_library": false
                              },
                              "creator_mail": "user@company.com"
                            }
                          ]
                        },
                        {
                          "widgets_data": [
                            {
                              "widget_key": "xql_1346826725701",
                              "title": "Widget B",
                              "creation_time": 1653302483610,
                              "description": null,
                              "data": {
                                "phrase": "dataset = endpoints ",
                                "time_frame": {
                                  "relativeTime": 86400000
                                },
                                "viewOptions": {
                                  "type": "table",
                                  "commands": []
                                },
                                "gridRawStorageInfo": {
                                  "sort": null,
                                  "coldefs": {},
                                  "rowHeight": "{\"rowHeight\":\"regular\",\"gridRowsHeight\":\"medium-row\"}",
                                  "columnWidth": null
                                }
                              },
                              "support_time_range": true,
                              "additional_info": {
                                "query_tables": [
                                  "endpoints"
                                ],
                                "query_uses_library": false
                              },
                              "creator_mail": "user@company.com"
                            }
                          ]
                        }
                      ],
                      "objects_type": "widgets"
                    }
                  },
                  "properties": {
                    "objects_count": {
                      "type": "integer",
                      "description": "Number of widgets returned."
                    },
                    "objects": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "widgets_data": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "widget_key": {
                                  "type": "string"
                                },
                                "title": {
                                  "type": "string"
                                },
                                "creation_time": {
                                  "type": "integer"
                                },
                                "description": {
                                  "type": "string",
                                  "nullable": true
                                },
                                "data": {
                                  "type": "object",
                                  "properties": {
                                    "phrase": {
                                      "type": "string"
                                    },
                                    "time_frame": {
                                      "type": "object",
                                      "properties": {
                                        "relativeTime": {
                                          "type": "integer"
                                        }
                                      }
                                    },
                                    "viewOptions": {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "type": "string"
                                        },
                                        "commands": {
                                          "type": "array",
                                          "items": {
                                            "type": "object"
                                          }
                                        }
                                      }
                                    },
                                    "gridRawStorageInfo": {
                                      "type": "object",
                                      "properties": {
                                        "sort": {
                                          "type": "string",
                                          "nullable": true
                                        },
                                        "coldefs": {
                                          "type": "object"
                                        },
                                        "rowHeight": {
                                          "type": "string"
                                        },
                                        "columnWidth": {
                                          "type": "integer",
                                          "nullable": true
                                        }
                                      }
                                    }
                                  }
                                },
                                "support_time_range": {
                                  "type": "boolean"
                                },
                                "additional_info": {
                                  "type": "object",
                                  "properties": {
                                    "query_tables": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "query_uses_library": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                "creator_mail": {
                                  "type": "string"
                                },
                                "is_public": {
                                  "type": "boolean",
                                  "description": "Indicates whether the widget is public to all users (TRUE) or is restricted to specific users (FALSE)."
                                },
                                "is_predefined": {
                                  "type": "boolean",
                                  "description": "Indicates whether the widget is a predefined widget (TRUE) or a user-created widget (FALSE)."
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "objects_type": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "objects_count": 2,
                      "objects": [
                        {
                          "widgets_data": [
                            {
                              "widget_key": "xql_1646052681403",
                              "title": "Widget A",
                              "creation_time": 1653303166334,
                              "description": null,
                              "data": {
                                "phrase": "cold_dataset = endpoints",
                                "time_frame": {
                                  "relativeTime": 86400000
                                },
                                "viewOptions": {
                                  "type": "table",
                                  "commands": []
                                }
                              },
                              "support_time_range": true,
                              "additional_info": {
                                "query_tables": [
                                  "endpoints"
                                ],
                                "query_uses_library": false
                              },
                              "creator_mail": "user@company.com"
                            }
                          ]
                        },
                        {
                          "widgets_data": [
                            {
                              "widget_key": "xql_1346826725701",
                              "title": "Widget B",
                              "creation_time": 1653302483610,
                              "description": null,
                              "data": {
                                "phrase": "dataset = endpoints ",
                                "time_frame": {
                                  "relativeTime": 86400000
                                },
                                "viewOptions": {
                                  "type": "table",
                                  "commands": []
                                },
                                "gridRawStorageInfo": {
                                  "sort": null,
                                  "coldefs": {},
                                  "rowHeight": "{\"rowHeight\":\"regular\",\"gridRowsHeight\":\"medium-row\"}",
                                  "columnWidth": null
                                }
                              },
                              "support_time_range": true,
                              "additional_info": {
                                "query_tables": [
                                  "endpoints"
                                ],
                                "query_uses_library": false
                              },
                              "creator_mail": "user@company.com"
                            }
                          ]
                        }
                      ],
                      "objects_type": "widgets"
                    }
                  }
                }
              }
            }
          },
          "599": {
            "description": "Invalid field or operator.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "operationId": "post-public_api-v1-widgets-get",
        "description": "Get widget details by filtering based on the widget title and widget creator.\r\n\r\n**Note:** The endpoint only returns XQL widgets and not predefined widgets.\r\n\r\nYou must have **Instance Administrator** permissions to run this endpoint.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "name",
                          "value": "This is a cool widget",
                          "operator": "EQ"
                        },
                        {
                          "field": "created_by",
                          "value": "John Doe",
                          "operator": "EQ"
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "description": "Identifies the dashboard field the filter is matching. Filters are based on the following keywords:\r\n- `title`: Widget title.\r\n- `created_by`: Name of the user who created the widget.",
                              "enum": [
                                "title",
                                "created_by"
                              ]
                            },
                            "operator": {
                              "description": "Identifies the comparison operator you want to use for this filter. Valid keywords are:\r\n`eq` / `neq`\r\n- `created_by`: String\r\n- `title`: String\r\n\r\n`IN`\r\n- `created_by`: List of strings\r\n- `title`: List of strings",
                              "enum": [
                                "EQ",
                                "NEQ",
                                "IN"
                              ]
                            },
                            "value": {
                              "type": "string",
                              "description": "Value that this filter must match. The contents of this field will differ depending on the widget field that you specified for this filter:\r\n- `title`, `created_by`: String or list of strings."
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "title",
                          "value": "Widget A",
                          "operator": "EQ"
                        },
                        {
                          "field": "created_by",
                          "value": "John Doe",
                          "operator": "EQ"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/widgets/insert": {
      "post": {
        "summary": "Insert or update widgets",
        "tags": [
          "Widgets"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "added_objects": [
                        {
                          "key": "xql_1626053781409",
                          "title": "Widget 1"
                        }
                      ],
                      "updated_objects": [
                        {
                          "key": "xql_1636815725608",
                          "title": "Widget 45"
                        }
                      ],
                      "errors": [
                        {
                          "key": "xql_1651607948383",
                          "error": "Failed importing widget"
                        }
                      ]
                    }
                  },
                  "properties": {
                    "added_objects": {
                      "type": "array",
                      "description": "List of widget keys and titles for all widgets successfully added.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "updated_objects": {
                      "type": "array",
                      "description": "List of widget keys and titles for all widgets successfully updated.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "errors": {
                      "type": "array",
                      "description": "List of widget keys and error messages for all widgets that failed to be added or updated.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string"
                          },
                          "error": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "added_objects": [
                        {
                          "key": "xql_1626053781409",
                          "title": "Widget 1"
                        }
                      ],
                      "updated_objects": [
                        {
                          "key": "xql_1636815725608",
                          "title": "Widget 45"
                        }
                      ],
                      "errors": [
                        {
                          "key": "xql_1651607948383",
                          "error": "Failed importing widget"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "post-public_api-v1-widgets-insert",
        "description": "Update or add the widgets retrieved by the Get widgets API.\n\nYou must have **Instance Administrator** permissions to run this endpoint.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": [
                      {
                        "widgets_data": [
                          {
                            "widget_key": "xql_1646052681403",
                            "title": "Widget A",
                            "creation_time": 1653303166334,
                            "description": null,
                            "data": {
                              "phrase": "cold_dataset = endpoints",
                              "time_frame": {
                                "relativeTime": 86400000
                              },
                              "viewOptions": {
                                "type": "table",
                                "commands": []
                              }
                            },
                            "support_time_range": true,
                            "additional_info": {
                              "query_tables": [
                                "endpoints"
                              ],
                              "query_uses_library": false
                            },
                            "creator_mail": "user@company.com"
                          }
                        ]
                      },
                      {
                        "widgets_data": [
                          {
                            "widget_key": "xql_1346826725701",
                            "title": "Widget B",
                            "creation_time": 1653302483610,
                            "description": null,
                            "data": {
                              "phrase": "dataset = endpoints ",
                              "time_frame": {
                                "relativeTime": 86400000
                              },
                              "viewOptions": {
                                "type": "table",
                                "commands": []
                              },
                              "gridRawStorageInfo": {
                                "sort": null,
                                "coldefs": {},
                                "rowHeight": "{\"rowHeight\":\"regular\",\"gridRowsHeight\":\"medium-row\"}",
                                "columnWidth": null
                              }
                            },
                            "support_time_range": true,
                            "additional_info": {
                              "query_tables": [
                                "endpoints"
                              ],
                              "query_uses_library": false
                            },
                            "creator_mail": "user@company.com"
                          }
                        ]
                      }
                    ]
                  }
                },
                "properties": {
                  "request_data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "widgets_data": {
                          "type": "array",
                          "description": "An array of widget details as retrieved by the Get widgets API.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "widget_key": {
                                "type": "string"
                              },
                              "title": {
                                "type": "string"
                              },
                              "creation_time": {
                                "type": "integer"
                              },
                              "description": {
                                "type": "string",
                                "nullable": true
                              },
                              "data": {
                                "type": "object",
                                "properties": {
                                  "phrase": {
                                    "type": "string"
                                  },
                                  "time_frame": {
                                    "type": "object",
                                    "properties": {
                                      "relativeTime": {
                                        "type": "integer"
                                      }
                                    }
                                  },
                                  "viewOptions": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string"
                                      },
                                      "commands": {
                                        "type": "array",
                                        "items": {
                                          "type": "object"
                                        }
                                      }
                                    }
                                  },
                                  "gridRawStorageInfo": {
                                    "type": "object",
                                    "properties": {
                                      "sort": {
                                        "type": "string",
                                        "nullable": true
                                      },
                                      "coldefs": {
                                        "type": "object"
                                      },
                                      "rowHeight": {
                                        "type": "string"
                                      },
                                      "columnWidth": {
                                        "type": "integer",
                                        "nullable": true
                                      }
                                    }
                                  }
                                }
                              },
                              "support_time_range": {
                                "type": "boolean"
                              },
                              "additional_info": {
                                "type": "object",
                                "properties": {
                                  "query_tables": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "query_uses_library": {
                                    "type": "boolean"
                                  }
                                }
                              },
                              "creator_mail": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": [
                      {
                        "widgets_data": [
                          {
                            "widget_key": "xql_1646052681403",
                            "title": "Widget A",
                            "creation_time": 1653303166334,
                            "description": null,
                            "data": {
                              "phrase": "cold_dataset = endpoints",
                              "time_frame": {
                                "relativeTime": 86400000
                              },
                              "viewOptions": {
                                "type": "table",
                                "commands": []
                              }
                            },
                            "support_time_range": true,
                            "additional_info": {
                              "query_tables": [
                                "endpoints"
                              ],
                              "query_uses_library": false
                            },
                            "creator_mail": "user@company.com"
                          }
                        ]
                      },
                      {
                        "widgets_data": [
                          {
                            "widget_key": "xql_1346826725701",
                            "title": "Widget B",
                            "creation_time": 1653302483610,
                            "description": null,
                            "data": {
                              "phrase": "dataset = endpoints ",
                              "time_frame": {
                                "relativeTime": 86400000
                              },
                              "viewOptions": {
                                "type": "table",
                                "commands": []
                              },
                              "gridRawStorageInfo": {
                                "sort": null,
                                "coldefs": {},
                                "rowHeight": "{\"rowHeight\":\"regular\",\"gridRowsHeight\":\"medium-row\"}",
                                "columnWidth": null
                              }
                            },
                            "support_time_range": true,
                            "additional_info": {
                              "query_tables": [
                                "endpoints"
                              ],
                              "query_uses_library": false
                            },
                            "creator_mail": "user@company.com"
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/widgets/delete": {
      "post": {
        "summary": "Delete widgets",
        "tags": [
          "Widgets"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "objects_count": 3,
                      "objects": [
                        "xql_1656052681401",
                        "xql_1636816727601",
                        "xql_1653607348382"
                      ]
                    }
                  },
                  "properties": {
                    "objects_count": {
                      "type": "integer",
                      "description": "Number of widgets deleted."
                    },
                    "objects": {
                      "type": "array",
                      "description": "List of widget IDs of widgets successfully deleted.",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "objects_count": 3,
                      "objects": [
                        "xql_1656052681401",
                        "xql_1636816727601",
                        "xql_1653607348382"
                      ]
                    }
                  }
                }
              }
            }
          },
          "599": {
            "description": "Invalid field or operator.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        },
        "operationId": "post-public_api-v1-widgets-delete",
        "description": "Delete the widgets retrieved by the Get widgets API.\n\nYou must have **Instance Administrator** permissions to run this endpoint.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "title",
                          "value": "Widget A",
                          "operator": "EQ"
                        },
                        {
                          "field": "created_by",
                          "value": "John Doe",
                          "operator": "EQ"
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "description": "Identifies the dashboard field the filter is matching. Filters are based on the following keywords:\r\n- `title`: Widget title.\r\n- `created_by`: Name of the user who created the widget.",
                              "enum": [
                                "created_by",
                                "title"
                              ]
                            },
                            "value": {
                              "description": "Identifies the comparison operator you want to use for this filter. Valid keywords are:\r\n`EQ` / `NEQ`\r\n- `created_by`: String\r\n- `title`: String\r\n\r\n`IN`\r\n- `created_by`: List of strings\r\n- `title`: List of strings",
                              "enum": [
                                "EQ",
                                "NEQ",
                                "IN"
                              ]
                            },
                            "operator": {
                              "type": "string",
                              "description": "Value that this filter must match. The contents of this field will differ depending on the widget field that you specified for this filter:\r\n- `title`, `created_by`: String or list of strings."
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "title",
                          "value": "Widget A",
                          "operator": "EQ"
                        },
                        {
                          "field": "created_by",
                          "value": "John Doe",
                          "operator": "EQ"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/assets": {
      "post": {
        "tags": [
          "Asset inventory"
        ],
        "summary": "Get all or filtered assets",
        "operationId": "fetch_all_assets",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/assets_body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "data": [
                          {
                            "issues_breakdown": {
                              "critical": 0,
                              "high": 0,
                              "low": 0,
                              "medium": 0
                            },
                            "xdm.asset.first_observed": 1747834085000,
                            "xdm.asset.cloud.region": null,
                            "xdm.asset.last_observed": 1748399709000,
                            "issues_critical": 0,
                            "xdm.asset.strong_id": "172.16.33.51",
                            "xdm.asset.type.category": "Device",
                            "xdm.asset.name": null,
                            "xdm.asset.type.name": "Generic Device",
                            "cases_breakdown": {
                              "critical": 0,
                              "high": 0,
                              "low": 0,
                              "medium": 0
                            },
                            "xdm.asset.provider": "ON_PREM",
                            "xdm.asset.type.class": "Compute",
                            "xdm.asset.id": "fffd007cff1c15f3a0d152ae630df9630ce00e39bc66811a9fa9b6457a788afc",
                            "xdm.asset.type.id": "GENERIC_DEVICE",
                            "cases_critical": 0,
                            "xdm.asset.group_ids": [],
                            "xdm.asset.realm": "Other",
                            "xdm.asset.hierarchy.path": "Acme Corp/Engineering",
                            "xdm.asset.hierarchy.id_path": "5590382716",
                            "xdm.host.ipv4_addresses": [
                              "172.16.33.51"
                            ]
                          }
                        ],
                        "metadata": {
                          "filter_count": 1,
                          "total_count": 915
                        }
                      }
                    }
                  },
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "issues_breakdown": {
                                "type": "object",
                                "properties": {
                                  "critical": {
                                    "type": "integer",
                                    "description": "Number of critical issues"
                                  },
                                  "high": {
                                    "type": "integer",
                                    "description": "Number of high issues"
                                  },
                                  "low": {
                                    "type": "integer",
                                    "description": "Number of low issues"
                                  },
                                  "medium": {
                                    "type": "integer",
                                    "description": "Number of medium issues"
                                  }
                                }
                              },
                              "xdm.asset.first_observed": {
                                "type": "integer",
                                "description": "Timestamp of when the asset was first observed"
                              },
                              "xdm.asset.cloud.region": {
                                "description": "Region of the cloud asset",
                                "type": "string",
                                "nullable": true
                              },
                              "xdm.asset.last_observed": {
                                "type": "integer",
                                "description": "Timestamp of when the asset was last observed"
                              },
                              "issues_critical": {
                                "type": "integer"
                              },
                              "xdm.asset.strong_id": {
                                "type": "string"
                              },
                              "xdm.asset.type.category": {
                                "type": "string",
                                "description": "A more detailed grouping within a class. It categorizes assets based on their normalized function or common type, regardless of the provider or implementation."
                              },
                              "xdm.asset.name": {
                                "type": "string",
                                "description": "Asset name",
                                "nullable": true
                              },
                              "xdm.asset.type.name": {
                                "type": "string",
                                "description": "Represents the provider-specific name for a particular asset within a category."
                              },
                              "cases_breakdown": {
                                "type": "object",
                                "properties": {
                                  "critical": {
                                    "type": "integer",
                                    "description": "Number of critical cases"
                                  },
                                  "high": {
                                    "type": "integer",
                                    "description": "Number of high cases"
                                  },
                                  "low": {
                                    "type": "integer",
                                    "description": "Number of low cases"
                                  },
                                  "medium": {
                                    "type": "integer",
                                    "description": "Number of medium cases"
                                  }
                                }
                              },
                              "xdm.asset.provider": {
                                "type": "string"
                              },
                              "xdm.asset.type.class": {
                                "type": "string",
                                "description": "The highest-level grouping of assets based on their general purpose or domain. It is a broad classification that defines the overall function of the assets"
                              },
                              "xdm.asset.id": {
                                "type": "string",
                                "description": "Asset ID"
                              },
                              "xdm.asset.type.id": {
                                "type": "string",
                                "description": "Asset type ID"
                              },
                              "cases_critical": {
                                "type": "integer"
                              },
                              "xdm.asset.group_ids": {
                                "type": "array",
                                "description": "List of asset group IDs",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "xdm.asset.realm": {
                                "type": "string"
                              },
                              "xdm.asset.hierarchy.path": {
                                "type": "string",
                                "description": "The asset's hierarchy path as a delimited name, for example \"Acme Corp/Engineering\". Hierarchies may be partial depending on account permissions.",
                                "nullable": true
                              },
                              "xdm.asset.hierarchy.id_path": {
                                "type": "string",
                                "description": "The leaf identifier of the asset's hierarchy, for example \"5590382716\". Hierarchies may be partial depending on account permissions.",
                                "nullable": true
                              },
                              "xdm.asset.resource_group": {
                                "type": "string",
                                "description": "The resource group the asset belongs to.",
                                "nullable": true
                              },
                              "xdm.host.ipv4_addresses": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "metadata": {
                          "type": "object",
                          "properties": {
                            "filter_count": {
                              "type": "integer",
                              "description": "Number of assets returned"
                            },
                            "total_count": {
                              "type": "integer",
                              "description": "Number of total results of this filter without paging"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "data": [
                          {
                            "issues_breakdown": {
                              "critical": 0,
                              "high": 0,
                              "low": 0,
                              "medium": 0
                            },
                            "xdm.asset.first_observed": 1747834085000,
                            "xdm.asset.cloud.region": null,
                            "xdm.asset.last_observed": 1748399709000,
                            "issues_critical": 0,
                            "xdm.asset.strong_id": "172.16.33.51",
                            "xdm.asset.type.category": "Device",
                            "xdm.asset.name": null,
                            "xdm.asset.type.name": "Generic Device",
                            "cases_breakdown": {
                              "critical": 0,
                              "high": 0,
                              "low": 0,
                              "medium": 0
                            },
                            "xdm.asset.provider": "ON_PREM",
                            "xdm.asset.type.class": "Compute",
                            "xdm.asset.id": "fffd007cff1c15f3a0d152ae630df9630ce00e39bc66811a9fa9b6457a788afc",
                            "xdm.asset.type.id": "GENERIC_DEVICE",
                            "cases_critical": 0,
                            "xdm.asset.group_ids": [],
                            "xdm.asset.realm": "Other",
                            "xdm.asset.hierarchy.path": "Acme Corp/Engineering",
                            "xdm.asset.hierarchy.id_path": "5590382716",
                            "xdm.host.ipv4_addresses": [
                              "172.16.33.51"
                            ]
                          }
                        ],
                        "metadata": {
                          "filter_count": 1,
                          "total_count": 915
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UnauthorizedErrorResponse"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error, Invalid Input",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GenericErrorResponse"
                  }
                }
              }
            }
          }
        },
        "description": "Retrieve detailed information about all assets within your environment, including enterprise, multi-cloud, code, and external surfaces.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management."
      }
    },
    "/public_api/v1/assets/{id}": {
      "get": {
        "tags": [
          "Asset inventory"
        ],
        "summary": "Get asset by ID",
        "operationId": "get-public_api-v1-assets-by-id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Asset ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "data": [
                          {
                            "xdm.asset.last_observed": 1748399709000,
                            "xdm.asset.cloud.region": null,
                            "xdm.asset.id": "fffd007cff1c15f3a0d152ae630df9630ce00e39bc66811a9fa9b6457a788afc",
                            "xdm.asset.provider": "ON_PREM",
                            "xdm.asset.first_observed": 1747834085000,
                            "xdm.asset.type.name": "Generic Device",
                            "xdm.asset.strong_id": "172.16.33.51",
                            "xdm.asset.name": null,
                            "xdm.asset.type.class": "Compute",
                            "xdm.asset.type.id": "GENERIC_DEVICE",
                            "xdm.asset.type.category": "Device",
                            "issues_critical": 0,
                            "xdm.asset.realm": "Other",
                            "xdm.asset.group_ids": [],
                            "cases_breakdown": {
                              "critical": 0,
                              "high": 0,
                              "low": 0,
                              "medium": 0
                            },
                            "issues_breakdown": {
                              "critical": 0,
                              "high": 0,
                              "low": 0,
                              "medium": 0
                            },
                            "cases_critical": 0,
                            "xdm.host.ipv4_addresses": [
                              "172.16.33.51"
                            ]
                          }
                        ],
                        "metadata": {
                          "filter_count": 1,
                          "total_count": 915
                        }
                      }
                    }
                  },
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "xdm.asset.last_observed": {
                            "type": "integer",
                            "description": "Timestamp of when the asset was last observed"
                          },
                          "xdm.asset.cloud.region": {
                            "type": "string",
                            "description": "Region of the cloud asset",
                            "nullable": true
                          },
                          "xdm.asset.id": {
                            "type": "string",
                            "description": "Asset ID"
                          },
                          "xdm.asset.provider": {
                            "type": "string"
                          },
                          "xdm.asset.first_observed": {
                            "type": "integer",
                            "description": "Timestamp of when the asset was first observed"
                          },
                          "xdm.asset.type.name": {
                            "type": "string",
                            "description": "Represents the provider-specific name for a particular asset within a category"
                          },
                          "xdm.asset.strong_id": {
                            "type": "string"
                          },
                          "xdm.asset.name": {
                            "type": "string",
                            "description": "Asset name",
                            "nullable": true
                          },
                          "xdm.asset.type.class": {
                            "type": "string",
                            "description": "The highest-level grouping of assets based on their general purpose or domain. It is a broad classification that defines the overall function of the assets."
                          },
                          "xdm.asset.type.id": {
                            "type": "string",
                            "description": "Asset type ID"
                          },
                          "xdm.asset.type.category": {
                            "type": "string",
                            "description": "A more detailed grouping within a class. It categorizes assets based on their normalized function or common type, regardless of the provider or implementation."
                          },
                          "issues_critical": {
                            "type": "integer"
                          },
                          "xdm.asset.realm": {
                            "type": "string"
                          },
                          "xdm.asset.group_ids": {
                            "type": "array",
                            "description": "List of asset group IDs",
                            "items": {
                              "type": "string"
                            }
                          },
                          "cases_breakdown": {
                            "type": "object",
                            "properties": {
                              "critical": {
                                "type": "integer",
                                "description": "Number of critical cases"
                              },
                              "high": {
                                "type": "integer",
                                "description": "Number of high cases"
                              },
                              "low": {
                                "type": "integer",
                                "description": "Number of low cases"
                              },
                              "medium": {
                                "type": "integer",
                                "description": "Number of medium cases"
                              }
                            }
                          },
                          "issues_breakdown": {
                            "type": "object",
                            "properties": {
                              "critical": {
                                "type": "integer",
                                "description": "Number of critical issues"
                              },
                              "high": {
                                "type": "integer",
                                "description": "Number of high issues"
                              },
                              "low": {
                                "type": "integer",
                                "description": "Number of low issues"
                              },
                              "medium": {
                                "type": "integer",
                                "description": "Number of medium issues"
                              }
                            }
                          },
                          "cases_critical": {
                            "type": "integer"
                          },
                          "xdm.host.ipv4_addresses": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "filter_count": {
                          "type": "integer"
                        },
                        "total_count": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "data": [
                          {
                            "xdm.asset.last_observed": 1748399709000,
                            "xdm.asset.cloud.region": null,
                            "xdm.asset.id": "fffd007cff1c15f3a0d132ae630df9630fe00e39bc66813a9fa9b6457a786afc",
                            "xdm.asset.provider": "ON_PREM",
                            "xdm.asset.first_observed": 1747834085000,
                            "xdm.asset.type.name": "Generic Device",
                            "xdm.asset.strong_id": "172.16.33.51",
                            "xdm.asset.name": null,
                            "xdm.asset.type.class": "Compute",
                            "xdm.asset.type.id": "GENERIC_DEVICE",
                            "xdm.asset.type.category": "Device",
                            "issues_critical": 0,
                            "xdm.asset.realm": "Other",
                            "xdm.asset.group_ids": [],
                            "cases_breakdown": {
                              "critical": 0,
                              "high": 0,
                              "low": 0,
                              "medium": 0
                            },
                            "issues_breakdown": {
                              "critical": 0,
                              "high": 0,
                              "low": 0,
                              "medium": 0
                            },
                            "cases_critical": 0,
                            "xdm.host.ipv4_addresses": [
                              "172.16.33.51"
                            ]
                          }
                        ],
                        "metadata": {
                          "filter_count": 1,
                          "total_count": 915
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UnauthorizedErrorResponse"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Asset Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/NotFoundErrorResponse"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GenericErrorResponse"
                  }
                }
              }
            }
          }
        },
        "description": "Retrieve detailed information about the asset specified by asset ID.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management."
      }
    },
    "/public_api/v1/assets/{id}/raw_fields": {
      "get": {
        "tags": [
          "Asset inventory"
        ],
        "summary": "Get raw fields of asset by ID",
        "operationId": "get-public_api-v1-assets-raw-fields-by-id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Asset ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "xdm__asset__raw_fields": {
                                "type": "object",
                                "properties": {
                                  "Platform Discovery": {
                                    "type": "object",
                                    "properties": {
                                      "Adjustable": {
                                        "type": "boolean"
                                      },
                                      "Description": {
                                        "type": "string"
                                      },
                                      "GlobalQuota": {
                                        "type": "boolean"
                                      },
                                      "QuotaAppliedAtLevel": {
                                        "type": "string"
                                      },
                                      "QuotaArn": {
                                        "type": "string"
                                      },
                                      "QuotaCode": {
                                        "type": "string"
                                      },
                                      "QuotaName": {
                                        "type": "string"
                                      },
                                      "ServiceCode": {
                                        "type": "string"
                                      },
                                      "ServiceName": {
                                        "type": "string"
                                      },
                                      "Unit": {
                                        "type": "string"
                                      },
                                      "Value": {
                                        "type": "integer"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "metadata": {
                          "type": "object",
                          "properties": {
                            "filter_count": {
                              "type": "integer"
                            },
                            "total_count": {
                              "type": "integer"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "data": [
                          {
                            "xdm__asset__raw_fields": {
                              "Platform Discovery": {
                                "Adjustable": false,
                                "Description": "The maximum number of times that you can call model inference in one minute for Anthropic Claude 3.5 Sonnet. The quota considers the combined sum of Converse, ConverseStream, InvokeModel and InvokeModelWithResponseStream.",
                                "GlobalQuota": false,
                                "QuotaAppliedAtLevel": "ACCOUNT",
                                "QuotaArn": "arn:aws:servicequotas:ap-south-1:384346710675:bedrock/L-F457545D",
                                "QuotaCode": "L-F457545D",
                                "QuotaName": "Cross-region InvokeModel requests per minute for Anthropic Claude 3.5 Sonnet",
                                "ServiceCode": "bedrock",
                                "ServiceName": "Amazon Bedrock",
                                "Unit": "None",
                                "Value": 100
                              }
                            }
                          }
                        ],
                        "metadata": {
                          "filter_count": 1,
                          "total_count": 921
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "data": [
                          {
                            "xdm__asset__raw_fields": {
                              "Platform Discovery": {
                                "Adjustable": false,
                                "Description": "The maximum number of times that you can call model inference in one minute for Anthropic Claude 3.5 Sonnet. The quota considers the combined sum of Converse, ConverseStream, InvokeModel and InvokeModelWithResponseStream.",
                                "GlobalQuota": false,
                                "QuotaAppliedAtLevel": "ACCOUNT",
                                "QuotaArn": "arn:aws:servicequotas:ap-south-1:384346710675:bedrock/L-F457545D",
                                "QuotaCode": "L-F457545D",
                                "QuotaName": "Cross-region InvokeModel requests per minute for Anthropic Claude 3.5 Sonnet",
                                "ServiceCode": "bedrock",
                                "ServiceName": "Amazon Bedrock",
                                "Unit": "None",
                                "Value": 100
                              }
                            }
                          }
                        ],
                        "metadata": {
                          "filter_count": 1,
                          "total_count": 921
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UnauthorizedErrorResponse"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Asset Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/NotFoundErrorResponse"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GenericErrorResponse"
                  }
                }
              }
            }
          }
        },
        "description": "Get the raw fields of the asset specified by asset ID.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management."
      }
    },
    "/public_api/v1/assets/schema": {
      "get": {
        "tags": [
          "Asset inventory"
        ],
        "summary": "Get schema of asset inventory",
        "operationId": "get-public_api-v1-assets-get-schema",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetSchemaResponse"
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "DATA": [
                          {
                            "field_name": "xdm.asset.id",
                            "field_pretty_name": "Asset ID",
                            "data_type": "TEXT"
                          },
                          {
                            "field_name": "xdm.asset.name",
                            "field_pretty_name": "Name",
                            "data_type": "TEXT"
                          },
                          {
                            "field_name": "xdm.asset.provider",
                            "field_pretty_name": "Provider",
                            "data_type": "ENUM"
                          },
                          {
                            "field_name": "xdm.asset.type.class",
                            "field_pretty_name": "Class",
                            "data_type": "ENUM"
                          },
                          {
                            "field_name": "xdm.asset.hierarchy.path",
                            "field_pretty_name": "Hierarchy Path",
                            "data_type": "TEXT"
                          },
                          {
                            "field_name": "xdm.asset.hierarchy.id_path",
                            "field_pretty_name": "Hierarchy ID Path",
                            "data_type": "TEXT"
                          },
                          {
                            "field_name": "xdm.asset.resource_group",
                            "field_pretty_name": "Resource Group",
                            "data_type": "TEXT"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UnauthorizedErrorResponse"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GenericErrorResponse"
                  }
                }
              }
            }
          }
        },
        "description": "Get the schema of the asset inventory, including the field names, pretty field names, and field type for every entry in the data model.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management."
      }
    },
    "/public_api/v1/assets/enum/{field_name}": {
      "get": {
        "tags": [
          "Asset inventory"
        ],
        "summary": "Get enum values of specified field",
        "operationId": "get-public_api-v1-assets-get-enum-by-field-name",
        "parameters": [
          {
            "name": "field_name",
            "in": "path",
            "description": "Field name - must be of type Enum",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EnumValuesResponse"
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "DATA": [
                          {
                            "NAME": "ACTIVE_DIRECTORY",
                            "PRETTY_NAME": "Active Directory"
                          },
                          {
                            "NAME": "AKAMAI",
                            "PRETTY_NAME": "Akamai"
                          },
                          {
                            "NAME": "ALIBABA_CLOUD",
                            "PRETTY_NAME": "Alibaba Cloud"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UnauthorizedErrorResponse"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GenericErrorResponse"
                  }
                }
              }
            }
          }
        },
        "description": "**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management."
      }
    },
    "/public_api/v1/asset-groups": {
      "post": {
        "tags": [
          "Asset groups"
        ],
        "operationId": "post-public_api-v1-asset-groups-get",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/assetgroups_body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GenericApiResponse"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UnauthorizedErrorResponse"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error, Invalid Input",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GenericErrorResponse"
                  }
                }
              }
            }
          }
        },
        "description": "By grouping assets based on shared attributes, you can address them collectively. Asset groups enable more efficient bulk actions and simplifies both filtering and scoping within the inventory and across the platform.\n\nGet all or filtered asset groups.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "summary": "Get all or filtered asset groups"
      }
    },
    "/public_api/v1/asset-groups/create": {
      "post": {
        "tags": [
          "Asset groups"
        ],
        "operationId": "post-public_api-v1-asset-groups-create",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/assetgroups_create_body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CreateAssetGroupResponse"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UnauthorizedErrorResponse"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error, Invalid Input",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GenericErrorResponse"
                  }
                }
              }
            }
          }
        },
        "description": "Create a dynamic Asset Group by specifying the filters, or a static group to manually include individual assets.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "summary": "Create an Asset Group"
      }
    },
    "/public_api/v1/asset-groups/update/{group_id}": {
      "post": {
        "tags": [
          "Asset groups"
        ],
        "operationId": "post-public_api-v1-asset-groups-update-by-id",
        "parameters": [
          {
            "name": "group_id",
            "in": "path",
            "description": "Asset Group ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/update_group_id_body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GenericAssetGroupsResponse"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UnauthorizedErrorResponse"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error, Invalid Input",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GenericErrorResponse"
                  }
                }
              }
            }
          }
        },
        "description": "Update the Asset Group specified by Asset Group ID.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "summary": "Update an Asset Group"
      }
    },
    "/public_api/v1/asset-groups/delete/{group_id}": {
      "post": {
        "tags": [
          "Asset groups"
        ],
        "operationId": "post-public_api-v1-asset-groups-delete-by-id",
        "parameters": [
          {
            "name": "group_id",
            "in": "path",
            "description": "Asset Group ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GenericAssetGroupsResponse"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UnauthorizedErrorResponse"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error, Invalid Input",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GenericErrorResponse"
                  }
                }
              }
            }
          }
        },
        "description": "Delete the Asset Group specified by Asset Group ID.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "summary": "Delete an Asset Group"
      }
    },
    "/public_api/v1/tags/agents/delete_permanently": {
      "post": {
        "tags": [
          "Endpoint Management"
        ],
        "summary": "Delete Tags Permanently",
        "operationId": "postDeletePermanently",
        "description": "Permanently delete one or more endpoint tags from the system. Tags that are currently assigned to endpoints cannot be deleted. A maximum of 10 tags can be deleted per API call.\n\n**Required role:** Admin\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "type": "object",
                    "required": [
                      "tags"
                    ],
                    "properties": {
                      "tags": {
                        "type": "array",
                        "description": "List of tag names to permanently delete from the system.",
                        "maxItems": 10,
                        "items": {
                          "type": "string"
                        }
                      },
                      "reason": {
                        "type": "string",
                        "description": "Reason for deleting the tags.",
                        "minLength": 20,
                        "maxLength": 200
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response — tags were permanently deleted from the system.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "message": {
                          "type": "string",
                          "description": "Success message confirming the tags were deleted."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "success": {
                    "summary": "Tags successfully deleted",
                    "value": {
                      "reply": {
                        "message": "Tags were successfully deleted from the system"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. The request failed validation or the specified tags could not be deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "err_code": {
                          "type": "integer"
                        },
                        "err_msg": {
                          "type": "string",
                          "description": "Error message describing why the tags could not be deleted."
                        },
                        "err_extra": {
                          "type": "string",
                          "description": "Additional error context."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "empty-tags-list": {
                    "summary": "Tags input is mandatory and cannot be empty",
                    "value": {
                      "reply": {
                        "err_code": 400,
                        "err_msg": "Failed to delete tags permanently - \"tags\" input is mandatory and cannot be an empty list",
                        "err_extra": ""
                      }
                    }
                  },
                  "tags-not-found": {
                    "summary": "One or more tags were not found",
                    "value": {
                      "reply": {
                        "err_code": 400,
                        "err_msg": "Failed to delete tags permanently. The following tags were not found: invalid_tag",
                        "err_extra": ""
                      }
                    }
                  },
                  "tags-not-found-and-assigned": {
                    "summary": "Tags not found and tags still assigned to endpoints",
                    "value": {
                      "reply": {
                        "err_code": 400,
                        "err_msg": "Failed to delete tags permanently. The following tags were not found: invalid_tag. The following tags are assigned to one or more endpoints: unassigned_tag.",
                        "err_extra": ""
                      }
                    }
                  },
                  "tags-assigned-to-endpoints": {
                    "summary": "Tags are still assigned to endpoints",
                    "value": {
                      "reply": {
                        "err_code": 400,
                        "err_msg": "Failed to delete tags permanently. The following tags are assigned to one or more endpoints: unassigned_tag.",
                        "err_extra": ""
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. Missing required license.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/endpoints/upgrade": {
      "post": {
        "tags": [
          "Endpoint Management"
        ],
        "summary": "Upgrade Agents",
        "description": "Creates an upgrade action for the specified endpoints to upgrade their agents to the target versions.\n\nYou can specify target versions per operating system and optionally define a timeframe window for the upgrade.\n\n**Required license:** Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.",
        "operationId": "postUpgradeAgents",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "{api_key}",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "{api_key_id}",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Upgrade request containing endpoint IDs, target versions per OS, and an optional upgrade timeframe window.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "required": [
                      "endpoint_ids",
                      "target_versions"
                    ],
                    "properties": {
                      "endpoint_ids": {
                        "type": "array",
                        "description": "List of endpoint IDs to upgrade.",
                        "minItems": 1,
                        "items": {
                          "type": "string"
                        }
                      },
                      "target_versions": {
                        "type": "object",
                        "description": "Dictionary mapping OS types to target agent versions. Valid keys: `windows`, `linux`, `macos`.",
                        "additionalProperties": {
                          "type": "string"
                        }
                      },
                      "upgrade_timeframe_window": {
                        "type": "object",
                        "description": "Optional timeframe window to schedule the upgrade.",
                        "properties": {
                          "upgrade_timeframe_days": {
                            "type": "array",
                            "description": "Days of the week for the upgrade timeframe (for example, `Monday`, `Wednesday`).",
                            "items": {
                              "type": "string"
                            }
                          },
                          "upgrade_timeframe_start_time": {
                            "type": "string",
                            "description": "Start time in 24-hour `HH:MM` format.",
                            "pattern": "^([01]\\d|2[0-3]):([0-5]\\d)$"
                          },
                          "upgrade_timeframe_end_time": {
                            "type": "string",
                            "description": "End time in 24-hour `HH:MM` format.",
                            "pattern": "^([01]\\d|2[0-3]):([0-5]\\d)$"
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ]
              },
              "examples": {
                "Upgrade specific endpoints": {
                  "value": {
                    "request_data": {
                      "endpoint_ids": [
                        "endpoint_id_1",
                        "endpoint_id_2"
                      ],
                      "target_versions": {
                        "windows": "8.6.0.1234",
                        "linux": "8.6.0.5678"
                      }
                    }
                  }
                },
                "Upgrade with timeframe": {
                  "value": {
                    "request_data": {
                      "endpoint_ids": [
                        "endpoint_id_1"
                      ],
                      "target_versions": {
                        "windows": "8.6.0.1234",
                        "macos": "8.6.0.9012"
                      },
                      "upgrade_timeframe_window": {
                        "upgrade_timeframe_days": [
                          "monday",
                          "wednesday",
                          "friday"
                        ],
                        "upgrade_timeframe_start_time": "02:00",
                        "upgrade_timeframe_end_time": "06:00"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "description": "JSON object containing the upgrade action result.",
                      "properties": {
                        "summary": {
                          "type": "string",
                          "description": "A summary message of the operation result."
                        },
                        "details": {
                          "type": "array",
                          "description": "Detailed eligibility or error messages per OS type.",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Successful upgrade": {
                    "value": {
                      "reply": {
                        "summary": "Upgrade action created successfully.",
                        "details": [
                          "Windows: 2 endpoints queued for upgrade to 8.6.0.1234",
                          "Linux: 1 endpoint queued for upgrade to 8.6.0.5678"
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Got an invalid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "402": {
            "description": "Unauthorized access. User does not have the required license type to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. A unified status for API communication type errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reply"
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/endpoints/get_profiles": {
      "post": {
        "summary": "Get endpoint security profiles",
        "tags": [
          "Endpoint Management",
          "Profiles"
        ],
        "responses": {
          "200": {
            "description": "OK. Profiles retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProfilesResponse"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": [
                        {
                          "id": 1,
                          "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                          "name": "Default Malware Profile",
                          "type": "AGENT_OS_LINUX",
                          "platform": "AGENT_OS_WINDOWS",
                          "is_default": true,
                          "is_global": false,
                          "is_disabled": false,
                          "associated_targets": [
                            "All endpoints"
                          ],
                          "usage_count": 5,
                          "description": "Default anti-malware profile for Windows",
                          "created_by": "system",
                          "created_by_pretty": "Palo Alto Networks",
                          "creation_time": 1700000000000,
                          "modified_by": "admin@example.com",
                          "modified_by_pretty": "Admin User",
                          "modification_time": 1710000000000,
                          "modules": {
                            "malware": {
                              "mode": "prevent"
                            }
                          }
                        },
                        {
                          "id": 2,
                          "uuid": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
                          "name": "Custom Exploit Profile",
                          "type": "AGENT_OS_IOS",
                          "platform": "AGENT_OS_MAC",
                          "is_default": false,
                          "is_global": false,
                          "is_disabled": false,
                          "associated_targets": [
                            "macOS Servers"
                          ],
                          "usage_count": 2,
                          "description": null,
                          "created_by": "admin@example.com",
                          "created_by_pretty": "Admin User",
                          "creation_time": 1705000000000,
                          "modified_by": "admin@example.com",
                          "modified_by_pretty": "Admin User",
                          "modification_time": 1705000000000,
                          "modules": {}
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. Possible causes:\n- `type` field is missing (`TypeIsMandatory`)\n- `type` value is not `prevention` or `extension` (`TypeNotSupported`)\n- `profile_ids` is provided but is not a list (`ProfileIDsMustBeAList`)\n- Any internal error during profile retrieval (`GeneralError`)\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "err_code": 400,
                        "err_msg": "Got an invalid input while processing the public API",
                        "err_extra": "invalid request - operator contains is unsupported for rule_name, conditions is not supported for filtering, module_name is not supported for filtering, description is not supported for filtering, value Enabled is not valid for field status, modification_time is not supported for filtering, profiles is not supported for filtering, generating_alert_id is not supported for filtering"
                      }
                    }
                  },
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "err_code": {
                          "type": "integer",
                          "description": "HTTP-equivalent error code"
                        },
                        "err_msg": {
                          "type": "string",
                          "description": "Short error category string"
                        },
                        "err_extra": {
                          "type": "string",
                          "description": "Human-readable detail explaining the specific error",
                          "nullable": true
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "type field not provided": {
                    "value": {
                      "reply": {
                        "err_code": 400,
                        "err_msg": "PROFILES_PUBLIC_API_ERROR",
                        "err_extra": "type is mandatory"
                      }
                    }
                  },
                  "unsupported type value": {
                    "value": {
                      "reply": {
                        "err_code": 400,
                        "err_msg": "PROFILES_PUBLIC_API_ERROR",
                        "err_extra": "type 'unknown' is not supported. Valid types: ('prevention', 'extension')"
                      }
                    }
                  },
                  "profile_ids is not a list": {
                    "value": {
                      "reply": {
                        "err_code": 400,
                        "err_msg": "PROFILES_PUBLIC_API_ERROR",
                        "err_extra": "profile_ids must be a list"
                      }
                    }
                  },
                  "internal error during profile retrieval": {
                    "value": {
                      "reply": {
                        "err_code": 400,
                        "err_msg": "PROFILES_PUBLIC_API_ERROR",
                        "err_extra": "General error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – missing or invalid API-key headers",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "err_code": 400,
                        "err_msg": "PROFILES_PUBLIC_API_ERROR",
                        "err_extra": "type is mandatory"
                      }
                    }
                  },
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "err_code": {
                          "type": "integer",
                          "description": "HTTP-equivalent error code"
                        },
                        "err_msg": {
                          "type": "string",
                          "description": "Short error category string"
                        },
                        "err_extra": {
                          "type": "string",
                          "description": "Human-readable detail explaining the specific error",
                          "nullable": true
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden. Possible causes:\n\n- The API Key does not have the `profiles_view` permission\n- The feature flag `ALPHAFEATURES_PUBLIC_API_GET_POLICIES` is disabled\n- The tenant is a secondary HA replica",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "err_code": 400,
                        "err_msg": "PROFILES_PUBLIC_API_ERROR",
                        "err_extra": "type is mandatory"
                      }
                    }
                  },
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "err_code": {
                          "type": "integer",
                          "description": "HTTP-equivalent error code"
                        },
                        "err_msg": {
                          "type": "string",
                          "description": "Short error category string"
                        },
                        "err_extra": {
                          "type": "string",
                          "description": "Human-readable detail explaining the specific error",
                          "nullable": true
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "operationId": "getProfiles",
        "description": "Returns a list of endpoint security profiles of the requested type.\nOptionally filters by a list of profile IDs.\n\n**Required permission:** `profiles_view`\n\n\n**Notes**: \n- File-Integrity-Monitoring (FIM) extension profiles are omitted when FIM is disabled for the profile's OS type.\n- `is_in_user_scope` and `at_risk` are removed from every profile object before the response is returned.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "required": true,
            "description": "{api_key}"
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "required": true,
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "x-examples": {
                  "Example 1": {
                    "request_data": {}
                  }
                },
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "$ref": "#/components/schemas/GetProfilesRequestData"
                  }
                }
              },
              "examples": {
                "Fetch all prevention profiles": {
                  "value": {
                    "request_data": {
                      "type": "prevention"
                    }
                  }
                },
                "Fetch specific extension profiles by ID": {
                  "value": {
                    "request_data": {
                      "type": "extension",
                      "profile_ids": [
                        1,
                        42,
                        99
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/legacy_exceptions/get_modules": {
      "post": {
        "summary": "Get Legacy Exceptions Modules",
        "operationId": "get_legacy_exceptions_modules",
        "tags": [
          "Endpoint Management"
        ],
        "description": "Get a list of supported legacy exception modules available in the tenant. Each module entry includes its `module_id`, supported `platforms`, and the `conditions_definition` schema that must be used when creating or editing a legacy exception rule for that module.\n\n**Note**: No request body required. Send an empty body.\n\n",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "description": "{api_key}",
            "schema": {
              "type": "string",
              "example": "UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP "
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "required": true,
            "description": "{api_key_id}",
            "schema": {
              "type": "string",
              "example": "241"
            }
          }
        ],
        "requestBody": {
          "description": "No request body required. Send an empty body.",
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "module_id": {
                            "type": "integer",
                            "description": "Unique numeric identifier for the module. Use as the `module` field in add/edit requests.",
                            "example": 1
                          },
                          "pretty_name": {
                            "type": "string",
                            "description": "Full display name including profile type category",
                            "example": "Malware > Respond to Malicious Causality Chains"
                          },
                          "title": {
                            "type": "string",
                            "description": "Short title of the module.",
                            "example": "Respond to Malicious Causality Chains"
                          },
                          "label": {
                            "type": "string",
                            "description": "Label describing what the exception allow-lists (for example, \"Files / Folders in Allow List\").",
                            "example": "Allow List of Remote Ipv4/ipv6 Ip Address, Range or Cidr"
                          },
                          "profile_type": {
                            "type": "string",
                            "description": "Category of the protection profile this module belongs to.",
                            "example": "Malware"
                          },
                          "platforms": {
                            "type": "array",
                            "description": "List of platforms this module supports. Only use these platforms in add/edit requests for this module.",
                            "items": {
                              "type": "string",
                              "example": "Windows"
                            }
                          },
                          "conditions_definition": {
                            "type": "object",
                            "description": "Schema definition for the `conditions` object required when creating or editing a legacy exception rule for this module. Each key is a condition field name, and its value describes the expected schema and a human-readable description.",
                            "properties": {
                              "remoteIpsWhitelist": {
                                "type": "object",
                                "properties": {
                                  "schema": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string"
                                      },
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      "minItems": {
                                        "type": "integer"
                                      }
                                    }
                                  },
                                  "description": {
                                    "type": "string",
                                    "description": "Human-readable description of the condition field."
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": [
                        {
                          "module_id": 1,
                          "pretty_name": "Malware > Respond to Malicious Causality Chains",
                          "title": "Respond to Malicious Causality Chains",
                          "label": "Allow List of Remote Ipv4/ipv6 Ip Address, Range or Cidr",
                          "profile_type": "Malware",
                          "platforms": [
                            "Windows",
                            "macOS"
                          ],
                          "conditions_definition": {
                            "remoteIpsWhitelist": {
                              "schema": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "minItems": 1
                              },
                              "description": "List of valid Ipv4/ipv6 Ip Address, Ranges or Cidrs"
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Invalid Input."
          },
          "401": {
            "description": "Unauthorized access. User does not have the required license type to run this API."
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/public_api/v1/legacy_exceptions/fetch": {
      "post": {
        "summary": "Fetch Legacy Exception Rules",
        "operationId": "get_legacy_exceptions",
        "tags": [
          "Endpoint Management"
        ],
        "description": "Retrieves a paginated list of Legacy Exception rules for agents based on optional filters and sorting criteria.\n\nThis endpoint allows you to:\n- Retrieve all rules or filter by specific criteria\n- Sort results by any field in ascending or descending order\n- Paginate through large result sets\n- Get total count and filtered count of rules\n",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "description": "{api_key}",
            "schema": {
              "type": "string",
              "example": "UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP "
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "required": true,
            "description": "{api_key_id}",
            "schema": {
              "type": "string",
              "example": "241"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetLegacyExceptionDataRequest"
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "search_from": 0,
                      "search_to": 10,
                      "sort": {
                        "field": "id",
                        "keyword": "desc"
                      },
                      "filters": [
                        {
                          "field": "status",
                          "operator": "eq",
                          "value": "ENABLED"
                        },
                        {
                          "field": "platform",
                          "operator": "eq",
                          "value": "Windows"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPublicLegacyExceptionResponse"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "DATA": [
                          {
                            "id": "d9c06bfa3f9b45a7a0196244e68d181d",
                            "rule_name": "Legacy Exception Rule 1",
                            "platform": "Linux",
                            "conditions": "Process Name = Another test process AND Modules = Disable Injection OR Process Name = Test process AND Modules = Child Process Protection",
                            "module": 43,
                            "module_name": "Exceptions > Process Exceptions",
                            "description": "rule 1",
                            "generating_alert_id": null,
                            "created_by": "John Doe",
                            "modification_time": 1772111647000,
                            "user_email": "john.doe@example.com",
                            "status": "ENABLED",
                            "profile_ids": [
                              27
                            ],
                            "associated_targets": [
                              "Any"
                            ],
                            "is_in_user_scope": true
                          },
                          {
                            "id": "0a2661779a2d4a87b051158ea47f0022",
                            "rule_name": "Legacy Exception Rule 2",
                            "platform": "Windows",
                            "conditions": "Remote IP Address : 192.168.1.45",
                            "module": 1,
                            "module_name": "Malware > Respond to Malicious Causality Chains",
                            "description": "test",
                            "generating_alert_id": null,
                            "created_by": "Jane Doe",
                            "modification_time": 1772089294000,
                            "user_email": "jane.doe@example.com",
                            "status": "ENABLED",
                            "profile_ids": [
                              29
                            ],
                            "associated_targets": [],
                            "is_in_user_scope": true
                          }
                        ],
                        "FILTER_COUNT": 2,
                        "TOTAL_COUNT": 2
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "err_code": {
                          "type": "integer",
                          "description": "HTTP error code."
                        },
                        "err_msg": {
                          "type": "string",
                          "description": "High-level error message"
                        },
                        "err_extra": {
                          "type": "string",
                          "description": "Detailed error information describing the specific validation failures."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "err_code": 400,
                        "err_msg": "Got an invalid input while processing XDR public API",
                        "err_extra": "invalid request - operator contains is unsupported for rule_name, conditions is not supported for filtering, module_name is not supported for filtering, description is not supported for filtering, value Enabled is not valid for field status, modification_time is not supported for filtering, profiles is not supported for filtering, generating_alert_id is not supported for filtering"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/legacy_exceptions/add": {
      "post": {
        "summary": "Add Legacy Exception Rule",
        "operationId": "add_legacy_exception",
        "tags": [
          "Endpoint Management"
        ],
        "description": "Create a new legacy exception rule.\n\n**Prerequisites:**\n- Use [Get Legacy Exceptions Modules](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/endpoint-management#post-public_api-v1-legacy_exceptions-get_modules) API to discover available `module` IDs, supported `platforms`, and the required `conditions` structure.\n- Use [Get endpoint security profiles](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/endpoint-management#post-public_api-v1-endpoints-get_profiles) to discover existing profile IDs to pass as `profile_ids`.\n- New profiles can be created via [Add Prevention Profile](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/endpoint-management#post-public_api-v1-profiles-prevention-add).",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "description": "{api_key}",
            "schema": {
              "type": "string",
              "example": "UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP "
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "required": true,
            "description": "{api_key_id}",
            "schema": {
              "type": "string",
              "example": "241"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "$ref": "#/components/schemas/AddLegacyExceptionDataRequest"
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "name": "Test Legacy Exception rule 1",
                      "platform": "Windows",
                      "module": 1,
                      "profile_ids": [
                        29
                      ],
                      "status": "ENABLED",
                      "scope": "PROFILE",
                      "description": "my legacy rule desc",
                      "conditions": {
                        "remoteIpsWhitelist": [
                          "192.168.1.45"
                        ]
                      }
                    }
                  }
                },
                "Example 2": {
                  "value": {
                    "request_data": {
                      "name": "Test kpep legacy rule",
                      "platform": "macOS",
                      "module": 43,
                      "profile_ids": [
                        53
                      ],
                      "status": "ENABLED",
                      "scope": "PROFILE",
                      "description": "my legacy desc rule 2",
                      "conditions": {
                        "process_exceptions": [
                          {
                            "processName": "test\\test.exe",
                            "modules": [
                              {
                                "moduleId": 141,
                                "moduleName": "Kernel Privilege Escalation Protection"
                              }
                            ]
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "string",
                      "description": "The ID of the newly created legacy exception rule.",
                      "example": "f87c6f24205249d896677ab63626d4f4"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": "f87c6f24205249d896677ab63626d4f4"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/legacy_exceptions/edit": {
      "post": {
        "summary": "Edit Legacy Exception Rule",
        "operationId": "edit_legacy_exception",
        "tags": [
          "Endpoint Management"
        ],
        "description": "Update an existing legacy exception rule.\n\n**Prerequisites:**\n\nTo get the required fields:\n- Use [Fetch Legacy Exception Rules](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/endpoint-management#post-public_api-v1-legacy_exceptions-fetch) to retrieve existing exception details.\n- The `id` field in the fetch API response corresponds to `exception_id` in this request.\n- The `rule_name` field in the fetch API response corresponds to `name` in this request.\n- The `scope` field is not returned by the fetch API. Use `\"PROFILE\"` if `profile_ids` is non-empty in the fetch response; use `\"GLOBAL\"` if `profile_ids` is `[]`.\n",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "description": "{api_key}",
            "schema": {
              "type": "string",
              "example": "UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP "
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "required": true,
            "description": "{api_key_id}",
            "schema": {
              "type": "string",
              "example": "241"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "request_data"
                ],
                "properties": {
                  "request_data": {
                    "$ref": "#/components/schemas/EditLegacyExceptionDataRequest"
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "exception_id": "f87c6f24205249d896677ab63626d4f4",
                      "update_data": {
                        "name": "Edit legacy exception rule",
                        "platform": "Windows",
                        "module": 1,
                        "profile_ids": [
                          29
                        ],
                        "status": "DISABLED",
                        "scope": "PROFILE",
                        "description": "my legacy desc",
                        "conditions": {
                          "remoteIpsWhitelist": [
                            "192.168.1.45",
                            "10.0.0.10-10.0.0.20"
                          ]
                        }
                      }
                    }
                  }
                },
                "Example 2": {
                  "value": {
                    "request_data": {
                      "exception_id": "d9c06bfa3f9b45a7a0196244e68d181d",
                      "update_data": {
                        "name": "Edit legacy exception rule 1",
                        "platform": "Linux",
                        "module": 43,
                        "profile_ids": [
                          26
                        ],
                        "status": "ENABLED",
                        "scope": "PROFILE",
                        "description": "test 3",
                        "conditions": {
                          "process_exceptions": [
                            {
                              "processName": "Test process 1",
                              "modules": [
                                {
                                  "moduleId": 67,
                                  "moduleName": "Disable Injection"
                                }
                              ]
                            },
                            {
                              "processName": "Test process 2",
                              "modules": [
                                {
                                  "moduleId": 63,
                                  "moduleName": "Child Process Protection"
                                }
                              ]
                            },
                            {
                              "processName": "Test process 3",
                              "modules": [
                                {
                                  "moduleId": 65,
                                  "moduleName": "Brute Force Protection"
                                }
                              ]
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "string",
                      "description": "The ID of the edited legacy exception rule.",
                      "example": "f87c6f24205249d896677ab63626d4f4"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": "f87c6f24205249d896677ab63626d4f4"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/legacy_exceptions/delete": {
      "post": {
        "summary": "Delete Legacy Exception Rules",
        "operationId": "delete_legacy_exceptions",
        "tags": [
          "Endpoint Management"
        ],
        "description": "Deletes one or more legacy exception rules by their IDs.\n\nUse [Fetch Legacy Exception Rules](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/endpoint-management#post-public_api-v1-legacy_exceptions-fetch) endpoint to retrieve the `id` values of the exceptions you want to delete.",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "description": "{api_key}",
            "schema": {
              "type": "string",
              "example": "UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP "
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "required": true,
            "description": "{api_key_id}",
            "schema": {
              "type": "string",
              "example": "241"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "required": [
                      "exception_ids"
                    ],
                    "properties": {
                      "exception_ids": {
                        "type": "array",
                        "description": "List of legacy exception IDs to delete. Corresponds to the `id` field returned by the fetch API.",
                        "minItems": 1,
                        "items": {
                          "type": "string",
                          "example": "f87c6f24205249d896677ab63626d4f4"
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "exception_ids": [
                        "f87c6f24205249d896677ab63626d4f4"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "integer",
                      "description": "The number of successfully deleted legacy exception rules.",
                      "example": 1
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": 1
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public_api/v1/profiles/prevention/add": {
      "post": {
        "summary": "Add Prevention Profile",
        "description": "Create a new prevention profile with specified configuration.",
        "operationId": "add_prevention_profile",
        "tags": [
          "Endpoint Management"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "profile_type",
                  "platform",
                  "modules"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 600,
                    "description": "Name of the profile."
                  },
                  "profile_type": {
                    "type": "string",
                    "description": "Type of the prevention profile."
                  },
                  "platform": {
                    "type": "string",
                    "description": "Platform (OS) for the profile."
                  },
                  "description": {
                    "type": "string",
                    "nullable": true,
                    "description": "Optional description of the profile."
                  },
                  "modules": {
                    "type": "object",
                    "description": "Configuration modules for the profile.",
                    "additionalProperties": {
                      "type": "object"
                    }
                  }
                },
                "additionalProperties": false,
                "example": {
                  "name": "Windows_Malware_Prevention",
                  "profile_type": "malware",
                  "platform": "windows",
                  "description": "Standard prevention profile for Windows endpoints",
                  "modules": {
                    "wildfire": {
                      "status": "enabled"
                    },
                    "behavioral_threat_protection": {
                      "status": "enabled"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "integer",
                      "description": "The ID of the newly created profile."
                    }
                  },
                  "example": {
                    "reply": 12345
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Invalid Input."
          },
          "401": {
            "description": "Unauthorized access. User does not have the required license type to run this API."
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/public_api/v1/profiles/add_signer_cn_to_allowlist": {
      "post": {
        "summary": "Add Signer CN to Allowlist",
        "description": "Add one or more signer common names to the allowlist of a specific Windows malware prevention profile. This endpoint only works on Windows Malware profiles.",
        "operationId": "add_signer_cn_to_allowlist",
        "tags": [
          "Endpoint Management"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "profile_name",
                  "signers"
                ],
                "properties": {
                  "profile_name": {
                    "type": "string",
                    "maxLength": 600,
                    "description": "The name of the Windows malware prevention profile. Cannot be 'Default'."
                  },
                  "signers": {
                    "oneOf": [
                      {
                        "type": "string",
                        "maxLength": 600
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 600
                        },
                        "maxItems": 1000
                      }
                    ],
                    "description": "A single signer CN string or a list of signer CN strings to add. Total signers cap is 1000."
                  }
                },
                "additionalProperties": false,
                "example": {
                  "profile_name": "Windows_Malware_Prevention",
                  "signers": [
                    "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US",
                    "CN=Palo Alto Networks, O=Palo Alto Networks, L=Santa Clara, S=California, C=US"
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "nullable": true
                    }
                  },
                  "example": {
                    "reply": null
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Invalid Input."
          },
          "401": {
            "description": "Unauthorized access. User does not have the required license type to run this API."
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/public_api/v1/profiles/prevention/edit": {
      "post": {
        "summary": "Edit Prevention Profile",
        "description": "Update an existing prevention profile with new configuration. At least one field in update_data (name, description, or modules) must be provided. \n\nNote: Default profiles cannot be edited. ",
        "operationId": "edit_prevention_profile",
        "tags": [
          "Endpoint Management"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "profile_id",
                  "update_data"
                ],
                "properties": {
                  "profile_id": {
                    "type": "integer",
                    "description": "The ID of the profile to edit."
                  },
                  "update_data": {
                    "type": "object",
                    "minProperties": 1,
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 600,
                        "nullable": true
                      },
                      "description": {
                        "type": "string",
                        "nullable": true
                      },
                      "modules": {
                        "type": "object",
                        "nullable": true,
                        "additionalProperties": {
                          "type": "object"
                        },
                        "description": "Updated configuration modules for the profile."
                      }
                    }
                  }
                },
                "additionalProperties": false,
                "example": {
                  "profile_id": 12345,
                  "update_data": {
                    "description": "Updated description for the profile",
                    "modules": {
                      "wildfire": {
                        "status": "enabled"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "boolean",
                      "description": "True if the profile was successfully updated."
                    }
                  },
                  "example": {
                    "reply": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Invalid Input."
          },
          "401": {
            "description": "Unauthorized access. User does not have the required license type to run this API."
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/public_api/v1/profiles/prevention/get_modules": {
      "post": {
        "summary": "Get Prevention Profile Modules",
        "description": "Get a list of modules for a specific prevention profile type and platform.",
        "operationId": "get_prevention_modules",
        "tags": [
          "Endpoint Management"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "profile_type",
                  "platform"
                ],
                "properties": {
                  "profile_type": {
                    "type": "string",
                    "description": "The type of prevention profile."
                  },
                  "platform": {
                    "type": "string",
                    "description": "The platform (OS) for the profile."
                  }
                },
                "additionalProperties": false,
                "example": {
                  "profile_type": "malware",
                  "platform": "windows"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "description": "Module definition object."
                      }
                    }
                  },
                  "example": {
                    "reply": [
                      {
                        "id": "additionalProcesses",
                        "profile_type": "Exploit",
                        "platform": "macOS",
                        "pretty_name": "Exploit Protection for Additional Processes",
                        "schema": {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "block",
                                "report",
                                "disabled"
                              ],
                              "description": "Action Mode"
                            },
                            "processes": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "description": "Path Array"
                              }
                            }
                          },
                          "required": [
                            "mode",
                            "processes"
                          ],
                          "additionalProperties": false
                        }
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Invalid Input."
          },
          "401": {
            "description": "Unauthorized access. User does not have the required license type to run this API."
          },
          "403": {
            "description": "Forbidden access. The provided API Key does not have the required RBAC permissions to run this API."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/public_api/v1/policies/prevention/edit": {
      "post": {
        "summary": "Edit prevention policy rules",
        "description": "Updates one or more prevention policy rules. Each item in `edit_requests` specifies a rule by its 32-character hexadecimal UUID and includes the fields to modify. Only explicitly provided (non-null) fields are updated; all others remain unchanged.\n\n**Constraints**\n- The default (catch-all) rule (`is_any = true`) cannot be modified for `name`, `description`, or `target_filter`.\n- Profile IDs must exist, correspond to the correct profile type (exploit, malware, restrictions, agent_settings, or exceptions), and match the OS platform of the target rule.\n- Updates are applied atomically. If the policy has been modified since it was last retrieved, the request fails with a `409 Conflict` error due to stale data.\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.",
        "operationId": "editPreventionPolicy",
        "tags": [
          "Endpoint Management"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Authorization",
            "description": "{api_key}",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "x-xdr-auth-id",
            "description": "{api_key_id}",
            "required": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditPreventionPolicyRequest"
              },
              "examples": {
                "rename_rule": {
                  "summary": "Rename a rule and change its malware profile",
                  "value": {
                    "request_data": {
                      "edit_requests": [
                        {
                          "id": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
                          "name": "Updated Rule Name",
                          "malware_id": 42
                        }
                      ]
                    }
                  }
                },
                "update_target_filter": {
                  "summary": "Update target filter to match a specific hostname",
                  "value": {
                    "request_data": {
                      "edit_requests": [
                        {
                          "id": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
                          "target_filter": {
                            "filterData": {
                              "AND": [
                                {
                                  "field": "hostname",
                                  "operator": "EQ",
                                  "value": "DESKTOP-ABC123"
                                }
                              ]
                            }
                          }
                        }
                      ]
                    }
                  }
                },
                "multi_rule_edit": {
                  "summary": "Edit two rules in one request",
                  "value": {
                    "request_data": {
                      "edit_requests": [
                        {
                          "id": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
                          "exploit_id": 10,
                          "restrictions_id": 5
                        },
                        {
                          "id": "b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5",
                          "description": "Updated description"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "All requested edits were applied successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessResponse"
                },
                "example": {
                  "reply": true
                }
              }
            }
          },
          "400": {
            "description": "Bad request. Possible causes include:\n- Missing required parameters (for example, `edit_requests` or `id`).\n- Invalid field values (for example, incorrect type or empty string).\n- Invalid `target_filter` structure.\n- Unsupported filter field.\n- Invalid operator for the specified filter field.\n- Invalid value for the specified filter field.\n- Attempt to modify metadata or `target_filter` of the default (catch-all) rule.\n- Profile type does not match the expected type for the slot.\n- Profile OS does not match the rule's platform.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missing_edit_requests": {
                    "summary": "Missing edit_requests field",
                    "value": {
                      "reply": {
                        "err_code": 400,
                        "err_msg": "A mandatory parameter is missing.",
                        "err_extra": {
                          "field_name": "edit_requests"
                        }
                      }
                    }
                  },
                  "missing_id": {
                    "summary": "Missing rule id",
                    "value": {
                      "reply": {
                        "err_code": 400,
                        "err_msg": "A mandatory parameter is missing.",
                        "err_extra": {
                          "field_name": "id"
                        }
                      }
                    }
                  },
                  "invalid_filter_field": {
                    "summary": "Unsupported filter field",
                    "value": {
                      "reply": {
                        "err_code": 400,
                        "err_msg": "Invalid target filter fields in target filter",
                        "err_extra": {
                          "rule_id": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
                          "invalid_fields": [
                            "unsupported_field"
                          ]
                        }
                      }
                    }
                  },
                  "edit_not_allowed": {
                    "summary": "Attempt to edit default rule metadata",
                    "value": {
                      "reply": {
                        "err_code": 400,
                        "err_msg": "This policy rule edit operation is not allowed",
                        "err_extra": {
                          "rule_id": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
                          "reason": "Default rule metadata cannot be edited"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "A referenced rule ID or profile ID was not found.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "rule_not_found": {
                    "summary": "Rule ID not found",
                    "value": {
                      "reply": {
                        "err_code": 404,
                        "err_msg": "The specified rule was not found.",
                        "err_extra": {
                          "rule_id": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4"
                        }
                      }
                    }
                  },
                  "profile_not_found": {
                    "summary": "Profile ID not found",
                    "value": {
                      "reply": {
                        "err_code": 404,
                        "err_msg": "The profile ID was not found",
                        "err_extra": {
                          "rule_id": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
                          "profile_id": 99
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Stale data conflict. The policy was modified by another actor since it was last read. Retry the operation.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "reply": {
                    "err_code": 409,
                    "err_msg": "The policy update failed because the policy was changed since the last read. Retry the operation.\n"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. The policy update failed for an unexpected reason, or the saved policy failed internal validation.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [],
  "tags": [
    {
      "name": "API Keys",
      "description": "APIs for managing API Keys"
    },
    {
      "name": "Asset groups",
      "description": "APIs for managing asset groups"
    },
    {
      "name": "Asset inventory",
      "description": "APIs for managing assets in the asset inventory"
    },
    {
      "name": "Attack surface management",
      "description": "APIs for attack surface management"
    },
    {
      "name": "Audit log",
      "description": "APIs for audit logs"
    },
    {
      "name": "Authentication settings",
      "description": "APIs for authentication settings, such as IdP and SSO"
    },
    {
      "name": "BIOCs",
      "description": "APIs for managing BIOCs"
    },
    {
      "name": "Cases",
      "description": "APIs for managing cases"
    },
    {
      "name": "Correlation Rules",
      "description": "APIs for managing Correlation Rules"
    },
    {
      "name": "Cortex CLI",
      "description": "APIs for managing the Cortex CLI"
    },
    {
      "name": "Dashboards",
      "description": "APIs for managing Dashboards"
    },
    {
      "name": "Dataset Management",
      "description": "APIs for managing datasets"
    },
    {
      "name": "Endpoint Management",
      "description": "APIs for managing endpoints"
    },
    {
      "name": "Indicator rules",
      "description": "APIs for managing indicator rules"
    },
    {
      "name": "IOCs",
      "description": "APIs for managing IOCs"
    },
    {
      "name": "Issues",
      "description": "APIs for managing issues"
    },
    {
      "name": "Lookup Datasets",
      "description": "APIs for lookup datasets"
    },
    {
      "name": "Playbooks",
      "description": "APIs for managing playbooks"
    },
    {
      "name": "Query Library",
      "description": "APIs for managing XQL query libraries"
    },
    {
      "name": "Response Action",
      "description": "APIs for response actions"
    },
    {
      "name": "Rules",
      "description": "APIs for managing rules"
    },
    {
      "name": "Scheduled Queries",
      "description": "APIs for managing scheduled queries"
    },
    {
      "name": "Script execution",
      "description": "APIs executing script"
    },
    {
      "name": "Scripts",
      "description": "APIs for managing scripts"
    },
    {
      "name": "Syslog servers",
      "description": "APIs for managing syslog servers"
    },
    {
      "name": "System management",
      "description": "APIs for system management"
    },
    {
      "name": "War Room",
      "description": "APIs for War Room entries"
    },
    {
      "name": "Widgets",
      "description": "APIs for managing widgets"
    },
    {
      "name": "XQL query",
      "description": "Run XQL queries on your data sources using a series of APIs."
    },
    {
      "name": "XQL user datasets",
      "description": "APIs for managing XQL user datasets."
    }
  ],
  "components": {
    "securitySchemes": {},
    "responses": {
      "UNPROCESSABLE_ENTITY": {
        "description": "Unprocessable Entity",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "BadRequest": {
        "description": "Bad request",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "example": "Invalid request data"
                }
              }
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Unauthorized access",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "example": "Unauthorized request"
                }
              }
            }
          }
        }
      },
      "InternalError": {
        "description": "Internal server error",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "example": "Internal server error"
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "reply": {
        "type": "object",
        "title": "reply",
        "description": "The query result upon error.",
        "properties": {
          "err_code": {
            "type": "string",
            "description": "HTTP response code."
          },
          "err_msg": {
            "type": "string",
            "description": "Error message.",
            "example": "{\"line\": 1, \"column\": 19, \"message\": \"no viable alternative at input '|alter2'\"}"
          },
          "err_extra": {
            "type": "string",
            "description": "Additional information describing the error."
          }
        }
      },
      "violation": {
        "type": "object",
        "title": "violation",
        "properties": {
          "hostname": {
            "type": "string"
          },
          "username": {
            "type": "string"
          },
          "ip": {
            "type": "string"
          },
          "timestamp": {
            "type": "integer"
          },
          "violation_id": {
            "type": "integer"
          },
          "type": {
            "type": "string"
          },
          "vendor_id": {
            "type": "string"
          },
          "vendor": {
            "type": "string"
          },
          "product_id": {
            "type": "string"
          },
          "product": {
            "type": "string"
          },
          "serial": {
            "type": "string"
          },
          "endpoint_id": {
            "type": "string"
          }
        },
        "x-examples": {
          "example-1": {
            "hostname": "<host name>",
            "username": "test",
            "ip": "<IP address>",
            "timestamp": 1576260019000,
            "violation_id": 11,
            "type": "Disk Drive",
            "vendor_id": "<vendor ID>",
            "vendor": "<vendor name>",
            "product_id": "<product ID>",
            "product": "<product name>",
            "serial": "<serial number>",
            "endpoint_id": "<endpoint ID>"
          }
        }
      },
      "GetAttackSurfaceRulesRequest": {
        "type": "object",
        "properties": {
          "request_data": {
            "$ref": "#/components/schemas/GetAttackSurfaceRulesRequestData"
          }
        },
        "required": [
          "request_data"
        ]
      },
      "GetAttackSurfaceRulesRequestData": {
        "type": "object",
        "description": "(Required) A dictionary containing the API request fields.<br />An empty dictionary returns all results.",
        "properties": {
          "filters": {
            "type": "array",
            "description": "Provides an array of filtered fields. Each JSON object can contain the following keywords:\n  - field\n  - operators\n  - value\n",
            "items": {
              "$ref": "#/components/schemas/AttackSurfaceRulesFilter"
            }
          },
          "search_from": {
            "type": "integer",
            "description": "An integer representing the starting offset within the query result set from which you want attack surface rules returned",
            "minimum": 0,
            "default": 0
          },
          "search_to": {
            "type": "integer",
            "description": "An integer representing the end offset within the result set after which you do not want attack surface rules returned. <br />Attack surface rules in the alerts list that are indexed higher than this value are not returned in the final results set.",
            "minimum": 0,
            "default": 500
          },
          "sort": {
            "$ref": "#/components/schemas/GetAttackSurfaceRulesSort"
          }
        }
      },
      "AttackSurfaceRulesFilter": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "enum": [
              "attack_surface_rule_id",
              "category",
              "priority",
              "enabled_status",
              "asm_alert_categories"
            ],
            "description": "Identifies the alert field the filter is matching. Filters are based on the following keywords:\n  - enabled_status\n  - category\n  - priority\n  - attack_surface_rule_id\n  - asm_alert_categories\n"
          },
          "operator": {
            "type": "string",
            "enum": [
              "in"
            ],
            "description": "String that identifies the comparison operator you want to use for this filter. \n  - in\n"
          },
          "value": {
            "description": "Value that this filter must match. The contents of this field will differ depending on the alert field that you specified for this filter",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        }
      },
      "GetAttackSurfaceRulesSort": {
        "type": "object",
        "description": "Identifies the sort order for the result set. By default, the sort is defined as created, DESC.",
        "properties": {
          "field": {
            "type": "string",
            "enum": [
              "enabled_status",
              "priority",
              "category",
              "attack_surface_rule_id",
              "attack_surface_rule_name",
              "created"
            ],
            "default": "created"
          },
          "keyword": {
            "type": "string",
            "enum": [
              "ASC",
              "asc",
              "DESC",
              "desc"
            ],
            "description": "Can either be ASC (ascending order) or DESC (descending order).",
            "default": "desc"
          }
        }
      },
      "GetAttackSurfaceRulesResponse": {
        "type": "object",
        "properties": {
          "reply": {
            "$ref": "#/components/schemas/AttackSurfaceRulesPage"
          }
        },
        "required": [
          "reply"
        ]
      },
      "AttackSurfaceRulesPage": {
        "type": "object",
        "properties": {
          "total_count": {
            "type": "integer",
            "minimum": 0
          },
          "result_count": {
            "type": "integer",
            "minimum": 0
          },
          "attack_surface_rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AttackSurfaceRule"
            }
          }
        },
        "required": [
          "total_count",
          "result_count",
          "attack_surface_rules"
        ]
      },
      "AttackSurfaceRule": {
        "type": "object",
        "properties": {
          "attack_surface_rule_name": {
            "type": "string"
          },
          "enabled_status": {
            "type": "string"
          },
          "priority": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "attack_surface_rule_id": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "knowledge_base_link": {
            "type": "string"
          },
          "created": {
            "type": "integer"
          },
          "modified": {
            "type": "integer"
          },
          "modified_by": {
            "type": "string"
          },
          "remediation_guidance": {
            "type": "string"
          },
          "asm_alert_categories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "attack_surface_rule_name",
          "enabled_status",
          "priority",
          "description",
          "attack_surface_rule_id",
          "category",
          "created",
          "modified",
          "remediation_guidance",
          "asm_alert_categories"
        ]
      },
      "DefaultApiErrorResponse": {
        "type": "object",
        "properties": {
          "reply": {
            "description": "The query results upon error.",
            "allOf": [
              {
                "$ref": "#/components/schemas/GenericReply"
              }
            ]
          }
        },
        "required": [
          "reply"
        ]
      },
      "GenericReply": {
        "type": "object",
        "properties": {
          "err_code": {
            "type": "string",
            "description": "HTTP response code."
          },
          "err_msg": {
            "type": "string",
            "description": "Error message."
          },
          "err_extra": {
            "type": "string",
            "description": "Additional information describing the error."
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "Error code"
          },
          "status": {
            "type": "string",
            "description": "Error name"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          },
          "errors": {
            "type": "object",
            "description": "Errors"
          }
        }
      },
      "VersionObj": {
        "title": "VersionObj",
        "type": "object",
        "required": [
          "version"
        ],
        "properties": {
          "version": {
            "type": "string",
            "description": "Cortex CLI version",
            "example": "v1.2.3"
          }
        }
      },
      "NormalizedFields": {
        "type": "object",
        "properties": {
          "xdm.source.location.country": {
            "type": "string",
            "example": "US"
          },
          "xdm.source.ipv4": {
            "type": "string",
            "example": "192.168.1.1"
          },
          "xdm.source.host.ipv4_addresses": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "192.168.1.2",
              "192.168.1.3"
            ]
          },
          "xdm.source.identity.username": {
            "type": "string",
            "example": "admin"
          },
          "xdm.source.process.causality_id": {
            "type": "string",
            "example": "abc123"
          },
          "xdm.source.process.command_line": {
            "type": "string",
            "example": "/usr/bin/process -arg1 -arg2"
          },
          "xdm.source.process.executable.filename": {
            "type": "string",
            "example": "process_executable"
          },
          "xdm.source.process.name": {
            "type": "string",
            "example": "process_name"
          },
          "xdm.source.process.executable.path": {
            "type": "string",
            "example": "/usr/bin/process_executable"
          },
          "xdm.source.process.executable.sha256": {
            "type": "string",
            "example": "f9c7b6e24f7e93d8d3e5c76f8b1b88cd8f17b34a7a4a2e3d5b2dbf09f5b8fdc2"
          },
          "xdm.source.host.hostname": {
            "type": "string",
            "example": "hostname1"
          },
          "xdm.source.host.os_family": {
            "type": "string",
            "example": "Linux"
          },
          "xdm.source.agent.identifier": {
            "type": "string",
            "example": "agent123"
          },
          "xdm.source.agent.installation_id": {
            "type": "string",
            "example": "installation123"
          },
          "xdm.source.host.fqdn": {
            "type": "string",
            "example": "hostname1.domain.com"
          },
          "xdm.source.process.executable.signature_status": {
            "type": "string",
            "example": "Valid"
          },
          "xdm.target.file.filename": {
            "type": "string",
            "example": "target_file.txt"
          },
          "xdm.target.module.filename": {
            "type": "string",
            "example": "target_module.so"
          },
          "xdm.target.file.sha256": {
            "type": "string",
            "example": "d4bfc6fabe8d6d1b76e5b441dc8d01758276281f56c929b282ac5c3ee704c431"
          },
          "xdm.target.module.sha256": {
            "type": "string",
            "example": "7f4eafdad74bfedabf370a3725a5077c"
          },
          "xdm.target.process.command_line": {
            "type": "string",
            "example": "/usr/bin/target_process -option"
          },
          "xdm.target.process.executable.sha256": {
            "type": "string",
            "example": "7b21d50d6270f95b5a2cf582bf94b315cd75a034dd9478c0e5b4089bbd9b59ac"
          },
          "xdm.target.process.executable.signature_status": {
            "type": "string",
            "example": "Signed"
          },
          "xdm.target.process.executable.signer": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "xdm.target.process.executable.path": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "xdm.target.ipv4": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "xdm.target.host.ipv4_addresses": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "10.0.0.2",
              "10.0.0.3"
            ]
          },
          "xdm.target.host.ipv6_addresses": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "xdm.target.ipv6": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "10.0.0.2",
              "10.0.0.3"
            ]
          },
          "xdm.target.port": {
            "type": "integer",
            "example": 8080
          },
          "xdm.target.location.country": {
            "type": "string",
            "example": "US"
          },
          "xdm.target.host.hostname": {
            "type": "string",
            "example": "hostname"
          },
          "xdm.target.identity.username": {
            "type": "string",
            "example": "user1"
          },
          "xdm.target.url": {
            "type": "string",
            "example": "https://example.com"
          },
          "xdm.target.process.executable.filename": {
            "type": "string",
            "example": "target_process"
          },
          "xdm.target.process.name": {
            "type": "string",
            "example": "target_process"
          },
          "xdm.target.agent.identifier": {
            "type": "string",
            "example": "target_agent"
          },
          "xdm.target.registry.value": {
            "type": "string",
            "example": "registry_value"
          },
          "xdm.target.registry.data": {
            "type": "string",
            "example": "registry_data"
          },
          "xdm.target.registry.key": {
            "type": "string",
            "example": "registry_key"
          },
          "xdm.email.attachment.sha256": {
            "type": "string",
            "example": "a1b2c3d4e5f6789abcde1234567890f2"
          },
          "xdm.email.attachment.filename": {
            "type": "string",
            "example": "attachment.pdf"
          },
          "xdm.email.sender": {
            "type": "string",
            "example": "sender@example.com"
          },
          "xdm.event.type": {
            "type": "string",
            "example": "Intrusion"
          },
          "xdm.cloud.provider": {
            "type": "string",
            "example": "AWS"
          },
          "xdm.cloud.project": {
            "type": "string",
            "example": "CloudProject1"
          },
          "xdm.cloud.project_id": {
            "type": "string",
            "example": "cloud_project_id_123"
          },
          "xdm.cloud.region": {
            "type": "string",
            "example": "us-east-1"
          },
          "xdm.cloud.function.id": {
            "type": "string",
            "example": "cloud_func_123"
          },
          "xdm.cloud.function.name": {
            "type": "string",
            "example": "cloud_function"
          },
          "xdm.cloud.function.version": {
            "type": "string",
            "example": "v1.0.0"
          },
          "xdm.cloud.function.request_id": {
            "type": "string",
            "example": "req_123"
          },
          "xdm.cloud.function.runtime": {
            "type": "string",
            "example": "nodejs"
          },
          "xdm.observer.unique_identifier": {
            "type": "string",
            "example": "observer123"
          },
          "xdm.observer.type": {
            "type": "string",
            "example": "Server"
          },
          "xdm.observer.sub_type": {
            "type": "string",
            "example": "Linux"
          },
          "xdm.observer.name": {
            "type": "string",
            "example": "Observer 1"
          },
          "xdm.vulnerability.cve_id": {
            "type": "string",
            "example": "CVE-2021-12345"
          },
          "xdm.vulnerability.severity": {
            "type": "string",
            "enum": [
              "INFO",
              "LOW",
              "MEDIUM",
              "HIGH",
              "CRITICAL"
            ],
            "example": "HIGH"
          },
          "xdm.vulnerability.fix_versions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "1.0.1",
              "1.0.2"
            ]
          },
          "xdm.vulnerability.cve_risk_factors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "Exploitability",
              "Impact"
            ]
          },
          "xdm.vulnerability.cvss_score": {
            "type": "number",
            "format": "float",
            "example": 7.8
          },
          "xdm.vulnerability.cvss_vector": {
            "type": "string",
            "example": "AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
          },
          "xdm.software_package.version": {
            "type": "string",
            "example": "1.0.0"
          },
          "xdm.software_package.purl": {
            "type": "string",
            "example": "pkg:maven/com.example/software@1.0.0"
          },
          "xdm.software_package.layer_id": {
            "type": "string",
            "example": "layer123"
          },
          "xdm.software_package.type": {
            "type": "string",
            "example": "Library"
          },
          "xdm.software_package.installation_type": {
            "type": "string",
            "example": "Automatic"
          },
          "xdm.software_package.package_manager": {
            "type": "string",
            "example": "npm"
          },
          "xdm.software_package.dependency_type": {
            "type": "string",
            "example": "Direct"
          },
          "xdm.software_package.language": {
            "type": "string",
            "example": "JavaScript"
          },
          "xdm.malware.verdict": {
            "type": "string",
            "example": "Malicious"
          },
          "xdm.malware.virus_total_link": {
            "type": "string",
            "example": "https://www.virustotal.com/gui/file/abcd1234"
          },
          "xdm.malware.layer_id": {
            "type": "string",
            "example": "malware_layer123"
          },
          "xdm.secret.secret_type": {
            "type": "string",
            "example": "API Key"
          },
          "xdm.secret.unique_identifier": {
            "type": "string",
            "example": "secret_id_123"
          },
          "xdm.secret.snippet": {
            "type": "string",
            "example": "API Key: 12345"
          },
          "xdm.secret.layer_id": {
            "type": "string",
            "example": "secret_layer123"
          },
          "xdm.file.filename": {
            "type": "string",
            "example": "file.txt"
          },
          "xdm.file.path": {
            "type": "string",
            "example": "/path/to/file.txt"
          },
          "xdm.file.sha256": {
            "type": "string",
            "example": "abc1234567890def0987654321"
          },
          "xdm.file.size": {
            "type": "integer",
            "example": 1024
          },
          "xdm.file.last_modified": {
            "type": "integer",
            "example": 1615465123
          },
          "xdm.file.metadata_change_time": {
            "type": "integer",
            "example": 1615465000
          },
          "xdm.file.owner_id": {
            "type": "string",
            "example": "user1"
          },
          "xdm.file.owner_name": {
            "type": "string",
            "example": "fileowner"
          },
          "xdm.file.group_id": {
            "type": "string",
            "example": "group1"
          },
          "xdm.file.group_name": {
            "type": "string",
            "example": "groupname"
          },
          "xdm.file.permissions.owner": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "read",
              "write"
            ]
          },
          "xdm.file.permissions.group": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "read"
            ]
          },
          "xdm.file.permissions.others": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "read"
            ]
          },
          "xdm.file.position.start.line": {
            "type": "integer",
            "example": 1
          },
          "xdm.file.position.start.character": {
            "type": "integer",
            "example": 0
          },
          "xdm.file.position.end.line": {
            "type": "integer",
            "example": 100
          },
          "xdm.file.position.end.character": {
            "type": "integer",
            "example": 80
          },
          "xdm.url": {
            "type": "string",
            "example": "https://example.com"
          },
          "xdm.domain": {
            "type": "string",
            "example": "example.com"
          },
          "xdm.application_protocol": {
            "type": "string",
            "example": "HTTPS"
          }
        }
      },
      "GetDataRequest": {
        "type": "object",
        "description": "Request body containing pagination, sorting, and filtering parameters.",
        "additionalProperties": false,
        "properties": {
          "search_from": {
            "type": "integer",
            "minimum": 0,
            "default": 0,
            "description": "Starting index for pagination (zero-based). Defines the offset from which to begin returning results.",
            "example": 0
          },
          "search_to": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 100,
            "description": "Ending index for pagination (exclusive). Defines the maximum number of results to return (`search_to` - `search_from`). The maximum allowed value is <=100. Requests exceeding this limit will return a 400 error.",
            "example": 10
          },
          "sort": {
            "$ref": "#/components/schemas/SortingRequest"
          },
          "filters": {
            "type": "array",
            "description": "Array of filter conditions to apply. Multiple filters are combined with either `AND` or `OR` logic.",
            "items": {
              "$ref": "#/components/schemas/FilterRequest"
            }
          }
        }
      },
      "SortingRequest": {
        "type": "object",
        "description": "Sorting criteria for query results.",
        "additionalProperties": false,
        "required": [
          "field",
          "keyword"
        ],
        "properties": {
          "field": {
            "type": "string",
            "minLength": 1,
            "description": "The field name to filter on. Available fields include:\n- `distribution_id`\n- `name`\n- `description`\n- `package_type`\n- `platform`\n- `agent_version`\n- `status`",
            "example": "distribution_id"
          },
          "keyword": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ],
            "description": "Determines the sort order.",
            "example": "desc"
          }
        }
      },
      "FilterRequest": {
        "type": "object",
        "description": "Filter condition to apply to the query",
        "additionalProperties": false,
        "required": [
          "field",
          "operator",
          "value"
        ],
        "properties": {
          "field": {
            "type": "string",
            "minLength": 1,
            "description": "The field name to filter on. Available fields include:\n- `distribution_id`\n- `name`\n- `description`\n- `package_type`\n- `platform`\n- `agent_version`\n- `status`\n",
            "example": "platform"
          },
          "operator": {
            "type": "string",
            "minLength": 1,
            "description": "Comparison operator to use for filtering.\n**Note:** The `package_type`, `platform`, and `status` fields are **enum** types and therefore do not support the `contains` or `not_contains` filter operators.\n",
            "enum": [
              "eq",
              "neq",
              "contains",
              "not_contains"
            ],
            "example": "eq"
          },
          "value": {
            "description": "The value to compare against. Type should match the field type.\nCan be a string or number depending on the operator.\n**Examples:**\n* If the `field` is `status`, the `value` can be `completed`, `in_progress`, or `failed`\n* If the `field` is `platform`, the `value` can be a string such as `windows`, `macos`, `ios`, `serverless`, or `linux`\n* If the `field` is `package_type`, the `value` can be `standalone`, `kubernetes`, `upgrade`, or `helm` ",
            "oneOf": [
              {
                "type": "string",
                "example": "ios",
                "nullable": true
              },
              {
                "type": "integer",
                "nullable": true
              }
            ],
            "example": "linux"
          }
        }
      },
      "PublicGetDataResponse": {
        "type": "object",
        "description": "Response object containing the list of distributions and metadata",
        "required": [
          "reply"
        ],
        "properties": {
          "reply": {
            "type": "object",
            "description": "Container object for the response data",
            "properties": {
              "data": {
                "type": "array",
                "description": "Array of distribution objects matching the filter criteria",
                "items": {
                  "$ref": "#/components/schemas/Distribution"
                }
              },
              "filter_count": {
                "type": "integer",
                "description": "Number of distributions returned in the current response after applying filters.",
                "example": 1
              },
              "total_count": {
                "type": "integer",
                "description": "Total number of distributions available in the system without filters.",
                "example": 10
              }
            }
          }
        },
        "x-examples": {
          "Example 1": {
            "reply": {
              "data": [
                {
                  "distribution_id": "068bcaad02974ac5b223bfa786e7573c",
                  "name": "macos-369121",
                  "description": "Production-ready macos agent installer with enhanced monitoring capabilities",
                  "package_type": "standalone",
                  "platform": "macos",
                  "agent_version": "9.1.0.9877",
                  "status": "completed",
                  "tags": [
                    "production",
                    "stable"
                  ],
                  "eol_time": 1735689600,
                  "created_by": "John Doe",
                  "creation_time": 1704067200,
                  "modification_time": 1704153600,
                  "supported_packages": [
                    "pkg"
                  ]
                }
              ],
              "filter_count": 1,
              "total_count": 10
            }
          }
        }
      },
      "Distribution": {
        "type": "object",
        "description": "Represents an agent distribution package/installer",
        "properties": {
          "distribution_id": {
            "type": "string",
            "description": "Unique identifier for the distribution",
            "example": "068bcaad02974ac5b223bfa786e7573c"
          },
          "name": {
            "type": "string",
            "description": "Human-readable name of the distribution",
            "example": "macos-369121"
          },
          "description": {
            "type": "string",
            "description": "Detailed description of the distribution, its features, or release notes",
            "example": "Production-ready macos agent installer with enhanced monitoring capabilities",
            "nullable": true
          },
          "package_type": {
            "type": "string",
            "description": "Type of installation package",
            "example": "standalone"
          },
          "platform": {
            "type": "string",
            "description": "Target operating system or platform",
            "example": "macos"
          },
          "agent_version": {
            "type": "string",
            "description": "Version number of the agent in semantic versioning format",
            "example": "9.1.0.9877"
          },
          "status": {
            "type": "string",
            "description": "Current lifecycle status of the distribution.",
            "example": "completed"
          },
          "tags": {
            "type": "array",
            "description": "Array of tags for categorization and filtering",
            "example": [
              "production",
              "stable"
            ],
            "items": {
              "type": "string"
            }
          },
          "eol_time": {
            "type": "integer",
            "format": "int64",
            "description": "Unix timestamp in milliseconds (UTC) indicating the date and time when the resource reaches End-of-Life (EOL).",
            "example": 1735689600,
            "nullable": true
          },
          "created_by": {
            "type": "string",
            "description": "Name of the user or API Key ID that created the distribution.",
            "example": "John Doe"
          },
          "creation_time": {
            "type": "integer",
            "description": "Unix timestamp (milliseconds) when the distribution was created.",
            "example": 1704067200
          },
          "modification_time": {
            "type": "integer",
            "description": "Unix timestamp (milliseconds) when the distribution was modified.",
            "example": 1704153600
          },
          "supported_packages": {
            "type": "array",
            "description": "List of package formats supported by this distribution",
            "example": [
              "pkg"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Artifact": {
        "type": "object",
        "properties": {
          "artifact_id": {
            "type": "string",
            "description": "Unique identifier for the artifact",
            "example": "A12345"
          },
          "file_name": {
            "type": "string",
            "description": "File name for the artifact",
            "example": "test"
          },
          "file_sha256": {
            "type": "string",
            "description": "File sha256 for the artifact",
            "example": "1111"
          },
          "file_signature_status": {
            "type": "string",
            "description": "File signature for the artifact",
            "example": "SIGNATURE_UNAVAILABLE"
          },
          "file_wildfire_verdict": {
            "type": "string",
            "description": "File wildfire verdict for the artifact",
            "example": "BENIGN"
          },
          "is_malicious": {
            "type": "boolean",
            "description": "Indicates if the artifact is malicious",
            "example": true
          },
          "is_manual": {
            "type": "boolean",
            "description": "Indicates if the artifact is manual",
            "example": false
          },
          "is_process": {
            "type": "boolean",
            "description": "Indicates if the artifact is related_to_process",
            "example": false
          },
          "low_confidence": {
            "type": "boolean",
            "description": "Indicates the artifact confidence",
            "example": false
          },
          "type": {
            "type": "string",
            "description": "Type of the artifact",
            "example": "HASH"
          }
        }
      },
      "AndFilterForGroups": {
        "required": [
          "AND"
        ],
        "type": "object",
        "properties": {
          "AND": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FilterConditionForGroups"
            }
          }
        }
      },
      "OrFilterForGroups": {
        "required": [
          "OR"
        ],
        "type": "object",
        "properties": {
          "AND": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FilterConditionForGroups"
            }
          }
        }
      },
      "AndFilter": {
        "required": [
          "AND"
        ],
        "type": "object",
        "properties": {
          "AND": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FilterCondition"
            }
          }
        }
      },
      "OrFilter": {
        "required": [
          "OR"
        ],
        "type": "object",
        "properties": {
          "OR": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FilterCondition"
            }
          }
        }
      },
      "Sort": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/SortObject"
        }
      },
      "SortForGroups": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/SortObjectForGroups"
        }
      },
      "SortObjectForGroups": {
        "type": "object",
        "properties": {
          "FIELD": {
            "type": "string",
            "example": "XDM.ASSET_GROUP.LAST_UPDATE_TIME"
          },
          "ORDER": {
            "type": "string",
            "example": "DESC",
            "enum": [
              "DESC",
              "ASC"
            ]
          }
        }
      },
      "SortObject": {
        "type": "object",
        "properties": {
          "FIELD": {
            "type": "string",
            "example": "xdm.asset.name",
            "description": "The field according to which you want the results to be sorted."
          },
          "ORDER": {
            "type": "string",
            "example": "DESC",
            "enum": [
              "DESC",
              "ASC"
            ],
            "description": "Sort order. Valid values include:\n- `ASC` (ascending order)\n- `DESC` (descending order)"
          }
        }
      },
      "FilterCondition": {
        "type": "object",
        "properties": {
          "SEARCH_FIELD": {
            "type": "string",
            "example": "xdm.asset.type.class",
            "description": "The field you want to filter."
          },
          "SEARCH_TYPE": {
            "type": "string",
            "example": "NEQ",
            "enum": [
              "EQ",
              "NEQ",
              "GT",
              "LT",
              "GTE",
              "LTE",
              "IN",
              "NIN",
              "RLIKE",
              "NRLIKE",
              "WILDCARD",
              "WILDCARD_NOT",
              "CONTAINS",
              "NCONTAINS",
              "IP_MATCH",
              "NIP_MATCH",
              "ARRAY_CONTAINS",
              "ARRAY_NOT_CONTAINS",
              "IS_EMPTY",
              "NIS_EMPTY",
              "REGEX",
              "REGEX_NOT",
              "REGEX_MATCH",
              "REGEX_NOT_MATCH",
              "IPLIST_MATCH",
              "NLISTIP_MATCH",
              "INCIDR",
              "NINCIDR",
              "INCIDR6",
              "NINCIDR6",
              "RANGE",
              "RELATIVE_TIMESTAMP",
              "JSON_OVERLAPS",
              "JSON_ARRAY_CONTAINED_IN",
              "JSON_IS_NOT_EMPTY"
            ],
            "description": "The operator to apply to the `SEARCH_FIELD`. It defines how the `SEARCH_VALUE` will be used to evaluate the `SEARCH_FIELD`."
          },
          "SEARCH_VALUE": {
            "example": "Other",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "boolean"
              },
              {
                "type": "integer"
              },
              {
                "type": "object"
              }
            ],
            "description": "The value that the `SEARCH_FIELD` will be compared to, based on the `SEARCH_TYPE` operator.\nValid values include: EQ`, `IN`, `NIN`, `NEQ`, `IS`, `IS_NOT`, `LIKE_ANY`, `NOT_LIKE_ANY`, `WILDCARD`, `WILDCARD_NOT`, `REGEX`, `REGEX_NOT`, `GT`, `LT`, `GTE`, `LTE`, `RELATIVE_TIMESTAMP`, `RANGE`, `CONTAINS`, `JSON_SEARCH`, `JSON_OVERLAPS`, `JSON_OVERLAPS_NOT`, `NCONTAINS`, `CONTAINS_IN_LIST`, `NOT_CONTAINS_IN_LIST`, `ARRAY_LEN_EQ`, `ARRAY_LEN_NEQ`, `ARRAY_CONTAINS`, `ARRAY_CONTAINS_NUMBERS`, `ARRAY_NOT_CONTAINS`, `JSON_EQ`, `JSON_NEQ`, `JSON_WILDCARD_NOT`, `JSON_WILDCARD`, `JSON_GTE`, `JSON_LTE`, `JSON_GT`, `JSON_LT`, `JSON_CONTAINS_NOT`, `JSON_CONTAINS`, `JSON_ARRAY_CONTAINED_IN`, `JSON_ARRAY_NOT_CONTAINED_IN`, `JSON_ARRAY_CONTAINS`, `JSON_ARRAY_CONTAINS_NOT`, `JSON_IS_EMPTY`, `JSON_IS_NOT_EMPTY`"
          }
        }
      },
      "FilterConditionForGroups": {
        "type": "object",
        "properties": {
          "SEARCH_FIELD": {
            "type": "string",
            "example": "XDM.ASSET_GROUP.TYPE"
          },
          "SEARCH_TYPE": {
            "type": "string",
            "example": "EQ",
            "enum": [
              "EQ",
              "NEQ",
              "GT",
              "LT",
              "GTE",
              "LTE",
              "IN",
              "NIN",
              "RLIKE",
              "NRLIKE",
              "WILDCARD",
              "WILDCARD_NOT",
              "CONTAINS",
              "NCONTAINS",
              "IP_MATCH",
              "NIP_MATCH",
              "ARRAY_CONTAINS",
              "ARRAY_NOT_CONTAINS",
              "IS_EMPTY",
              "NIS_EMPTY",
              "REGEX",
              "REGEX_NOT",
              "REGEX_MATCH",
              "REGEX_NOT_MATCH",
              "IPLIST_MATCH",
              "NLISTIP_MATCH",
              "INCIDR",
              "NINCIDR",
              "INCIDR6",
              "NINCIDR6",
              "RANGE",
              "RELATIVE_TIMESTAMP",
              "JSON_OVERLAPS",
              "JSON_ARRAY_CONTAINED_IN",
              "JSON_IS_NOT_EMPTY"
            ]
          },
          "SEARCH_VALUE": {
            "example": "Dynamic",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "boolean"
              },
              {
                "type": "integer"
              }
            ]
          }
        }
      },
      "AssetGroup": {
        "type": "object",
        "properties": {
          "group_name": {
            "type": "string",
            "description": "Asset Group name"
          },
          "group_type": {
            "type": "string",
            "enum": [
              "Dynamic",
              "Static"
            ],
            "description": "The type of Asset Group. Valid values include:\n- `Dynamic`: Assets grouped using filters. Any asset that meets the defined criteria is included.\n- `Static`: Manually add individual assets to be included in a group."
          },
          "group_description": {
            "type": "string",
            "description": "Add an optional description to clarify the purpose of the Asset Group."
          },
          "membership_predicate": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AndFilter"
              },
              {
                "$ref": "#/components/schemas/OrFilter"
              }
            ],
            "description": "Define the filter conditions for selecting which assets to be included in a dynamic Asset Group."
          }
        }
      },
      "GenericErrorResponse": {
        "type": "object",
        "properties": {
          "err_code": {
            "type": "integer",
            "example": 500
          },
          "err_msg": {
            "type": "string",
            "example": "An unexpected behavior occurred by Cortex Pubic API"
          },
          "err_extra": {
            "type": "string"
          }
        }
      },
      "NotFoundErrorResponse": {
        "type": "object",
        "properties": {
          "err_code": {
            "type": "integer",
            "example": 404
          },
          "err_msg": {
            "type": "string",
            "example": "An unexpected behavior occurred by Cortex Pubic API"
          },
          "err_extra": {
            "type": "string"
          }
        }
      },
      "UnauthorizedErrorResponse": {
        "type": "object",
        "properties": {
          "err_code": {
            "type": "integer",
            "example": 403
          },
          "err_msg": {
            "type": "string",
            "example": "Forbidden. Access was denied to this resource."
          },
          "err_extra": {
            "type": "string"
          }
        }
      },
      "GenericAssetGroupsResponse": {
        "type": "object",
        "properties": {
          "reply": {
            "$ref": "#/components/schemas/GenericAssetGroupsResponse_reply"
          }
        }
      },
      "CreateAssetGroupResponse": {
        "type": "object",
        "properties": {
          "reply": {
            "$ref": "#/components/schemas/CreateAssetGroupResponse_reply"
          }
        }
      },
      "GenericApiResponse": {
        "type": "object",
        "properties": {
          "reply": {
            "$ref": "#/components/schemas/GenericApiResponse_reply"
          }
        }
      },
      "SchemaField": {
        "type": "object",
        "properties": {
          "field_name": {
            "type": "string",
            "example": "xdm.asset.id",
            "description": "Data model field name"
          },
          "field_pretty_name": {
            "type": "string",
            "example": "Asset ID",
            "description": "Data model pretty field name"
          },
          "data_type": {
            "type": "string",
            "enum": [
              "TEXT",
              "ENUM",
              "INT",
              "JSON",
              "BOOLEAN",
              "TIMESTAMP",
              "FLOAT"
            ],
            "description": "Data type"
          }
        }
      },
      "EnumField": {
        "type": "object",
        "properties": {
          "NAME": {
            "type": "string",
            "example": "APPLICATION"
          },
          "PRETTY_NAME": {
            "type": "string",
            "example": "Application"
          }
        }
      },
      "GetSchemaResponse": {
        "type": "object",
        "properties": {
          "reply": {
            "$ref": "#/components/schemas/GetSchemaResponse_reply"
          }
        }
      },
      "EnumValuesResponse": {
        "type": "object",
        "properties": {
          "reply": {
            "$ref": "#/components/schemas/EnumValuesResponse_reply"
          }
        }
      },
      "assets_body": {
        "type": "object",
        "x-examples": {
          "Example 1": {
            "on_demand_fields": [],
            "filters": {
              "AND": [
                {
                  "SEARCH_FIELD": "<field_name>",
                  "SEARCH_TYPE": "<operator>",
                  "SEARCH_VALUE": "<value>"
                }
              ]
            },
            "sort": [
              {
                "FIELD": "<field_name>",
                "ORDER": "<order>"
              }
            ],
            "search_from": 0,
            "search_to": 50
          }
        },
        "properties": {
          "filters": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AndFilter"
              },
              {
                "$ref": "#/components/schemas/OrFilter"
              }
            ]
          },
          "on_demand_fields": {
            "type": "array",
            "items": {
              "type": "string",
              "example": "xdm.host.ipv4_addresses"
            }
          },
          "sort": {
            "$ref": "#/components/schemas/Sort"
          },
          "search_from": {
            "type": "integer",
            "description": "An integer representing the starting offset within the query result set from which you want assets returned."
          },
          "search_to": {
            "type": "integer",
            "example": 1000,
            "description": "An integer representing the end offset within the result set after which you do not want assets returned. <br />Assets in the asset inventory that are indexed higher than this value are not returned in the final results set."
          }
        }
      },
      "assetgroups_body": {
        "type": "object",
        "properties": {
          "request_data": {
            "type": "object",
            "properties": {
              "filters": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/AndFilterForGroups"
                  },
                  {
                    "$ref": "#/components/schemas/OrFilterForGroups"
                  }
                ]
              },
              "sort": {
                "$ref": "#/components/schemas/SortForGroups"
              },
              "search_from": {
                "type": "integer"
              },
              "search_to": {
                "type": "integer",
                "example": 1000
              }
            }
          }
        }
      },
      "assetgroups_create_body": {
        "type": "object",
        "properties": {
          "request_data": {
            "type": "object",
            "properties": {
              "asset_group": {
                "$ref": "#/components/schemas/AssetGroup"
              }
            }
          }
        }
      },
      "update_group_id_body": {
        "type": "object",
        "properties": {
          "request_data": {
            "type": "object",
            "properties": {
              "asset_group": {
                "$ref": "#/components/schemas/AssetGroup"
              }
            }
          }
        }
      },
      "GenericAssetGroupsResponse_reply_data": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          }
        }
      },
      "GenericAssetGroupsResponse_reply": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/GenericAssetGroupsResponse_reply_data"
          }
        }
      },
      "CreateAssetGroupResponse_reply_data": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Whether the Asset Group creation was successful"
          },
          "asset_group_id": {
            "type": "integer",
            "example": 1,
            "description": "ID of the new Asset Group"
          }
        }
      },
      "CreateAssetGroupResponse_reply": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CreateAssetGroupResponse_reply_data"
          }
        }
      },
      "GenericApiResponse_reply_metadata": {
        "type": "object",
        "properties": {
          "filter_count": {
            "type": "integer",
            "example": 1
          },
          "total_count": {
            "type": "integer",
            "example": 1000
          }
        }
      },
      "GenericApiResponse_reply": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "metadata": {
            "$ref": "#/components/schemas/GenericApiResponse_reply_metadata"
          }
        }
      },
      "GetSchemaResponse_reply": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SchemaField"
            }
          }
        }
      },
      "EnumValuesResponse_reply": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EnumField"
            }
          }
        }
      },
      "GetLegacyExceptionDataRequest": {
        "type": "object",
        "x-examples": {
          "Example 1": {
            "request_data": {
              "search_from": 0,
              "search_to": 10,
              "sort": {
                "field": "id",
                "keyword": "desc"
              },
              "filters": [
                {
                  "field": "status",
                  "operator": "eq",
                  "value": "ENABLED"
                },
                {
                  "field": "platform",
                  "operator": "eq",
                  "value": "Windows"
                }
              ]
            }
          }
        },
        "required": [
          "request_data"
        ],
        "properties": {
          "request_data": {
            "type": "object",
            "description": "Request body containing pagination, sorting, and filtering parameters.",
            "properties": {
              "search_from": {
                "type": "integer",
                "description": "Starting index for pagination (zero-based). Defines the offset from which to begin returning results.",
                "default": 0,
                "example": 0,
                "minimum": 0
              },
              "search_to": {
                "type": "integer",
                "description": "Ending index for pagination (exclusive). Defines the maximum number of results to return (search_to - search_from).",
                "minimum": 1,
                "default": 100,
                "example": 1
              },
              "sort": {
                "type": "object",
                "description": "Defines sorting criteria for query results.",
                "required": [
                  "field",
                  "keyword"
                ],
                "properties": {
                  "field": {
                    "type": "string",
                    "description": "Field name to sort by. ",
                    "example": "id"
                  },
                  "keyword": {
                    "description": "Determines the sort order.",
                    "type": "string",
                    "enum": [
                      "asc",
                      "desc"
                    ],
                    "example": "desc"
                  }
                }
              },
              "filters": {
                "type": "array",
                "description": "List of filter conditions. Multiple filters are combined with AND logic.",
                "items": {
                  "type": "object",
                  "required": [
                    "field",
                    "operator",
                    "value"
                  ],
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "The field name to filter on. For example, `id`, `rule_name`, `platform`, `status`, `created_by`, and `user_email`.",
                      "example": "id"
                    },
                    "operator": {
                      "type": "string",
                      "description": "The comparison operator. Currently, **all** the fields only support `eq`condition.",
                      "example": "eq"
                    },
                    "value": {
                      "type": "string",
                      "description": "The value to compare against. Type should match the field type.\nCan be a string or number depending on the operator.\n**Examples:**\n* If the `field` is `status`, the `value` can be `ENABLED` or `DISABLED`\n* If the `field` is `platform`, the `value` can be a string such as `Windows`, `macOS`, or `Linux`                \n",
                      "nullable": true
                    }
                  }
                }
              }
            }
          }
        },
        "description": ""
      },
      "AddLegacyExceptionDataRequest": {
        "type": "object",
        "x-examples": {},
        "x-internal": false,
        "description": "Request body for creating a legacy exception rule.",
        "required": [
          "name",
          "platform",
          "module",
          "profile_ids",
          "status",
          "scope",
          "conditions"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Name for the legacy exception rule.",
            "minLength": 1,
            "maxLength": 128
          },
          "platform": {
            "type": "string",
            "description": "Target platform for the exception. Must be one of the platforms supported by the chosen module (see [Get Legacy Exceptions Modules](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/endpoint-management#post-public_api-v1-legacy_exceptions-get_modules) endpoint response).",
            "example": "Windows"
          },
          "module": {
            "type": "integer",
            "description": "Numeric ID of the protection module to create the exception for. Get valid module IDs from [Get Legacy Exceptions Modules](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/endpoint-management#post-public_api-v1-legacy_exceptions-get_modules) endpoint.",
            "minimum": 1,
            "example": 1
          },
          "profile_ids": {
            "type": "array",
            "description": "List of prevention profile IDs this exception rule applies to. Use [Get endpoint security profiles](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/endpoint-management#post-public_api-v1-endpoints-get_profiles) endpoint to find existing profile IDs.\n- For `scope: PROFILE`: provide one or more profile IDs (e.g. `[29]`)\n- For `scope: GLOBAL`: must be an empty array `[]`",
            "items": {
              "type": "integer"
            }
          },
          "status": {
            "type": "string",
            "description": "Status of the rule.\nAllowed values: `ENABLED` or `DISABLED`."
          },
          "scope": {
            "type": "string",
            "description": "Scope of the exception:\n- `PROFILE` — exception applies to specific prevention profiles listed in `profile_ids`\n- `GLOBAL` — exception applies globally; `profile_ids` must be `[]` and the module must be an **Exception**-type module"
          },
          "description": {
            "type": "string",
            "description": "Optional description of the exception rule.",
            "nullable": true
          },
          "conditions": {
            "type": "object",
            "description": "The conditions structure depends on the chosen `module`. Use [Get Legacy Exceptions Modules](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/endpoint-management#post-public_api-v1-legacy_exceptions-get_modules) endpoint to get the `conditions_definition` for each module."
          }
        }
      },
      "EditLegacyExceptionDataRequest": {
        "type": "object",
        "x-examples": {},
        "description": "Request body for editing or updating an existing legacy exception rule.",
        "required": [
          "exception_id",
          "update_data"
        ],
        "properties": {
          "exception_id": {
            "type": "string",
            "description": "The ID of the legacy exception to edit. Corresponds to the `id` field returned by the fetch API."
          },
          "update_data": {
            "type": "object",
            "required": [
              "name",
              "platform",
              "module",
              "profile_ids",
              "status",
              "scope",
              "conditions"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Name for the legacy exception rule."
              },
              "platform": {
                "type": "string",
                "description": "Target platform for the exception. Must be one of the platforms supported by the chosen module (see [Get Legacy Exceptions Modules](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/endpoint-management#post-public_api-v1-legacy_exceptions-get_modules) endpoint response)."
              },
              "module": {
                "type": "integer",
                "description": "Numeric ID of the protection module to create the exception for. Get valid module IDs from [Get Legacy Exceptions Modules](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/endpoint-management#post-public_api-v1-legacy_exceptions-get_modules) endpoint."
              },
              "profile_ids": {
                "type": "array",
                "description": "List of prevention profile IDs this exception rule applies to. Use [Get endpoint security profiles](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/endpoint-management#post-public_api-v1-endpoints-get_profiles) endpoint to find existing profile IDs.\n- For `scope: PROFILE`: provide one or more profile IDs (e.g. `[29]`)\n- For `scope: GLOBAL`: must be an empty array `[]`",
                "items": {
                  "type": "integer"
                }
              },
              "status": {
                "type": "string",
                "description": "Status of the rule.\nAllowed values: `ENABLED` or `DISABLED`."
              },
              "scope": {
                "type": "string",
                "description": "Scope of the exception:\n- `PROFILE` — exception applies to specific prevention profiles listed in `profile_ids`\n- `GLOBAL` — exception applies globally; `profile_ids` must be `[]` and the module must be an **Exception**-type module"
              },
              "description": {
                "type": "string",
                "description": "Optional description of the exception rule."
              },
              "conditions": {
                "type": "object",
                "description": "The conditions structure depends on the chosen `module`. Use [Get Legacy Exceptions Modules](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/endpoint-management#post-public_api-v1-legacy_exceptions-get_modules) endpoint to get the `conditions_definition` for each module."
              }
            }
          }
        }
      },
      "GetPublicLegacyExceptionResponse": {
        "type": "object",
        "x-examples": {
          "Example 1": {
            "reply": {
              "DATA": [
                {
                  "id": "d9c06bfa3f9b45a7a0196244e68d181d",
                  "rule_name": "Test Legacy Exception Rule 1",
                  "platform": "Linux",
                  "conditions": "Process Name = Another test process AND Modules = Disable Injection OR Process Name = Test process AND Modules = Child Process Protection",
                  "module": 43,
                  "module_name": "Exceptions > Process Exceptions",
                  "description": "test rule 1",
                  "generating_alert_id": null,
                  "created_by": "John Doe",
                  "modification_time": 1772111647000,
                  "user_email": "john.doe@example.com",
                  "status": "ENABLED",
                  "profile_ids": [
                    27
                  ],
                  "associated_targets": [
                    "Any"
                  ],
                  "is_in_user_scope": true
                },
                {
                  "id": "0a2661779a2d4a87b051158ea47f0022",
                  "rule_name": "Test Legacy Exception Rule 2",
                  "platform": "Windows",
                  "conditions": "Remote IP Address : 192.168.1.45",
                  "module": 1,
                  "module_name": "Malware > Respond to Malicious Causality Chains",
                  "description": "test rule 2",
                  "generating_alert_id": null,
                  "created_by": "Jane Doe",
                  "modification_time": 1772089294000,
                  "user_email": "jane.doe@example.com",
                  "status": "ENABLED",
                  "profile_ids": [
                    29
                  ],
                  "associated_targets": [],
                  "is_in_user_scope": true
                }
              ],
              "FILTER_COUNT": 2,
              "TOTAL_COUNT": 2
            }
          }
        },
        "description": "A legacy exception record as returned by the fetch API.",
        "title": "Get Legacy Exception Response",
        "properties": {
          "reply": {
            "type": "object",
            "properties": {
              "DATA": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier of the legacy exception rule.",
                      "example": "d9c06bfa3f9b45a7a0196244e68d181d"
                    },
                    "rule_name": {
                      "type": "string",
                      "description": "Name of the legacy exception rule."
                    },
                    "platform": {
                      "type": "string",
                      "description": "Target platform for the exception rule."
                    },
                    "conditions": {
                      "type": "string",
                      "description": "Human-readable string representation of the exception conditions. This is a display string only."
                    },
                    "module": {
                      "type": "integer",
                      "description": "Numeric ID of the protection module this exception applies to.",
                      "example": 43
                    },
                    "module_name": {
                      "type": "string",
                      "description": "Name of the protection module.",
                      "example": "Exceptions > Process Exceptions"
                    },
                    "description": {
                      "type": "string",
                      "description": "Optional description of the exception rule."
                    },
                    "generating_alert_id": {
                      "type": "string",
                      "description": "ID of the alert that generated this exception, if applicable.",
                      "nullable": true
                    },
                    "created_by": {
                      "type": "string",
                      "description": "Name of the user or API Key that created the legacy exception rule. **Note**: API-created exception rules show as \"Public API - <key_id>\"."
                    },
                    "modification_time": {
                      "type": "integer",
                      "description": "Unix timestamp in milliseconds of the last modification."
                    },
                    "user_email": {
                      "type": "string",
                      "description": "Email of the user who created the exception. **Note**: API-created exceptions show `n/a`."
                    },
                    "status": {
                      "type": "string",
                      "description": "Indicates the current status of the rule."
                    },
                    "profile_ids": {
                      "type": "array",
                      "description": "List of prevention profile IDs this exception is scoped to. Empty array `[]` indicates a GLOBAL scope exception.",
                      "items": {
                        "type": "integer"
                      }
                    },
                    "associated_targets": {
                      "type": "array",
                      "description": "Describes the endpoint targeting scope of the exception.",
                      "items": {
                        "type": "string"
                      }
                    },
                    "is_in_user_scope": {
                      "type": "boolean",
                      "description": "Whether the exception is within the current user's RBAC scope."
                    }
                  }
                }
              },
              "FILTER_COUNT": {
                "type": "integer",
                "description": "The number of rules returned in the current response after applying filters.",
                "example": 2
              },
              "TOTAL_COUNT": {
                "type": "integer",
                "description": "The total number of rules available that match the filter criteria, regardless of pagination.",
                "example": 2
              }
            }
          }
        }
      },
      "GetProfilesRequestData": {
        "title": "GetProfilesRequestData",
        "type": "object",
        "description": "Parameters for the `get_profiles` call",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "prevention",
              "extension"
            ],
            "description": "The category of profiles to retrieve.\n- `prevention` – standard endpoint prevention profiles managed by\n  `ProfilesService` (malware, exploit, restrictions, agent-settings,\n  exceptions, etc.)\n- `extension` – device-control and host-firewall profiles managed by\n  `DeviceControlProfilesService`\n",
            "example": "prevention"
          },
          "profile_ids": {
            "type": "array",
            "description": "Optional list of profile IDs to filter by.\nWhen omitted or `null`, all profiles of the requested type are returned.\nWhen provided, only profiles whose `id` is in this list are returned.\nMust be a JSON array; passing a non-array value yields HTTP 400.\n",
            "items": {
              "type": "integer",
              "format": "int64",
              "example": 1,
              "nullable": true
            }
          }
        }
      },
      "EditPreventionPolicyRequest": {
        "type": "object",
        "required": [
          "request_data"
        ],
        "properties": {
          "request_data": {
            "$ref": "#/components/schemas/EditPreventionPolicyRequestData"
          }
        }
      },
      "EditPreventionPolicyRequestData": {
        "type": "object",
        "required": [
          "edit_requests"
        ],
        "properties": {
          "edit_requests": {
            "type": "array",
            "minItems": 1,
            "description": "List of policy rule edits to apply. All edits are validated before any change is persisted.\n",
            "items": {
              "$ref": "#/components/schemas/PreventionPolicyEditParameters"
            }
          }
        }
      },
      "PreventionPolicyEditParameters": {
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 32,
            "maxLength": 32,
            "pattern": "^[0-9a-fA-F]{32}$",
            "description": "32-character hexadecimal UUID of the prevention policy rule to edit. Must be an existing rule ID.\n",
            "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "nullable": true,
            "description": "New display name for the rule. Must be a non-empty string. Cannot be set on the default (catch-all) rule.\n",
            "example": "My Custom Prevention Rule"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "New description for the rule. Must be a string (may be empty only if the field is omitted entirely; an explicit empty string is rejected). Cannot be set on the default rule.\n",
            "example": "Applies to all Windows workstations in Group A"
          },
          "target_filter": {
            "type": "object",
            "nullable": true,
            "description": "Replaces the rule's target filter. Must be a valid filter object (see `TargetFilter`). Cannot be set on the default rule. The locked portion of the existing filter is preserved automatically.\n",
            "allOf": [
              {
                "$ref": "#/components/schemas/TargetFilter"
              }
            ]
          },
          "exploit_id": {
            "type": "integer",
            "nullable": true,
            "description": "ID of the **Exploit** profile to assign to this rule. The profile must exist, be of type `EXPLOIT`, and match the rule's OS platform.\n",
            "example": 10
          },
          "malware_id": {
            "type": "integer",
            "nullable": true,
            "description": "ID of the **Malware** profile to assign to this rule. The profile must exist, be of type `MALWARE`, and match the rule's OS platform.\n",
            "example": 42
          },
          "restrictions_id": {
            "type": "integer",
            "nullable": true,
            "description": "ID of the **Restrictions** profile to assign to this rule. The profile must exist, be of type `RESTRICTIONS`, and match the rule's OS platform.\n",
            "example": 5
          },
          "agent_settings_id": {
            "type": "integer",
            "nullable": true,
            "description": "ID of the **Agent Settings** profile to assign to this rule. The profile must exist, be of type `AGENT_SETTINGS`, and match the rule's OS platform.\n",
            "example": 3
          },
          "exceptions_id": {
            "type": "integer",
            "nullable": true,
            "description": "ID of the **Exceptions** profile to assign to this rule. The profile must exist, be of type `EXCEPTIONS`, and match the rule's OS platform.\n",
            "example": 7
          }
        }
      },
      "TargetFilter": {
        "type": "object",
        "description": "Defines which endpoints the policy rule targets. The filter is a structured condition tree with a single root connector (`AND` or `OR`).\n\nSee the [Target Filter Fields](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/cortex-platform/cortex-cloud-platform-papi-tables#target-filter-fields) table for allowed filter fields.\n",
        "properties": {
          "filterData": {
            "type": "object",
            "description": "Root of the condition tree. Must contain exactly one key: either `AND` or `OR`.\n",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PolicyAndFilter"
              },
              {
                "$ref": "#/components/schemas/PolicyOrFilter"
              }
            ]
          }
        }
      },
      "PolicyAndFilter": {
        "type": "object",
        "required": [
          "AND"
        ],
        "properties": {
          "AND": {
            "type": "array",
            "minItems": 1,
            "description": "List of search condition objects (all must match).",
            "items": {
              "$ref": "#/components/schemas/SearchCondition"
            }
          }
        }
      },
      "PolicyOrFilter": {
        "type": "object",
        "required": [
          "OR"
        ],
        "properties": {
          "OR": {
            "type": "array",
            "minItems": 2,
            "description": "List of AND-groups (at least two). The rule matches if any group matches.\n",
            "items": {
              "$ref": "#/components/schemas/PolicyAndFilter"
            }
          }
        }
      },
      "SearchCondition": {
        "type": "object",
        "required": [
          "field",
          "operator",
          "value"
        ],
        "properties": {
          "field": {
            "type": "string",
            "description": "The endpoint attribute to filter on. Must be one of: `agent_type`, `group_id`, `hostname`, `os_description`, `tags`.\n",
            "example": "hostname"
          },
          "operator": {
            "type": "string",
            "description": "Comparison operator. Valid operators depend on the field:\n- `agent_type`: `EQ`, `NEQ`\n- `group_id`: `AGENTS_GROUP_EQ`, `AGENTS_GROUP_NEQ`\n- `hostname`, `os_description`: string operators (e.g. `EQ`, `NEQ`, `CONTAINS`)\n- `tags`: string or list operators\n",
            "example": "EQ"
          },
          "value": {
            "description": "The value to compare against. Type depends on the field:\n- `agent_type`: string (AgentType enum value)\n- `group_id`: string (group name)\n- `hostname`, `os_description`: string\n- `tags`: string or array of strings\n",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ],
            "example": "DESKTOP-ABC123"
          }
        }
      },
      "SuccessResponse": {
        "type": "object",
        "properties": {
          "reply": {
            "type": "boolean",
            "description": "Always `true` on success.",
            "example": true
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "reply": {
            "type": "object",
            "properties": {
              "err_code": {
                "type": "integer",
                "description": "HTTP-aligned error code.",
                "example": 400
              },
              "err_msg": {
                "type": "string",
                "description": "Human-readable error message.",
                "example": "A mandatory parameter is missing."
              },
              "err_extra": {
                "type": "object",
                "description": "Additional context about the error (field names, IDs, invalid values, etc.). Shape varies by error type.\n",
                "additionalProperties": true
              }
            }
          }
        }
      },
      "GetProfilesResponse": {
        "title": "GetProfilesResponse",
        "type": "object",
        "description": "Successful response envelope",
        "properties": {
          "reply": {
            "type": "array",
            "description": "List of matching profile objects.",
            "items": {
              "$ref": "#/components/schemas/ProfileObject"
            }
          }
        },
        "x-examples": {
          "Example 1": {
            "reply": [
              {
                "id": 1,
                "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                "name": "Default Malware Profile",
                "type": "MALWARE",
                "platform": "AGENT_OS_WINDOWS",
                "is_default": true,
                "is_global": false,
                "is_disabled": false,
                "associated_targets": [
                  "All endpoints"
                ],
                "usage_count": 5,
                "description": "Default anti-malware profile for Windows",
                "created_by": "system",
                "created_by_pretty": "Palo Alto Networks",
                "creation_time": 1700000000000,
                "modified_by": "admin@example.com",
                "modified_by_pretty": "Admin User",
                "modification_time": 1710000000000,
                "modules": {
                  "malware": {
                    "mode": "prevent"
                  }
                }
              },
              {
                "id": 2,
                "uuid": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
                "name": "Custom Exploit Profile",
                "type": "EXPLOIT",
                "platform": "AGENT_OS_MAC",
                "is_default": false,
                "is_global": false,
                "is_disabled": false,
                "associated_targets": [
                  "macOS Servers"
                ],
                "usage_count": 2,
                "description": null,
                "created_by": "admin@example.com",
                "created_by_pretty": "Admin User",
                "creation_time": 1705000000000,
                "modified_by": "admin@example.com",
                "modified_by_pretty": "Admin User",
                "modification_time": 1705000000000,
                "modules": {}
              }
            ]
          }
        }
      },
      "ProfileObject": {
        "title": "ProfileObject",
        "type": "object",
        "description": "A single endpoint security profile.\n\n**Note**: The fields `is_in_user_scope` and `at_risk` exist in the internal data model but are **always stripped** before the API response is returned and will never appear in the output.",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Internal numeric profile ID",
            "example": 1
          },
          "uuid": {
            "type": "string",
            "description": "Globally unique profile identifier (UUID v4)",
            "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
          },
          "name": {
            "type": "string",
            "description": "Human-readable profile name.",
            "example": "Default Malware Profile"
          },
          "type": {
            "type": "string",
            "description": "Target operating system",
            "enum": [
              "AGENT_OS_WINDOWS",
              "AGENT_OS_MAC",
              "AGENT_OS_LINUX",
              "AGENT_OS_ANDROID",
              "AGENT_OS_IOS",
              "AGENT_OS_CAAS_LINUX",
              "AGENT_OS_SERVERLESS"
            ],
            "example": "AGENT_OS_WINDOWS"
          },
          "is_default": {
            "type": "boolean",
            "description": "Whether this is the system-managed default profile for its type and OS",
            "example": true
          },
          "is_global": {
            "type": "boolean",
            "description": "Whether this profile is a global (cross-tenant) profile",
            "example": false
          },
          "is_disabled": {
            "type": "boolean",
            "description": "Whether this profile is currently disabled",
            "example": false
          },
          "associated_targets": {
            "type": "array",
            "description": "Human-readable list of policy rule targets (endpoint groups, tags, and so on.) that reference this profile, rendered as UI-friendly strings.\n`null` when the profile is not referenced by any policy rule.\n",
            "items": {
              "type": "string",
              "example": "Windows Servers",
              "nullable": true
            }
          },
          "usage_count": {
            "type": "integer",
            "description": "Number of policy rules that reference this profile",
            "example": 5,
            "format": "int32",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Optional free-text description of the profile",
            "example": "Default anti-malware profile for Windows endpoints",
            "nullable": true
          },
          "created_by": {
            "type": "string",
            "example": "admin@example.com",
            "description": "Internal identifier (email or system name) of the creator",
            "nullable": true
          },
          "created_by_pretty": {
            "type": "string",
            "description": "Display name of the creator",
            "example": "Admin User",
            "nullable": true
          },
          "creation_time": {
            "type": "integer",
            "format": "int64",
            "description": "Profile creation timestamp in Unix epoch milliseconds",
            "example": 1700000000000,
            "nullable": true
          },
          "modified_by": {
            "type": "string",
            "example": "admin@example.com",
            "description": "Internal identifier of the last modifier",
            "nullable": true
          },
          "modified_by_pretty": {
            "type": "string",
            "example": "Admin User",
            "description": "Display name of the last modifier",
            "nullable": true
          },
          "modification_time": {
            "type": "integer",
            "format": "int64",
            "description": "Last modification timestamp in Unix epoch milliseconds",
            "example": 1710000000000,
            "nullable": true
          },
          "modules": {
            "type": "object",
            "description": "JSON object containing the profile's security module configuration.\nThe schema varies by `type` and `platform`. Common top-level keys\nare module names (for example, `malware`, `exploit`, `agent_settings`), \neach containing mode and sub-option settings.\n",
            "nullable": true,
            "example": {
              "malware": {
                "mode": "prevent",
                "scan_network_drives": false
              }
            }
          }
        },
        "x-examples": {}
      }
    }
  }
}
