{
  "openapi": "3.0.0",
  "x-hideTryItPanel": true,
  "info": {
    "version": "Cortex AgentiX",
    "title": "Cortex AgentiX APIs",
    "description": "Using the Cortex AgentiX APIs, you can manage authentication settings, datasets, cases, issues, and script execution. You can also run XQL queries and manage datasets, in addition to many other capabilities.\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/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/jP7n9HvCP3W3VmkFvzE2/run-xql-query-apis).\n\n<!-- theme: info -->\n\n> #### Note\n>\n> To ensure you don't surpass your quota, Cortex AgentiX allows you to run up to four API queries in parallel.\n\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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": {
                  "$ref": "#/components/examples/default"
                },
                "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](https://app.gitbook.com/s/jP7n9HvCP3W3VmkFvzE2/cortex-agentix/xql-query#post-public_api-v1-xql-get_query_results_stream).\n\nFor more information on how to run XQL queries, see [Run XQL Query APIs](https://app.gitbook.com/s/jP7n9HvCP3W3VmkFvzE2/run-xql-query-apis).\n\n<!-- theme: info -->\n\n> #### Note\n>\n> To ensure you don't surpass your quota, Cortex AgentiX allows you to run up to four API queries in parallel.\n\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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/jP7n9HvCP3W3VmkFvzE2/cortex-agentix/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": {
                  "$ref": "#/components/examples/default"
                },
                "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",
                              "tenant": "1723879655"
                            },
                            {
                              "event_id": "eventID2",
                              "_vendor": "PANW",
                              "_product": "Fusion",
                              "insert_timestamp": 1621541825326,
                              "_time": 1621541528000,
                              "event_type": "STORY",
                              "event_sub_type": "NULL",
                              "tenant": "1723879655"
                            },
                            {
                              "event_id": "eventID3",
                              "_vendor": "PANW",
                              "_product": "Fusion",
                              "insert_timestamp": 1621541825325,
                              "_time": 1621541517000,
                              "event_type": "STORY",
                              "event_sub_type": "NULL",
                              "tenant": "1723879655"
                            },
                            {
                              "event_id": "eventID4",
                              "_vendor": "PANW",
                              "_product": "Fusion",
                              "insert_timestamp": 1621541825324,
                              "_time": 1621541523000,
                              "event_type": "STORY",
                              "event_sub_type": "NULL",
                              "tenant": "1705396706"
                            },
                            {
                              "event_id": "eventID5",
                              "_vendor": "PANW",
                              "_product": "Fusion",
                              "insert_timestamp": 1621541825326,
                              "_time": 1621541528000,
                              "event_type": "STORY",
                              "event_sub_type": "NULL",
                              "tenant": "1705396706"
                            },
                            {
                              "event_id": "eventID6",
                              "_vendor": "PANW",
                              "_product": "Fusion",
                              "insert_timestamp": 1621541825325,
                              "_time": 1621541517000,
                              "event_type": "STORY",
                              "event_sub_type": "NULL",
                              "tenant": "1705396706"
                            }
                          ]
                        }
                      }
                    }
                  },
                  "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/jP7n9HvCP3W3VmkFvzE2/run-xql-query-apis).\n\n<!-- theme: info -->\n\n> #### Note\n>\n> To ensure you don't surpass your quota, Cortex AgentiX allows you to run up to four API queries in parallel.\n\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "operationId": "postGetQuota",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "example": {
                  "request_data": {}
                }
              },
              "examples": {
                "default": {
                  "$ref": "#/components/examples/default"
                }
              }
            }
          }
        },
        "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/jP7n9HvCP3W3VmkFvzE2/run-xql-query-apis).\n\n<!-- theme: info -->\n\n> #### Note\n>\n> To ensure you don't surpass your quota, Cortex AgentiX allows you to run up to four API queries in parallel.\n\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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/jP7n9HvCP3W3VmkFvzE2/cortex-agentix/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": {
                  "$ref": "#/components/examples/default"
                }
              }
            }
          }
        },
        "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/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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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 AgentiX 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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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/jP7n9HvCP3W3VmkFvzE2/cortex-agentix/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/jP7n9HvCP3W3VmkFvzE2/cortex-agentix/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 AgentiX 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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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/jP7n9HvCP3W3VmkFvzE2/cortex-agentix/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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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": "Descrption 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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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/jP7n9HvCP3W3VmkFvzE2/cortex-agentix/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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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 AgentiX environment.\n\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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/rbac/get_users": {
      "post": {
        "tags": [
          "System management"
        ],
        "summary": "Get Users",
        "description": "Retrieve a list of the current users in your environment.\n\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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": 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": []
                          }
                        ]
                      ]
                    }
                  }
                }
              }
            }
          },
          "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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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": {
                            "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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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/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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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\r\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "operationId": "post-public_api-v1-xql-get_datasets",
        "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 [Add or update data in a lookup dataset](https://app.gitbook.com/s/jP7n9HvCP3W3VmkFvzE2/cortex-agentix/lookup-datasets#post-public_api-v1-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. Attemping to exceed this limit will fail.\r\n- Requests time out after three minutes.\r\n\r\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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 [Remove data from a lookup dataset](https://app.gitbook.com/s/jP7n9HvCP3W3VmkFvzE2/cortex-agentix/lookup-datasets#post-public_api-v1-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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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/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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**\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": {
                            "nullable": true
                          },
                          "is_account_role": {
                            "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": {
                                "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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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",
                "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"
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "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>"
                      }
                    }
                  }
                }
              },
              "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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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": 632
                        }
                      ]
                    }
                  }
                },
                "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": {
                            "nullable": true
                          },
                          "SYSLOG_INTEGRATION_CERTIFICATE_NAME": {
                            "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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "A dictionary containing the API request fields.",
                    "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"
                          }
                        }
                      }
                    },
                    "required": [
                      "syslog_id"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "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>"
                      }
                    }
                  }
                }
              },
              "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.",
                      "example": true
                    }
                  }
                }
              }
            }
          },
          "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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "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.",
        "operationId": "post-public_api-v1-scheduled_queries-list",
        "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": {
          "required": false,
          "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": [
                                "query_def_id",
                                "timestamp"
                              ],
                              "description": "Identifies the query field the filter is matching. Filters are based on the following keywords:\n- `query_def_id`\n- `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"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "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"
                        }
                      ]
                    }
                  }
                }
              },
              "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"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "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": {
                "examples": {
                  "default": {
                    "value": {
                      "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": {
                "examples": {
                  "default": {
                    "value": {
                      "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"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ],
        "x-codegen-request-body-name": "body"
      }
    },
    "/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.",
        "operationId": "post-public_api-v1-scheduled_queries-insert",
        "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": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "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",
                          "properties": {
                            "trigger_type": {
                              "type": "string"
                            },
                            "run_date": {
                              "type": "integer"
                            }
                          },
                          "required": [
                            "trigger_type"
                          ]
                        }
                      },
                      "required": [
                        "query_definition_name",
                        "xql",
                        "timeframe",
                        "schedule"
                      ]
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "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
                        }
                      }
                    ]
                  }
                }
              },
              "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
                        }
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "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.",
                      "properties": {
                        "<query_id>": {
                          "type": "object",
                          "description": "The query_id of the scheduled query that was inserted or updated.",
                          "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"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "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"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ],
        "x-codegen-request-body-name": "body"
      }
    },
    "/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.",
        "operationId": "post-public_api-v1-scheduled_queries-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": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": [
                      "qc_1683461522_18780",
                      "qc_1677754986_6539",
                      "avram"
                    ]
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": [
                      "qc_1683461522_18780",
                      "qc_1677754986_6539",
                      "avram"
                    ]
                  }
                }
              }
            }
          }
        },
        "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": {
                "examples": {
                  "default": {
                    "value": {
                      "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"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ],
        "x-codegen-request-body-name": "body"
      }
    },
    "/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.",
        "operationId": "post-public_api-xql_library-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": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "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"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "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"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "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"
                                    }
                                  },
                                  "is_datamodel": {
                                    "type": "boolean"
                                  },
                                  "query_tables": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "query_presets": {
                                    "type": "array",
                                    "items": {
                                      "type": "object"
                                    }
                                  }
                                }
                              },
                              "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": {
                "examples": {
                  "default": {
                    "value": {
                      "reply": {
                        "queries_count": 0,
                        "xql_queries": [
                          {
                            "xql_query_name": "string",
                            "xql_query": "string",
                            "xql_query_tags": [
                              "string"
                            ]
                          }
                        ]
                      }
                    }
                  }
                }
              },
              "With extended view": {
                "examples": {
                  "default": {
                    "value": {
                      "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"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ],
        "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.",
        "operationId": "post-public_api-xql_library-insert",
        "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": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "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",
                          "properties": {
                            "xql_query": {
                              "type": "string"
                            },
                            "xql_query_name": {
                              "type": "string",
                              "description": "XQL query name should be unique."
                            }
                          },
                          "required": [
                            "xql_query",
                            "xql_query_name"
                          ]
                        }
                      },
                      "xql_query_tags": {
                        "type": "array",
                        "description": "XQL query tags are optional",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "xql_queries"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "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"
                      ]
                    }
                  }
                }
              },
              "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"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "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": {
                "examples": {
                  "default": {
                    "value": {
                      "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"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ],
        "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.",
        "operationId": "post-public_api-xql_library-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": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "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"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "xql_query_names": [
                        "test_ql11",
                        "test_ql2",
                        "test_ql33"
                      ],
                      "xql_query_tags": [
                        "tag1",
                        "tag2",
                        "tag3"
                      ]
                    }
                  }
                }
              },
              "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"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "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"
                          }
                        }
                      }
                    }
                  },
                  "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": {
                "examples": {
                  "default": {
                    "value": {
                      "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"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ],
        "x-codegen-request-body-name": "body"
      }
    },
    "/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",
        "operationId": "post-public_api-v1-correlations-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": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "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": [
                                "name",
                                "severity",
                                "xql_query",
                                "is_enabled",
                                "descriptoin",
                                "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`: Suppration 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",
                                "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": {
                              "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`.",
                              "oneOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "array"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "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 correlation rules returned.\r\nCorrelation rules in the correlation rules list that are indexed higher than this value are not returned in the final results set. Defaults to >100, which returns all correlation rules to the end of the list."
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "extended_view": false
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "extended_view": 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"
                          },
                          "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"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ],
        "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.",
        "operationId": "post-public_api-v1-correlations-insert",
        "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": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "rule_id": {
                          "type": "integer"
                        },
                        "name": {
                          "type": "string",
                          "description": "Correlation rule name."
                        },
                        "severity": {
                          "type": "string",
                          "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": {
                          "type": "string",
                          "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."
                        },
                        "execution_mode": {
                          "type": "string",
                          "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"
                        },
                        "investigation_query_link": {
                          "type": "string"
                        },
                        "drilldown_query_timeframe": {
                          "type": "string",
                          "enum": [
                            "QUERY",
                            "ALERT"
                          ]
                        },
                        "mapping_strategy": {
                          "type": "string",
                          "enum": [
                            "AUTO",
                            "CUSTOM"
                          ]
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "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"
                      }
                    ]
                  }
                }
              },
              "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"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "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"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ],
        "x-codegen-request-body-name": "body"
      }
    },
    "/public_api/v1/correlations/delete": {
      "post": {
        "tags": [
          "Correlation Rules"
        ],
        "summary": "Delete Correlation Rules",
        "description": "Delete correlation rules selected by filter.\n\nRequires the granular RBAC permission for this feature.",
        "operationId": "post-public_api-v1-correlations-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": {
          "required": false,
          "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",
                                "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`: Suppration 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": {
                              "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`.",
                              "oneOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array"
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "extended_view": false,
                      "filters": [
                        {
                          "field": "rule_id",
                          "operator": "EQ",
                          "value": 28
                        }
                      ]
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "extended_view": false,
                      "filters": [
                        {
                          "field": "rule_id",
                          "operator": "EQ",
                          "value": 28
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "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"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ],
        "x-codegen-request-body-name": "body"
      }
    },
    "/public_api/v1/playbooks/get": {
      "post": {
        "tags": [
          "Playbooks"
        ],
        "summary": "Get a playbook",
        "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.",
        "operationId": "post-public_api-v1-playbooks-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",
                    "properties": {
                      "filter": {
                        "type": "object",
                        "description": "Filter fields.",
                        "properties": {
                          "field": {
                            "type": "string",
                            "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."
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": {
                        "field": "name",
                        "value": "Phishingplaybook"
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "filter": {
                        "field": "name",
                        "value": "Phishingplaybook"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/playbooks/insert": {
      "post": {
        "tags": [
          "Playbooks"
        ],
        "summary": "Insert or update playbooks",
        "description": "Add or update a playbook by passing the YAML in a ZIP file.\n\nRequires the granular RBAC permission for this feature.",
        "operationId": "post-public_api-v1-playbooks-insert",
        "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": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "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."
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "objects_count": 1,
                      "objects": {
                        "failures_items": [
                          {
                            "error": "Failed getting content item file from request, expecting form-data file (0)",
                            "id": ""
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/playbooks/delete": {
      "post": {
        "tags": [
          "Playbooks"
        ],
        "summary": "Delete a playbook",
        "description": "Delete a playbook by filtering based on its name or ID.\n\nRequires the granular RBAC permission for this feature.",
        "operationId": "post-public_api-v1-playbooks-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": {
                      "filter": {
                        "type": "object",
                        "description": "Filter fields.",
                        "properties": {
                          "field": {
                            "type": "string",
                            "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."
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": {
                        "field": "name",
                        "value": "Phishingplaybook"
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "filter": {
                        "field": "name",
                        "value": "Phishingplaybook"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "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."
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "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"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/scripts/get": {
      "post": {
        "tags": [
          "Scripts"
        ],
        "summary": "Get a script",
        "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.",
        "operationId": "post-public_api-v1-scripts-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",
                    "properties": {
                      "filter": {
                        "type": "object",
                        "description": "Filter fields.",
                        "properties": {
                          "field": {
                            "type": "string",
                            "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."
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": {
                        "field": "name",
                        "value": "Phishingplaybook"
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "filter": {
                        "field": "name",
                        "value": "PhishingScript"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/zip": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/scripts/insert": {
      "post": {
        "tags": [
          "Scripts"
        ],
        "summary": "Insert or update a script",
        "description": "Update or add a script by passing the YAML in a ZIP file.\n\nRequires the granular RBAC permission for this feature.",
        "operationId": "post-public_api-v1-scripts-insert",
        "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": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "description": "The script in YAML in a zipped file.",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "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."
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "objects_count": 1,
                      "objects": {
                        "failures_items": [
                          {
                            "error": "Failed getting content item file from request, expecting form-data file (0)",
                            "id": ""
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/scripts/delete": {
      "post": {
        "tags": [
          "Scripts"
        ],
        "summary": "Delete a script",
        "description": "Delete a script by filtering based on its name or ID.\n\nRequires the granular RBAC permission for this feature.",
        "operationId": "post-public_api-v1-scripts-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": {
                      "filter": {
                        "type": "object",
                        "description": "Filter fields.",
                        "properties": {
                          "field": {
                            "type": "string",
                            "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."
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": {
                        "field": "name",
                        "value": "PhishingScript"
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "filters": {
                        "field": "name",
                        "value": "Phishingplaybook"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "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."
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "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"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/dashboards/get": {
      "post": {
        "tags": [
          "Dashboards"
        ],
        "summary": "Get dashboards",
        "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",
        "operationId": "post-public_api-v1-dashboards-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",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "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": {
                              "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- `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": {
                              "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.",
                              "oneOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "array"
                                }
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "name",
                          "value": "This is a cool dashboard",
                          "operator": "EQ"
                        },
                        {
                          "field": "source",
                          "value": "Vitaly Fintushal",
                          "operator": "EQ"
                        }
                      ]
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "name",
                          "value": "Incident by Severity",
                          "operator": "EQ"
                        },
                        {
                          "field": "source",
                          "value": "John Doe",
                          "operator": "EQ"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "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": {
                                  "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": "integer"
                                                },
                                                "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"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "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"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/dashboards/insert": {
      "post": {
        "tags": [
          "Dashboards"
        ],
        "summary": "Insert or update dashboards",
        "description": "Add or update the dashboards retrieved by the Get dashboards API.\n\nYou must have **Instance Administrator** permissions to run this endpoint.",
        "operationId": "post-public_api-v1-dashboards-insert",
        "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": {
                      "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",
                              "nullable": true,
                              "description": "Dashboard description."
                            },
                            "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": {
                              "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"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "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"
                        }
                      ]
                    }
                  }
                }
              },
              "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.333333333333336,
                                      "height": 451
                                    }
                                  },
                                  {
                                    "key": "incidentsHistory",
                                    "data": {
                                      "type": "Timeline",
                                      "width": 33.333333333333336,
                                      "height": 451,
                                      "time_frame": {
                                        "relativeTime": 86400000
                                      },
                                      "alerts_or_incidents": "incident"
                                    }
                                  }
                                ]
                              },
                              {
                                "id": "row-3678",
                                "data": [
                                  {
                                    "key": "xql_1583269521210",
                                    "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": []
                            }
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "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"
                          }
                        }
                      }
                    }
                  },
                  "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."
                        }
                      ]
                    }
                  }
                },
                "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."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/dashboards/delete": {
      "post": {
        "tags": [
          "Dashboards"
        ],
        "summary": "Delete dashboards",
        "description": "Delete the dashboards retrieved by the Get dashboards API.\n\nYou must have **Instance Administrator** permissions to run this endpoint.",
        "operationId": "post-public_api-v1-dashboards-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": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "dashboard_id"
                              ],
                              "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": {
                              "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- `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": {
                              "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.",
                              "oneOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "array"
                                }
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "name",
                          "value": "Incident by Severity",
                          "operator": "EQ"
                        },
                        {
                          "field": "source",
                          "value": "John Doe",
                          "operator": "EQ"
                        }
                      ]
                    }
                  }
                }
              },
              "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.333333333333336,
                                      "height": 451
                                    }
                                  },
                                  {
                                    "key": "incidentsHistory",
                                    "data": {
                                      "type": "Timeline",
                                      "width": 33.333333333333336,
                                      "height": 451,
                                      "time_frame": {
                                        "relativeTime": 86400000
                                      },
                                      "alerts_or_incidents": "incident"
                                    }
                                  }
                                ]
                              },
                              {
                                "id": "row-3678",
                                "data": [
                                  {
                                    "key": "xql_1583269521210",
                                    "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": []
                            }
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "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"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "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"
                          }
                        ]
                      }
                    }
                  }
                },
                "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"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/widgets/get": {
      "post": {
        "tags": [
          "Widgets"
        ],
        "summary": "Get widgets",
        "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.",
        "operationId": "post-public_api-v1-widgets-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",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "title",
                                "created_by"
                              ],
                              "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."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "EQ",
                                "NEQ",
                                "IN"
                              ],
                              "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"
                            },
                            "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."
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "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"
                        }
                      ]
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "title",
                          "value": "Widget A",
                          "operator": "EQ"
                        },
                        {
                          "field": "created_by",
                          "value": "John Doe",
                          "operator": "EQ"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "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": {
                                  "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": {
                                          "nullable": true
                                        },
                                        "coldefs": {
                                          "type": "object"
                                        },
                                        "rowHeight": {
                                          "type": "string"
                                        },
                                        "columnWidth": {
                                          "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"
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "objects_type": {
                      "type": "string"
                    }
                  },
                  "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"
                    }
                  }
                },
                "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"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/widgets/insert": {
      "post": {
        "tags": [
          "Widgets"
        ],
        "summary": "Insert or update widgets",
        "description": "Update or add the widgets retrieved by the Get widgets API.\n\nYou must have **Instance Administrator** permissions to run this endpoint.",
        "operationId": "post-public_api-v1-widgets-insert",
        "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": "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": {
                                        "nullable": true
                                      },
                                      "coldefs": {
                                        "type": "object"
                                      },
                                      "rowHeight": {
                                        "type": "string"
                                      },
                                      "columnWidth": {
                                        "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"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "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"
                          }
                        ]
                      }
                    ]
                  }
                }
              },
              "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"
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "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"
                          }
                        }
                      }
                    }
                  },
                  "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"
                        }
                      ]
                    }
                  }
                },
                "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"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/widgets/delete": {
      "post": {
        "tags": [
          "Widgets"
        ],
        "summary": "Delete widgets",
        "description": "Delete the widgets retrieved by the Get widgets API.\n\nYou must have **Instance Administrator** permissions to run this endpoint.",
        "operationId": "post-public_api-v1-widgets-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": {
                      "filters": {
                        "type": "array",
                        "description": "An array of filter fields.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "created_by",
                                "title"
                              ],
                              "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."
                            },
                            "value": {
                              "type": "string",
                              "enum": [
                                "EQ",
                                "NEQ",
                                "IN"
                              ],
                              "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"
                            },
                            "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."
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "title",
                          "value": "Widget A",
                          "operator": "EQ"
                        },
                        {
                          "field": "created_by",
                          "value": "John Doe",
                          "operator": "EQ"
                        }
                      ]
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "title",
                          "value": "Widget A",
                          "operator": "EQ"
                        },
                        {
                          "field": "created_by",
                          "value": "John Doe",
                          "operator": "EQ"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "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"
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "objects_count": 3,
                      "objects": [
                        "xql_1656052681401",
                        "xql_1636816727601",
                        "xql_1653607348382"
                      ]
                    }
                  }
                },
                "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"
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/issue": {
      "post": {
        "tags": [
          "Issues"
        ],
        "summary": "Create a new issue",
        "description": "This endpoint allows users to create a new issue by providing the necessary details. \n**Users can only create one issue at a time.**\n- The request must include the following required fields:\n  - `name`\n  - `description`\n  - `observation_time`\n  - `domain`\n  - `category`\n",
        "operationId": "createIssue",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "issue": {
                        "$ref": "#/components/schemas/CreateIssue"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Issue created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "external_id": {
                      "type": "string"
                    },
                    "detection_method": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "default": {
                    "value": {
                      "external_id": "7c96737d50f74c7b9487450426e9eafb",
                      "detection_method": "CREATE_ALERT_PUBLIC_API"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "servers": [
          {
            "url": "https://api-{{fqdn}}"
          }
        ]
      }
    },
    "/public_api/v1/issue/search": {
      "post": {
        "tags": [
          "Issues"
        ],
        "summary": "Retrieve issues based on filters",
        "description": "This endpoint retrieves a list of issues that match the specified filter criteria. It supports filtering by `issue_id`, `external_id`, `detection_method`, `domain`, `source`, `severity`, and `_insert_time`, along with sorting and pagination.\n\nRequest Body:\n- `request_data`: Object containing filter criteria\n  - `filters`: Array of filter objects\n    - `field`: String (enum: 'issue_id', 'external_id', 'detection_method', 'domain', 'severity', '_insert_time', 'status')\n    - `operator`: String (enum: 'in', 'gte', 'lte')\n    - `value`: Array of integers/strings or single integer\n- `search_from`: Integer (default: 0) - Starting index for pagination\n- `search_to`: Integer (default: 100) - Ending index for pagination\n- `sort`: Object for sorting results\n  - `field`: String (enum: '_insert_time', 'severity', 'issue_id')\n  - `keyword`: String (enum: 'asc', 'desc') - Sort order\n- `include_fields`: Array of strings (enum: 'normalized_fields', 'custom_fields', default: []) - Fields to include in response\n",
        "operationId": "getIssues",
        "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": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "issue_id",
                                "external_id",
                                "detection_method",
                                "domain",
                                "severity",
                                "_insert_time",
                                "status"
                              ],
                              "description": "Specifies the field to filter issues by."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "in",
                                "gte",
                                "lte"
                              ],
                              "description": "Comparison operator to use with the filter."
                            },
                            "value": {
                              "description": "Value(s) for filtering the issues.",
                              "oneOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "integer"
                                  }
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "integer"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "search_from": {
                        "type": "integer",
                        "description": "Starting index for pagination."
                      },
                      "search_to": {
                        "type": "integer",
                        "description": "Ending index for pagination."
                      },
                      "sort": {
                        "type": "object",
                        "properties": {
                          "field": {
                            "type": "string",
                            "enum": [
                              "id",
                              "severity",
                              "observation_time"
                            ]
                          },
                          "keyword": {
                            "type": "string",
                            "enum": [
                              "asc",
                              "desc"
                            ],
                            "description": "Sort order (ascending or descending)."
                          }
                        }
                      },
                      "include_fields": {
                        "type": "array",
                        "description": "A list of fields to include in the response.\n- `normalized_fields`: Includes normalized fields in the response.\n- `custom_fields`: Includes custom user-defined fields in the response.\n- By default these fields will not be part of response payload.\n",
                        "items": {
                          "type": "string",
                          "enum": [
                            "normalized_fields",
                            "custom_fields"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response with issues",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "total_count": {
                          "type": "integer"
                        },
                        "result_count": {
                          "type": "integer"
                        },
                        "issues": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/Issue"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "servers": [
          {
            "url": "https://api-{{fqdn}}"
          }
        ]
      }
    },
    "/public_api/v1/issue/{issue-id}": {
      "post": {
        "tags": [
          "Issues"
        ],
        "summary": "Update existing issue",
        "description": "Update an existing issue in the system. **Users can only update one issue at a time.**  \n- At least one of the following fields is **mandatory**:  \n  - severity\n  - status\n",
        "operationId": "updateIssue",
        "parameters": [
          {
            "name": "issue-id",
            "in": "path",
            "description": "Numeric ID of the user to get",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "update_data": {
                        "$ref": "#/components/schemas/UpdateIssue"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Issues updated successfully"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "servers": [
          {
            "url": "https://api-{{fqdn}}"
          }
        ]
      }
    },
    "/public_api/v1/issue_exceptions/": {
      "post": {
        "summary": "Create a new issue exception",
        "description": "This endpoint allows users to create a new issue exception by providing the necessary details.\n**Users can only create one exception at a time.**\n- The request must include the following required fields:\n  - `name`\n  - `rule`\n  - `justification_text`\n  - `justification_category`\n  - `expiration_ts`\n  - `approver_email`\n\n- Optional fields:\n  - `external_exception_id`\n\nIf the tenant has approval required enabled, the `approver_email` field is mandatory and the exception will be created with `Pending Status` status. Otherwise, the exception is `Self Approved` automatically.\n\nThe `requestor_name` and `requestor_email` fields are automatically populated from the API key context.\n\n**Required permission:** `Exception Management Admin View/Edit`, `Exception Approver Admin View/Edit`\n\nFor the complete list of fields you can use as `SEARCH_FIELD` in the `rule` parameter, see [Issue exception supported fields](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/issues-apis/issues-papi-tables#supported-fields-for-issue-exception-filters).\n\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "operationId": "createIssueException",
        "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": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "$ref": "#/components/schemas/CreateIssueException"
                  }
                }
              },
              "examples": {
                "basic_issue_exception": {
                  "summary": "Create basic issue exception",
                  "value": {
                    "request_data": {
                      "name": "CVE-2024-1234 Exception for legacy hosts",
                      "rule": "{\"filter\":{\"AND\":[{\"SEARCH_FIELD\":\"cve_id\",\"SEARCH_TYPE\":\"EQ\",\"SEARCH_VALUE\":\"CVE-2024-1234\"}]}}",
                      "justification_text": "Legacy hosts scheduled for decommission in Q2",
                      "justification_category": "RISK_ACCEPTED",
                      "approver_email": "security-lead@example.com",
                      "expiration_ts": "2025-06-30"
                    }
                  }
                },
                "exception_with_external_id": {
                  "summary": "Create  with external tracking ID",
                  "value": {
                    "request_data": {
                      "name": "Compensating control for CVE-2024-5678",
                      "external_exception_id": "JIRA-SEC-4567",
                      "rule": "{\"filter\":{\"AND\":[{\"SEARCH_FIELD\":\"cve_id\",\"SEARCH_TYPE\":\"EQ\",\"SEARCH_VALUE\":\"CVE-2024-5678\"}]}}",
                      "justification_text": "WAF rule deployed as compensating control",
                      "justification_category": "COMPENSATING_CONTROL",
                      "approver_email": "security-lead@example.com",
                      "expiration_ts": "2025-12-31T23:59:59Z"
                    }
                  }
                },
                "self_approved_exception": {
                  "summary": "Create self-approved exception (no approver required)",
                  "value": {
                    "request_data": {
                      "name": "CVE-2024-1234 Exception for legacy hosts",
                      "rule": "{\"filter\":{\"AND\":[{\"SEARCH_FIELD\":\"cve_id\",\"SEARCH_TYPE\":\"EQ\",\"SEARCH_VALUE\":\"CVE-2024-1234\"}]}}",
                      "justification_text": "Legacy hosts scheduled for decommission in Q2",
                      "justification_category": "RISK_ACCEPTED",
                      "expiration_ts": "2025-06-30"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Exception created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "exception_id": {
                          "type": "integer",
                          "description": "ID of the newly created exception"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "default": {
                    "value": {
                      "reply": {
                        "exception_id": 42
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "servers": [
          {
            "url": "https://api-{{fqdn}}"
          }
        ],
        "tags": [
          "Issues"
        ]
      }
    },
    "/public_api/v1/issue_exceptions/disable/": {
      "post": {
        "summary": "Disable an issue exception",
        "description": "This endpoint allows users to disable an existing issue exception. This will trigger a reversion scan to restore matching issues that were previously suppressed by this exception. **A disabled exception cannot be reactivated.**\n\n**Required permission:** `Exception Management Admin View/Edit`, `Exception Approver Admin View/Edit`\n\n\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "operationId": "disableIssueException",
        "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": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "required": [
                      "exception_id"
                    ],
                    "properties": {
                      "exception_id": {
                        "type": "integer",
                        "description": "ID of the issue exception to disable"
                      }
                    }
                  }
                }
              },
              "examples": {
                "default": {
                  "value": {
                    "request_data": {
                      "exception_id": 26
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Exception disabled successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "rows_affected": {
                          "type": "integer",
                          "description": "Number of database rows affected"
                        },
                        "status": {
                          "type": "string",
                          "description": "New status of the exception"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "default": {
                    "value": {
                      "reply": {
                        "rows_affected": 1,
                        "status": "DISABLED"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "servers": [
          {
            "url": "https://api-{{fqdn}}"
          }
        ],
        "tags": [
          "Issues"
        ]
      }
    },
    "/public_api/v1/issue_exceptions/search/": {
      "post": {
        "summary": "Retrieve issue exceptions based on filters",
        "description": "This endpoint retrieves a list of issue exceptions that match the specified filter criteria. It supports filtering along with sorting and pagination. \n\n**Required permission:** `Exception Management Admin View`, `Exception Approver Admin View`\n\n\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "operationId": "searchIssueExceptions",
        "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": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "object",
                        "description": "Filter criteria using AND/OR structure. Each filter condition contains SEARCH_FIELD, SEARCH_TYPE, and SEARCH_VALUE.",
                        "properties": {
                          "SEARCH_FIELD": {
                            "type": "string",
                            "enum": [
                              "EXCEPTION_ID",
                              "EXTERNAL_EXCEPTION_ID",
                              "NAME",
                              "STATUS",
                              "EXPIRATION_TS",
                              "IMPACTED_ISSUES_COUNT",
                              "BACKWARD_SCAN_STATUS",
                              "JUSTIFICATION_CATEGORY",
                              "REQUESTOR_NAME",
                              "APPROVER_NAME",
                              "CREATED_TS",
                              "APPROVAL_TS",
                              "JUSTIFICATION_TEXT",
                              "APPROVAL_JUSTIFICATION",
                              "REQUESTOR_EMAIL",
                              "APPROVER_EMAIL"
                            ],
                            "description": "String that identifies the exception field the filter is matching."
                          },
                          "SEARCH_TYPE": {
                            "type": "string",
                            "enum": [
                              "EQ",
                              "NEQ",
                              "GTE",
                              "LTE",
                              "GT",
                              "LT",
                              "IN",
                              "CONTAINS",
                              "CONTAINS_NOT"
                            ],
                            "description": "Identifies the comparison operator to use for this filter. The following list shows which operators can be used for each filter field:\n\n- **EQ** / **NEQ** - use with all fields\n- **GTE** / **LTE** / **GT** / **LT** - use with `EXCEPTION_ID`, `EXPIRATION_TS`, `IMPACTED_ISSUES_COUNT`, `CREATED_TS`, `APPROVAL_TS`\n- **IN** - use with `EXCEPTION_ID`, `STATUS`, `BACKWARD_SCAN_STATUS`, `JUSTIFICATION_CATEGORY`\n- **CONTAINS** / **CONTAINS_NOT** — use with `EXTERNAL_EXCEPTION_ID`, `NAME`, `REQUESTOR_NAME`, `APPROVER_NAME`, `JUSTIFICATION_TEXT`, `APPROVAL_JUSTIFICATION`, `REQUESTOR_EMAIL`, `APPROVER_EMAIL`"
                          },
                          "SEARCH_VALUE": {
                            "description": "Value that this filter must match. The contents of this field will differ depending on the field that you specified for this filter:\n\n- EXCEPTION_ID — Integer, e.g. `1`, `42`\n- EXTERNAL_EXCEPTION_ID — String, e.g. `\"EXT-001\"`\n- NAME — String, e.g. `\"CVE Exception\"`\n- STATUS — String. Values are: `APPROVED`, `DISABLED`, `EXPIRED`, `NO_DECISION_MADE`, `PENDING_DECISION`, `REJECTED`, `SELF_APPROVED`\n- EXPIRATION_TS — Epoch milliseconds, e.g. `1712448000000`\n- IMPACTED_ISSUES_COUNT — Integer, e.g. `0`, `10`, `100`\n- BACKWARD_SCAN_STATUS — String. Values are: `COMPLETED`, `FAILED`, `IN_PROGRESS`, `PENDING`\n- JUSTIFICATION_CATEGORY — String. Values are: `COMPENSATING_CONTROL`, `PLANNED_REMEDIATION`, `RISK_ACCEPTED`, `VENDOR_DEPENDENCY`\n- REQUESTOR_NAME — String, e.g. `\"John Doe\"`\n- APPROVER_NAME — String, e.g. `\"Jane Smith\"`\n- CREATED_TS — Epoch milliseconds, e.g. `1712448000000`\n- APPROVAL_TS — Epoch milliseconds, e.g. `1712448000000`\n- JUSTIFICATION_TEXT — String, e.g. `\"Risk accepted per policy\"`\n- APPROVAL_JUSTIFICATION — String, e.g. `\"Approved by security team\"`\n- REQUESTOR_EMAIL — String, e.g. `\"john@example.com\"`\n- APPROVER_EMAIL — String, e.g. `\"jane@example.com\"`",
                            "oneOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "integer"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            ]
                          }
                        }
                      },
                      "search_from": {
                        "type": "integer",
                        "default": 0,
                        "description": "Starting index for pagination."
                      },
                      "search_to": {
                        "type": "integer",
                        "default": 100,
                        "description": "Ending index for pagination."
                      },
                      "sort": {
                        "type": "object",
                        "nullable": true,
                        "description": "Sort configuration",
                        "properties": {
                          "FIELD": {
                            "type": "string",
                            "description": "Field name to sort by"
                          },
                          "ORDER": {
                            "type": "string",
                            "enum": [
                              "ASC",
                              "DESC"
                            ],
                            "description": "Sort direction"
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "default_search": {
                  "summary": "Default search (all exceptions, first 100)",
                  "value": {
                    "request_data": {}
                  }
                },
                "filtered_search": {
                  "summary": "Search with filters and pagination",
                  "value": {
                    "request_data": {
                      "filters": {
                        "AND": [
                          {
                            "SEARCH_FIELD": "STATUS",
                            "SEARCH_TYPE": "EQ",
                            "SEARCH_VALUE": "APPROVED"
                          }
                        ]
                      },
                      "search_from": 0,
                      "search_to": 50,
                      "sort": {
                        "FIELD": "EXCEPTION_ID",
                        "ORDER": "DESC"
                      }
                    }
                  }
                },
                "search_by_name": {
                  "summary": "Search by exception name",
                  "value": {
                    "request_data": {
                      "filters": {
                        "AND": [
                          {
                            "SEARCH_FIELD": "NAME",
                            "SEARCH_TYPE": "CONTAINS",
                            "SEARCH_VALUE": "CVE-2024"
                          }
                        ]
                      },
                      "search_from": 0,
                      "search_to": 25
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Exceptions retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "exceptions": {
                          "type": "array",
                          "description": "List of matching exception objects",
                          "items": {
                            "$ref": "#/components/schemas/IssueException"
                          }
                        },
                        "filter_count": {
                          "type": "integer",
                          "description": "Number of exceptions matching the applied filters"
                        },
                        "total_count": {
                          "type": "integer",
                          "description": "Total number of exceptions (ignoring filters)"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "default": {
                    "value": {
                      "reply": {
                        "exceptions": [
                          {
                            "exception_id": 1,
                            "external_exception_id": null,
                            "name": "CVE-2024-1234 Exception",
                            "status": "APPROVED",
                            "rule": "{\"filter\":{\"AND\":[{\"SEARCH_FIELD\":\"cve_id\",\"SEARCH_TYPE\":\"EQ\",\"SEARCH_VALUE\":\"CVE-2024-1234\"}]}}",
                            "pretty_rule": "[\"cve_id = CVE-2024-1234\"]",
                            "justification_text": "Risk accepted for legacy hosts",
                            "justification_category": "RISK_ACCEPTED",
                            "approval_justification": null,
                            "requestor_name": "John Doe",
                            "requestor_email": "john.doe@example.com",
                            "approver_email": "security-lead@example.com",
                            "approver_name": "Jane Smith",
                            "created_ts": "2025-01-15T10:30:00Z",
                            "modified_ts": "2025-01-15T10:30:00Z",
                            "approval_ts": "2025-01-15T11:00:00Z",
                            "expiration_ts": "2025-06-30T23:59:59Z",
                            "impacted_issues_count": 150,
                            "backward_scan_status": "COMPLETED",
                            "backward_scan_ts": "2025-01-15T11:05:00Z",
                            "reversion_scan_status": null,
                            "reversion_scan_ts": null
                          }
                        ],
                        "filter_count": 1,
                        "total_count": 10
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "servers": [
          {
            "url": "https://api-{{fqdn}}"
          }
        ],
        "tags": [
          "Issues"
        ]
      }
    },
    "/public_api/v1/case/search": {
      "post": {
        "tags": [
          "Cases"
        ],
        "summary": "Retrieve Cases based on filters",
        "description": "This endpoint retrieves a list of cases that match the specified filter criteria. It supports filtering by `case_id`, `case_domain`, `status_progress`, `severity`, and `creation_time`, along with sorting and pagination.\n\nRequest Body:\n- `request_data`: Object containing filter criteria\n  - `filters`: Array of filter objects\n    - `field`: String (enum: 'case_id', 'case_domain', 'severity', 'creation_time', 'status_progress')\n    - `operator`: String (enum: 'in', 'gte', 'lte')\n    - `value`: Array of integers/strings or single integer\n- `search_from`: Integer (default: 0) - Starting index for pagination\n- `search_to`: Integer (default: 100) - Ending index for pagination\n- `sort`: Object for sorting results\n  - `field`: String (enum: 'creation_time', 'severity', 'case_id')\n  - `keyword`: String (enum: 'asc', 'desc') - Sort order",
        "operationId": "getCases",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "filters": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "enum": [
                                "case_id",
                                "case_domain",
                                "severity",
                                "creation_time",
                                "status_progress"
                              ],
                              "description": "Specifies the field to filter cases by."
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "in",
                                "gte",
                                "lte"
                              ],
                              "description": "Comparison operator to use with the filter."
                            },
                            "value": {
                              "description": "Value(s) for filtering the cases.",
                              "oneOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "integer"
                                  }
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "integer"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "search_from": {
                        "type": "integer",
                        "description": "Starting index for pagination.",
                        "default": 0
                      },
                      "search_to": {
                        "type": "integer",
                        "description": "Ending index for pagination.",
                        "default": 100
                      },
                      "sort": {
                        "type": "object",
                        "properties": {
                          "field": {
                            "type": "string",
                            "enum": [
                              "case_id",
                              "severity",
                              "creation_time"
                            ]
                          },
                          "keyword": {
                            "type": "string",
                            "enum": [
                              "asc",
                              "desc"
                            ],
                            "description": "Sort order (ascending or descending)."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response with cases",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "TOTAL_COUNT": {
                          "type": "integer"
                        },
                        "FILTER_COUNT": {
                          "type": "integer"
                        },
                        "DATA": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/Case"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "servers": [
          {
            "url": "https://api-{{fqdn}}"
          }
        ]
      }
    },
    "/public_api/v1/case/update/{case-id}": {
      "post": {
        "tags": [
          "Cases"
        ],
        "summary": "Update existing case",
        "description": "Update an existing case in the system. **Users can only update one case at a time.**  \n- At least one of the following fields is **mandatory**:  \n  - case_id  \n",
        "operationId": "updateCase",
        "parameters": [
          {
            "name": "case-id",
            "in": "path",
            "description": "Numeric ID of the case to update",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "update_data": {
                        "$ref": "#/components/schemas/UpdateCase"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Case updated successfully"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "servers": [
          {
            "url": "https://api-{{fqdn}}"
          }
        ]
      }
    },
    "/public_api/v1/case/artifacts/{case-id}": {
      "get": {
        "tags": [
          "Cases"
        ],
        "summary": "Retrieve Case Artifacts by Case ID",
        "description": "This endpoint retrieves the artifacts for a given case_id",
        "operationId": "getCaseArtifacts",
        "parameters": [
          {
            "name": "case-id",
            "in": "path",
            "description": "Numeric ID of the case",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with cases",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "TOTAL_COUNT": {
                          "type": "integer"
                        },
                        "FILTER_COUNT": {
                          "type": "integer"
                        },
                        "DATA": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/CaseArtifact"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "servers": [
          {
            "url": "https://api-{{fqdn}}"
          }
        ]
      }
    },
    "/public_api/v1/entries/get": {
      "post": {
        "tags": [
          "Cases"
        ],
        "summary": "Get War Room entries",
        "description": "Get the War Room entries for a specific case or alert. You can filter by timestamp, ID, and tags. You can also choose which type of entries you want to retrieve (notes, chat, attachments...).\nThe response depends on what type of entry you choose to retrieve.\n\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "operationId": "post-public_api-v1-entries-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": {
                  "id": {
                    "type": "string",
                    "description": "The ID of the case or alert you want to get the War Room entries of. For a case ID, prepend \"CASE-\" to the case ID. \nFor example, if the case ID is 3, the value of `id` should be `CASE-3`.\nFor alert IDs, just put the ID. For example, if the alert ID is 3, the value of `id` should be `3`."
                  },
                  "filter": {
                    "type": "object",
                    "properties": {
                      "firstID": {
                        "type": "string",
                        "description": "Return results starting from the investigation ID in `firstID` until the last investigation ID."
                      },
                      "lastID": {
                        "type": "string",
                        "description": "Return results starting from the first investigation ID until the investigation ID in `lastID`."
                      },
                      "pagesize": {
                        "type": "integer",
                        "description": "Filter the results by the number of entries you want returned. `\"pagesize\": 0` returns all the results."
                      },
                      "fromTime": {
                        "type": "string",
                        "description": "RFC3339 timestamp. Filter results from the time the entry is created until the latest entry."
                      },
                      "categories": {
                        "type": "array",
                        "description": "The categories you want to filter and the results you want to receive:\n- `tags`: Tags added to the investigation.\n- `chats`: Communication between team members in the form of chat messages.\n- `notes`: Any entries marked as notes.\n- `attachments`: Any files uploaded to the War Room in a playbook, script, or by the analyst.\n- `incidentInfo`: The case history.\n- `commandAndResults`: Command and return the result of the command.\n- `playbookTaskResult`: Return the task result.\n- `playbookTaskStartAndDone`: Task and return the task result.\n- `playbookErrors`: When there are no playbook errors, the response returned is `0`.",
                        "items": {
                          "type": "string",
                          "enum": [
                            "tags",
                            "chats",
                            "notes",
                            "attachments",
                            "incidentInfo",
                            "commandAndResults",
                            "playbookTaskResult",
                            "playbookTaskStartAndDone",
                            "playbookErrors"
                          ]
                        }
                      },
                      "tags": {
                        "type": "array",
                        "description": "If using the filter category of `tags`, include the tags you want to filter by.",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "id": "CASE-1",
                    "filter": {
                      "firstID": "q3452345",
                      "lastID": "50577055-a7f3-4328-8eec-5ff8433e21e6@2",
                      "pagesize": 4,
                      "fromTime": "2024-11-24T09:14:14Z",
                      "categories": [
                        "tags"
                      ],
                      "tags": [
                        "amir100",
                        "amir200"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "modified": {
                            "type": "string"
                          },
                          "created": {
                            "type": "string"
                          },
                          "user": {
                            "type": "string"
                          },
                          "parentContent": {
                            "type": "string"
                          },
                          "contents": {
                            "type": "string"
                          },
                          "format": {
                            "type": "string"
                          },
                          "investigationId": {
                            "type": "string"
                          },
                          "category": {
                            "type": "string"
                          },
                          "isTodo": {
                            "type": "boolean"
                          },
                          "tags": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "total": 2,
                      "data": [
                        {
                          "id": "f1db36f0-d00f-4470-818f-c6911d392f76@INCIDENT-1",
                          "modified": "2025-01-02T10:17:57.738577545Z",
                          "created": "2025-01-01T13:15:48.302901Z",
                          "user": "",
                          "parentContent": "!markAsNote entryIDs=\"1\"",
                          "contents": "done",
                          "format": "text",
                          "investigationId": "INCIDENT-1",
                          "category": "artifact",
                          "isTodo": false,
                          "tags": [
                            "amir100"
                          ]
                        },
                        {
                          "id": "0d6a01a4-58b5-4121-8db7-c371e38284db@INCIDENT-1",
                          "modified": "2025-01-02T10:22:26.6396269Z",
                          "created": "2025-01-02T09:11:51.747644Z",
                          "user": "",
                          "contents": "'aaaaaa'",
                          "format": "text",
                          "investigationId": "INCIDENT-1",
                          "category": "artifact",
                          "isTodo": false,
                          "tags": [
                            "amir200"
                          ]
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Filter by entry tags": {
                    "value": {
                      "total": 2,
                      "data": [
                        {
                          "id": "f1db36f0-d00f-4470-818f-c6911d392f76@INCIDENT-1",
                          "modified": "2025-01-02T10:17:57.738577545Z",
                          "created": "2025-01-01T13:15:48.302901Z",
                          "user": "",
                          "parentContent": "!markAsNote entryIDs=\"1\"",
                          "contents": "done",
                          "format": "text",
                          "investigationId": "INCIDENT-1",
                          "category": "artifact",
                          "isTodo": false,
                          "tags": [
                            "john100"
                          ]
                        },
                        {
                          "id": "0d6a01a4-58b5-4121-8db7-c371e38284db@INCIDENT-1",
                          "modified": "2025-01-02T10:22:26.6396269Z",
                          "created": "2025-01-02T09:11:51.747644Z",
                          "user": "",
                          "contents": "'aaaaaa'",
                          "format": "text",
                          "investigationId": "INCIDENT-1",
                          "category": "artifact",
                          "isTodo": false,
                          "tags": [
                            "john200"
                          ]
                        }
                      ]
                    }
                  },
                  "Filter by chat and take the last two results": {
                    "value": {
                      "total": 2,
                      "data": [
                        {
                          "id": "39101423-126c-4438-80d0-6c19dcd20f2e@INCIDENT-1",
                          "modified": "2024-12-31T10:08:54.656397851Z",
                          "created": "2024-12-31T10:08:54.656257Z",
                          "user": "",
                          "contents": "testing",
                          "format": "markdown",
                          "investigationId": "INCIDENT-1",
                          "category": "chat",
                          "isTodo": false
                        },
                        {
                          "id": "dbef4f98-a115-46c1-8e7c-b8e17ff98683@INCIDENT-1",
                          "modified": "2025-01-02T09:52:06.239744361Z",
                          "created": "2025-01-02T09:52:06.239717Z",
                          "user": "",
                          "contents": "testing 2",
                          "format": "markdown",
                          "investigationId": "INCIDENT-1",
                          "category": "chat",
                          "isTodo": false
                        }
                      ]
                    }
                  },
                  "Filter by notes and take the last two results": {
                    "value": {
                      "total": 2,
                      "data": [
                        {
                          "id": "8040c9b3-cbd7-4ac5-8178-46fb4f9e85cb@INCIDENT-2",
                          "modified": "2025-01-01T14:38:52.945021634Z",
                          "created": "2025-01-01T14:38:52.945006Z",
                          "user": "user@company.com",
                          "contents": "very important notes",
                          "format": "markdown",
                          "investigationId": "INCIDENT-2",
                          "category": "chat",
                          "note": true,
                          "isTodo": false
                        },
                        {
                          "id": "bb011b05-b9a4-45b1-8355-38d1673ea520@INCIDENT-2",
                          "modified": "2025-01-01T14:39:08.577516148Z",
                          "created": "2025-01-01T14:39:08.5775Z",
                          "user": "user@company.com",
                          "contents": "even more important notes",
                          "format": "markdown",
                          "investigationId": "INCIDENT-2",
                          "category": "chat",
                          "note": true,
                          "isTodo": false
                        }
                      ]
                    }
                  },
                  "Filter by playbook task result": {
                    "value": {
                      "total": 0,
                      "data": [
                        {
                          "id": "string",
                          "modified": "string",
                          "created": "string",
                          "user": "string",
                          "parentContent": "string",
                          "contents": "string",
                          "format": "string",
                          "investigationId": "string",
                          "category": "string",
                          "isTodo": true,
                          "tags": [
                            "string"
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "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/entries/insert": {
      "post": {
        "tags": [
          "Cases"
        ],
        "summary": "Add War Room entries",
        "description": "Add an entry to the cases or alert War Room, including data.\nNote: This endpoint only adds entries to existing War Rooms; it does not create them. Ensure that the War Room already exists before making this request.\n\nRequired license: **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**",
        "operationId": "post-public_api-v1-entries-insert",
        "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": {
                  "id": {
                    "type": "string",
                    "description": "The ID of the case or issue for which you want to add a War Room entry. For a case ID, prepend \"CASE-\" to the case ID. \nFor example, if the case ID is 3, the value of `id` should be `CASE-3`.\nFor alert IDs, just put the ID. For example, if the alert ID is 3, the value of `id` should be `3`."
                  },
                  "data": {
                    "type": "string",
                    "description": "The data you want to add or the command you want to run in the War Room."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "Id": "1",
                    "data": "!Print value=1000"
                  }
                }
              },
              "examples": {
                "Insert command to alert War Room": {
                  "value": {
                    "id": "1",
                    "data": "!Print value=1000"
                  }
                },
                "Insert command to case War Room": {
                  "value": {
                    "id": "CASE-1",
                    "data": "!Print value=1"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "version": {
                      "type": "integer"
                    },
                    "cacheVersn": {
                      "type": "integer"
                    },
                    "modified": {
                      "type": "string"
                    },
                    "sizeInBytes": {
                      "type": "integer"
                    },
                    "type": {
                      "type": "integer"
                    },
                    "created": {
                      "type": "string"
                    },
                    "incidentCreationTime": {
                      "type": "string"
                    },
                    "investigationCreationTime": {
                      "type": "string"
                    },
                    "retryTime": {
                      "type": "string"
                    },
                    "user": {
                      "type": "string"
                    },
                    "errorSource": {
                      "type": "string"
                    },
                    "contents": {
                      "type": "string"
                    },
                    "format": {
                      "type": "string"
                    },
                    "investigationId": {
                      "type": "string"
                    },
                    "file": {
                      "type": "string"
                    },
                    "fileID": {
                      "type": "string"
                    },
                    "parentId": {
                      "type": "string"
                    },
                    "pinned": {
                      "type": "boolean"
                    },
                    "fileMetadata": {
                      "nullable": true
                    },
                    "parentContent": {
                      "nullable": true
                    },
                    "parentEntryTruncated": {
                      "type": "boolean"
                    },
                    "system": {
                      "type": "string"
                    },
                    "reputations": {
                      "nullable": true
                    },
                    "category": {
                      "type": "string"
                    },
                    "note": {
                      "type": "boolean"
                    },
                    "isTodo": {
                      "type": "boolean"
                    },
                    "tags": {
                      "nullable": true
                    },
                    "tagsRaw": {
                      "nullable": true
                    },
                    "startDate": {
                      "type": "string"
                    },
                    "times": {
                      "type": "integer"
                    },
                    "recurrent": {
                      "type": "boolean"
                    },
                    "endingDate": {
                      "type": "string"
                    },
                    "timezoneOffset": {
                      "type": "integer"
                    },
                    "cronView": {
                      "type": "boolean"
                    },
                    "scheduled": {
                      "type": "boolean"
                    },
                    "scheduledEntryGuid": {
                      "type": "string"
                    },
                    "entryTask": {
                      "nullable": true
                    },
                    "taskId": {
                      "type": "string"
                    },
                    "playbookId": {
                      "type": "string"
                    },
                    "reputationSize": {
                      "type": "integer"
                    },
                    "contentsSize": {
                      "type": "integer"
                    },
                    "brand": {
                      "type": "string"
                    },
                    "InstanceID": {
                      "type": "string"
                    },
                    "IndicatorTimeline": {
                      "nullable": true
                    },
                    "Relationships": {
                      "nullable": true
                    },
                    "mirrored": {
                      "type": "boolean"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "id": "b30facee-53e8-4859-8c79-fa328ba0b4fd@1",
                      "version": 1,
                      "cacheVersn": 0,
                      "modified": "2025-01-29T13:48:41.591466357Z",
                      "sizeInBytes": 0,
                      "type": 1,
                      "created": "2025-01-29T13:48:41.591444333Z",
                      "incidentCreationTime": "2025-01-29T13:48:41.591444333Z",
                      "investigationCreationTime": "2024-12-25T14:43:07.697Z",
                      "retryTime": "0001-01-01T00:00:00Z",
                      "user": "",
                      "errorSource": "",
                      "contents": "!Print value=1",
                      "format": "text",
                      "investigationId": "1",
                      "file": "",
                      "fileID": "",
                      "parentId": "",
                      "pinned": false,
                      "fileMetadata": null,
                      "parentContent": null,
                      "parentEntryTruncated": false,
                      "system": "",
                      "reputations": null,
                      "category": "chat",
                      "note": false,
                      "isTodo": false,
                      "tags": null,
                      "tagsRaw": null,
                      "startDate": "0001-01-01T00:00:00Z",
                      "times": 0,
                      "recurrent": false,
                      "endingDate": "0001-01-01T00:00:00Z",
                      "timezoneOffset": 0,
                      "cronView": false,
                      "scheduled": false,
                      "scheduledEntryGuid": "",
                      "entryTask": null,
                      "taskId": "",
                      "playbookId": "",
                      "reputationSize": 0,
                      "contentsSize": 14,
                      "brand": "none",
                      "InstanceID": "",
                      "IndicatorTimeline": null,
                      "Relationships": null,
                      "mirrored": false
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "id": "b30fadee-53e3-4859-8c79-fa328ba7b4fd@1",
                      "version": 1,
                      "cacheVersn": 0,
                      "modified": "2025-01-29T13:48:41.591466357Z",
                      "sizeInBytes": 0,
                      "type": 1,
                      "created": "2025-01-29T13:48:41.591444333Z",
                      "incidentCreationTime": "2025-01-29T13:48:41.591444333Z",
                      "investigationCreationTime": "2024-12-25T14:43:07.697Z",
                      "retryTime": "0001-01-01T00:00:00Z",
                      "user": "",
                      "errorSource": "",
                      "contents": "!Print value=1",
                      "format": "text",
                      "investigationId": "1",
                      "file": "",
                      "fileID": "",
                      "parentId": "",
                      "pinned": false,
                      "fileMetadata": null,
                      "parentContent": null,
                      "parentEntryTruncated": false,
                      "system": "",
                      "reputations": null,
                      "category": "chat",
                      "note": false,
                      "isTodo": false,
                      "tags": null,
                      "tagsRaw": null,
                      "startDate": "0001-01-01T00:00:00Z",
                      "times": 0,
                      "recurrent": false,
                      "endingDate": "0001-01-01T00:00:00Z",
                      "timezoneOffset": 0,
                      "cronView": false,
                      "scheduled": false,
                      "scheduledEntryGuid": "",
                      "entryTask": null,
                      "taskId": "",
                      "playbookId": "",
                      "reputationSize": 0,
                      "contentsSize": 14,
                      "brand": "none",
                      "InstanceID": "",
                      "IndicatorTimeline": null,
                      "Relationships": null,
                      "mirrored": false
                    }
                  }
                }
              }
            }
          },
          "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/api_keys/get_api_keys": {
      "post": {
        "tags": [
          "API keys"
        ],
        "summary": "Get existing API keys",
        "description": "Get a list of API keys filtered by expiration date, role, or ID.\n\n**Required license:** **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**.",
        "operationId": "post-public_api-v1-api_keys-get_api_keys",
        "parameters": [
          {
            "name": "authorization",
            "in": "header",
            "description": "api_key",
            "required": true,
            "schema": {
              "type": "string",
              "example": "DCdIeow0xm73EwnxjPza1tdHTfZQv2eH7bTKlTPkgBHLj8aSjFzjgTE9bQUK1DidlWLrnYRhaYQ4PCIyNrNJbMUC6DOWi8ANIn1JWpMTE2neGvoDIRsKUbj6pJ1z7Gmr"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "api_key_id",
            "required": true,
            "schema": {
              "type": "string",
              "example": "2841"
            }
          },
          {
            "name": "x-xdr-timestamp",
            "in": "header",
            "description": "timestamp in milliseconds",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-nonce",
            "in": "header",
            "description": "64 byte random string",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-child-tenant-id",
            "in": "header",
            "description": "child tenant 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": [
                                "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": {
                              "type": "string",
                              "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": {
                              "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 XSOAR system.\r\n- `id`: Array of integers representing the API key IDs.",
                              "oneOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "array"
                                }
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "expiration",
                          "operator": "lte",
                          "value": 1710149747184
                        }
                      ]
                    }
                  }
                }
              },
              "examples": {
                "Get API keys and filter by expiration": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "expiration",
                          "operator": "gte",
                          "value": 1721149909250
                        }
                      ]
                    }
                  }
                },
                "Get API keys and filter by roles": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "roles",
                          "operator": "contains",
                          "value": [
                            "Public API Action"
                          ]
                        }
                      ]
                    }
                  }
                },
                "Get API keys and filter by ID": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "id",
                          "operator": "in",
                          "value": [
                            85
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer"
                              },
                              "creation_time": {
                                "type": "integer"
                              },
                              "created_by": {
                                "type": "string"
                              },
                              "user_name": {
                                "type": "string"
                              },
                              "roles": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "security_level": {
                                "type": "string"
                              },
                              "comment": {
                                "nullable": true
                              },
                              "expiration": {
                                "type": "integer"
                              }
                            }
                          }
                        },
                        "filter_count": {
                          "type": "integer"
                        },
                        "total_count": {
                          "type": "integer",
                          "description": "Note: The `total_count` value contains all API Keys, including ones that have expired."
                        }
                      }
                    }
                  },
                  "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
                      }
                    }
                  }
                },
                "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
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/api_keys/generate": {
      "post": {
        "tags": [
          "API keys"
        ],
        "summary": "Generate an API key",
        "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 AgentiX Enterprise** or **Cortex AgentiX Base**.",
        "operationId": "post-public_api-v1-api_keys-generate",
        "parameters": [
          {
            "name": "authorization",
            "in": "header",
            "description": "api_key",
            "required": true,
            "schema": {
              "type": "string",
              "example": "DCdIeow0xm73EwnxjPza1tdHTfZQv2eH7bTKlTPkgBHLj8aSjFzjgTE9bQUK1DidlWLrnYRhaYQ4PCIyNrNJbMUC6DOWi8ANIn1JWpMTE2neGvoDIRsKUbj6pJ1z7Gmr"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "api_key_id",
            "required": true,
            "schema": {
              "type": "string",
              "example": "2841"
            }
          },
          {
            "name": "x-xdr-timestamp",
            "in": "header",
            "description": "timestamp in milliseconds",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-nonce",
            "in": "header",
            "description": "64 byte random string",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-child-tenant-id",
            "in": "header",
            "description": "child tenant ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "properties": {
                      "roles": {
                        "type": "array",
                        "description": "A list of roles to be assigned to the API key.",
                        "items": {
                          "type": "string"
                        }
                      },
                      "security_level": {
                        "type": "string",
                        "enum": [
                          "standard",
                          "advanced"
                        ],
                        "description": "The seurity 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."
                      },
                      "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"
                      }
                    },
                    "required": [
                      "roles",
                      "security_level"
                    ]
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "roles": [
                        "Public API Action"
                      ],
                      "security_level": "standard"
                    }
                  }
                }
              },
              "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"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer"
                        },
                        "key": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "id": 87,
                        "key": "oZFaXmXALCeoWIJTb9ITSqUvl4OBLsUQqCeuYc5FdwMpmpY6QBn8OUePZiLMb"
                      }
                    }
                  }
                },
                "examples": {
                  "Standard API key": {
                    "value": {
                      "reply": {
                        "id": 4267,
                        "key": "oZFaXmXCLCdoWIXTb9ITSqUvl4OBLsUQgCeuZc5FdwMpmpY5QBn8OUePZiLMb"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/api_keys/delete": {
      "post": {
        "tags": [
          "API keys"
        ],
        "summary": "Delete API keys",
        "description": "Delete API keys by ID.\n\n**Required license:** **Cortex AgentiX Enterprise** or **Cortex AgentiX Base**.",
        "operationId": "post-public_api-v1-api_keys-delete",
        "parameters": [
          {
            "name": "authorization",
            "in": "header",
            "description": "api_key",
            "required": true,
            "schema": {
              "type": "string",
              "example": "DCdIeow0xm73EwnxjPza1tdHTfZQv2eH7bTKlTPkgBHLj8aSjFzjgTE9bQUK1DidlWLrnYRhaYQ4PCIyNrNJbMUC6DOWi8ANIn1JWpMTE2neGvoDIRsKUbj6pJ1z7Gmr"
            }
          },
          {
            "name": "x-xdr-auth-id",
            "in": "header",
            "description": "api_key_id",
            "required": true,
            "schema": {
              "type": "string",
              "example": "2841"
            }
          },
          {
            "name": "x-xdr-timestamp",
            "in": "header",
            "description": "timestamp in milliseconds",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-xdr-nonce",
            "in": "header",
            "description": "64 byte random string",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-child-tenant-id",
            "in": "header",
            "description": "child tenant 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": [
                                "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": {
                              "type": "string",
                              "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"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "request_data"
                ],
                "x-examples": {
                  "Example 1": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "id",
                          "operator": "in",
                          "value": [
                            112,
                            114
                          ]
                        }
                      ]
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "request_data": {
                      "filters": [
                        {
                          "field": "id",
                          "operator": "in",
                          "value": [
                            121,
                            134
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "object",
                      "properties": {
                        "update_count": {
                          "type": "integer",
                          "description": "The number of API keys deleted."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "reply": {
                        "update_count": 2
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "reply": {
                        "update_count": 2
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://api-yourfqdn"
          }
        ]
      }
    },
    "/public_api/v1/alerts/insert_parsed_alerts/": {
      "post": {
        "operationId": "insertParsedAlerts",
        "tags": [
          "Issues"
        ],
        "summary": "Insert parsed alerts",
        "description": "Upload alerts from external alert sources in Cortex XDR format. Cortex XDR displays alerts that are parsed successfully in related incidents and views.\n\nYou can send 600 alerts per minute. Each request can contain a maximum of 60 alerts.\n\nRequired license: **Cortex XDR Pro per Endpoint** or **Cortex XDR Pro per GB**",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_data": {
                    "type": "object",
                    "description": "The request payload containing the alerts to upload.",
                    "properties": {
                      "alerts": {
                        "type": "array",
                        "description": "The external alerts you want to upload to Cortex XDR.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "product": {
                              "type": "string",
                              "description": "The name of the product that generated the alert."
                            },
                            "vendor": {
                              "type": "string",
                              "description": "The name of the vendor that generated the alert."
                            },
                            "local_ip": {
                              "type": "string",
                              "description": "The local IPv4 address associated with the alert."
                            },
                            "local_port": {
                              "type": "string",
                              "description": "The local port associated with the alert."
                            },
                            "remote_ip": {
                              "type": "string",
                              "description": "The remote IPv4 address associated with the alert."
                            },
                            "remote_port": {
                              "type": "string",
                              "description": "The remote port associated with the alert."
                            },
                            "event_timestamp": {
                              "type": "integer",
                              "description": "The Unix timestamp (in milliseconds) of when the event occurred."
                            },
                            "severity": {
                              "type": "string",
                              "description": "The severity of the alert.",
                              "enum": ["Low", "Medium", "High", "Critical"]
                            },
                            "alert_name": {
                              "type": "string",
                              "description": "The name of the alert."
                            },
                            "alert_description": {
                              "type": "string",
                              "description": "A description of the alert."
                            },
                            "action_status": {
                              "type": "string",
                              "description": "The action status of the alert (for example, `Reported`)."
                            },
                            "local_ip_v6": {
                              "type": "string",
                              "description": "The local IPv6 address associated with the alert."
                            },
                            "remote_ip_v6": {
                              "type": "string",
                              "description": "The remote IPv6 address associated with the alert."
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "request_data": {
                      "alerts": [
                        {
                          "product": "VPN & Firewall-1",
                          "vendor": "<vendor name>",
                          "local_ip": "<IP address>",
                          "local_port": "<port>",
                          "remote_ip": "<IP address>",
                          "remote_port": "<port>",
                          "event_timestamp": 1543270652000,
                          "severity": "Low",
                          "alert_name": "Alert Name Example",
                          "alert_description": "Alert Description",
                          "action_status": "Reported",
                          "local_ip_v6": "<IPv6 address>",
                          "remote_ip_v6": "<IPv6 address>"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean",
                  "description": "`true` indicates the upload was successful."
                }
              }
            }
          },
          "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "api_key": []
          }
        ]
      }
    }
  },
  "tags": [
    {
      "name": "API keys",
      "description": "APIs for managing API keys"
    },
    {
      "name": "Audit log",
      "description": "APIs for audit logs"
    },
    {
      "name": "Authentication settings",
      "description": "APIs for authentication settings, such as IdP and SSO"
    },
    {
      "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": "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": "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."
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    },
    "responses": {
      "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"
                }
              }
            }
          }
        }
      }
    },
    "examples": {
      "default": {
        "value": {
          "request_data": {
            "stream_id": "563c5e24-===-9a1f8139d3c5",
            "is_gzip_compressed": true
          }
        }
      }
    },
    "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."
          }
        }
      },
      "CreateIssue": {
        "type": "object",
        "properties": {
          "owner": {
            "type": "string",
            "example": "CWP"
          },
          "name": {
            "type": "string",
            "example": "Unauthorized Access Detected"
          },
          "description": {
            "type": "string",
            "example": "An unauthorized login attempt was detected from an unknown IP address."
          },
          "observation_time": {
            "type": "integer",
            "format": "int64",
            "example": 1700000000000
          },
          "domain": {
            "type": "string",
            "example": "SECURITY"
          },
          "category": {
            "type": "string",
            "example": "CONFIGURATION"
          },
          "asset_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "asset-456"
            ]
          },
          "mitre_tactics": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "TA0001",
              "TA0002"
            ]
          },
          "mitre_techniques": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "T1003",
              "T1059"
            ]
          },
          "type": {
            "type": "string",
            "example": "Threat Intelligence"
          },
          "extended_description": {
            "type": "string",
            "example": "This alert was triggered due to multiple failed login attempts within a short time frame."
          },
          "impact": {
            "type": "string",
            "example": "Potential unauthorized system access"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "critical",
              "network"
            ]
          },
          "is_excluded": {
            "type": "boolean",
            "example": false
          },
          "is_starred": {
            "type": "boolean",
            "example": true
          },
          "assigned_to": {
            "type": "string",
            "example": "security_team_lead"
          },
          "assigned_to_pretty": {
            "type": "string",
            "example": "Alice Smith"
          },
          "severity": {
            "type": "string",
            "enum": [
              "INFO",
              "LOW",
              "MEDIUM",
              "HIGH",
              "CRITICAL"
            ],
            "example": "HIGH"
          },
          "normalized_fields": {
            "$ref": "#/components/schemas/NormalizedFields"
          },
          "custom_fields": {
            "type": "object"
          }
        },
        "required": [
          "name",
          "description",
          "observation_time",
          "domain",
          "category",
          "severity"
        ]
      },
      "CreateIssueException": {
        "type": "object",
        "description": "Request data for creating a new issue exception.",
        "required": [
          "name",
          "rule",
          "justification_text",
          "justification_category",
          "approver_email",
          "expiration_ts"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Human-readable name for the exception"
          },
          "external_exception_id": {
            "type": "string",
            "nullable": true,
            "description": "Optional external tracking ID for the exception"
          },
          "rule": {
            "type": "string",
            "description": "JSON-encoded filter rule defining which issues this exception applies to. Uses the standard Cortex filter format with `AND`/`OR` structure. The value of each `SEARCH_FIELD` must be one of the supported field names — see [Issue exception supported fields](https://app.gitbook.com/s/ZuJbX2x7VQJhNovscCwE/issues-apis/issues-papi-tables#supported-fields-for-issue-exception-filters) for the complete list."
          },
          "justification_text": {
            "type": "string",
            "description": "Free-text justification explaining why this exception is needed"
          },
          "justification_category": {
            "type": "string",
            "enum": [
              "COMPENSATING_CONTROL",
              "PLANNED_REMEDIATION",
              "RISK_ACCEPTED",
              "VENDOR_DEPENDENCY"
            ],
            "description": "Category of justification for the exception"
          },
          "approval_justification": {
            "type": "string",
            "description": "Free-text justification explaining why this exception is approved or rejected"
          },
          "approver_email": {
            "type": "string",
            "description": "Email of the designated approver. Required when the tenant has approval workflow enabled. Must match a registered approver."
          },
          "expiration_ts": {
            "type": "string",
            "format": "date-time",
            "description": "Expiration date/time for the exception. Accepts ISO 8601 date-time or date-only format. Date-only values are normalized to end-of-day UTC (23:59:59)."
          }
        }
      },
      "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"
          }
        }
      },
      "Issue": {
        "type": "object",
        "properties": {
          "_insert_time": {
            "type": "string",
            "format": "date-time",
            "example": "2023-05-15T10:30:00Z"
          },
          "owner": {
            "type": "string",
            "example": "CWP"
          },
          "external_id": {
            "type": "string",
            "example": "EXT-12345"
          },
          "name": {
            "type": "string",
            "example": "Suspicious Network Activity"
          },
          "description": {
            "type": "string",
            "example": "Unusual outbound traffic detected from internal server"
          },
          "observation_time": {
            "type": "integer",
            "format": "int64",
            "example": 1621234567890
          },
          "domain": {
            "type": "string",
            "example": "SECURITY"
          },
          "detection_method": {
            "type": "string",
            "example": "CSPM_SCANNER"
          },
          "detection_rule_id": {
            "type": "string",
            "example": "RULE-9876"
          },
          "category": {
            "type": "string",
            "example": "CONFIGURATION"
          },
          "finding_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "013543ea00ea9893bcde59cbfdc5992f"
            ]
          },
          "asset_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "123"
            ]
          },
          "mitre_tactics": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "COLLECTION"
            ]
          },
          "mitre_techniques": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "ABUSE_ELEVATION_CONTROL_MECHANISM"
            ]
          },
          "type": {
            "type": "string",
            "example": "Identity Security"
          },
          "remediation": {
            "type": "string",
            "example": "Isolate affected system and investigate traffic patterns"
          },
          "extended_description": {
            "type": "string",
            "example": "Detailed analysis of the network traffic patterns and potential impact"
          },
          "impact": {
            "type": "string",
            "example": "Potential data exfiltration or command and control activity"
          },
          "issue_id": {
            "type": "integer",
            "example": 123
          },
          "last_modified": {
            "type": "integer",
            "format": "int64",
            "example": 1621235678901
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "critical",
              "investigation_required"
            ]
          },
          "is_excluded": {
            "type": "boolean",
            "example": false
          },
          "is_starred": {
            "type": "boolean",
            "example": true
          },
          "assigned_to": {
            "type": "string",
            "example": "alice.smith@example.com"
          },
          "assigned_to_pretty": {
            "type": "string",
            "example": "Alice Smith"
          },
          "status": {
            "type": "string",
            "enum": [
              "New",
              "In Progress",
              "Resolved"
            ],
            "example": "Resolved"
          },
          "status_resolution_reason": {
            "type": "string",
            "enum": [
              "RESOLVED_KNOWN_ISSUE",
              "RESOLVED_DUPLICATE",
              "RESOLVED_FALSE_POSITIVE",
              "RESOLVED_OTHER",
              "RESOLVED_TRUE_POSITIVE",
              "RESOLVED_SECURITY_TESTING",
              "RESOLVED_FIXED",
              "RESOLVED_DISMISSED"
            ],
            "example": "RESOLVED_OTHER"
          },
          "status_resolution_comment": {
            "type": "string",
            "example": "Investigating the source of suspicious traffic"
          },
          "severity": {
            "type": "string",
            "enum": [
              "INFO",
              "LOW",
              "MEDIUM",
              "HIGH",
              "CRITICAL"
            ],
            "example": "HIGH"
          },
          "resolution_time": {
            "type": "integer",
            "format": "int64",
            "example": 1621240000000
          },
          "normalized_fields": {
            "$ref": "#/components/schemas/NormalizedFields"
          },
          "custom_fields": {
            "type": "object"
          }
        }
      },
      "IssueException": {
        "type": "object",
        "description": "Full issue exception object as returned by the public API",
        "properties": {
          "exception_id": {
            "type": "integer",
            "nullable": true,
            "description": "Auto-incremented exception ID"
          },
          "external_exception_id": {
            "type": "string",
            "nullable": true,
            "description": "External tracking ID"
          },
          "name": {
            "type": "string",
            "description": "Exception name"
          },
          "status": {
            "type": "string",
            "enum": [
              "APPROVED",
              "DISABLED",
              "EXPIRED",
              "NO_DECISION_MADE",
              "PENDING_DECISION",
              "REJECTED",
              "SELF_APPROVED"
            ],
            "description": "Exception status"
          },
          "rule": {
            "type": "string",
            "description": "JSON-encoded filter rule"
          },
          "pretty_rule": {
            "type": "string",
            "nullable": true,
            "description": "Human-readable representation of the rule"
          },
          "justification_text": {
            "type": "string",
            "description": "Justification text"
          },
          "justification_category": {
            "type": "string",
            "enum": [
              "COMPENSATING_CONTROL",
              "PLANNED_REMEDIATION",
              "RISK_ACCEPTED",
              "VENDOR_DEPENDENCY"
            ],
            "nullable": true,
            "description": "Justification category"
          },
          "approval_justification": {
            "type": "string",
            "nullable": true,
            "description": "Approval decision justification"
          },
          "requestor_name": {
            "type": "string",
            "description": "Name of the user who requested the exception"
          },
          "requestor_email": {
            "type": "string",
            "description": "Email of the user who requested the exception"
          },
          "approver_email": {
            "type": "string",
            "nullable": true,
            "description": "Email of the assigned approver"
          },
          "approver_name": {
            "type": "string",
            "nullable": true,
            "description": "Name of the assigned approver"
          },
          "created_ts": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Creation timestamp"
          },
          "modified_ts": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Last modification timestamp"
          },
          "approval_ts": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Approval decision timestamp"
          },
          "expiration_ts": {
            "type": "string",
            "format": "date-time",
            "description": "Exception expiration timestamp"
          },
          "impacted_issues_count": {
            "type": "integer",
            "description": "Number of issues impacted by this exception"
          },
          "backward_scan_status": {
            "type": "string",
            "enum": [
              "COMPLETED",
              "FAILED",
              "IN_PROGRESS",
              "PENDING"
            ],
            "nullable": true,
            "description": "Status of backward scan"
          },
          "backward_scan_ts": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Timestamp of the last backward scan"
          },
          "reversion_scan_status": {
            "type": "string",
            "enum": [
              "COMPLETED",
              "FAILED",
              "IN_PROGRESS",
              "PENDING"
            ],
            "nullable": true,
            "description": "Reversion scan status"
          },
          "reversion_scan_ts": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Timestamp of the last reversion scan"
          }
        }
      },
      "UpdateIssue": {
        "type": "object",
        "properties": {
          "severity": {
            "type": "string",
            "enum": [
              "INFO",
              "LOW",
              "MEDIUM",
              "HIGH",
              "CRITICAL"
            ],
            "example": "HIGH"
          },
          "status": {
            "type": "string",
            "enum": [
              "New",
              "In Progress",
              "Resolved"
            ],
            "example": "Resolved"
          },
          "status_resolution_reason": {
            "type": "string",
            "enum": [
              "RESOLVED_KNOWN_ISSUE",
              "RESOLVED_DUPLICATE",
              "RESOLVED_FALSE_POSITIVE",
              "RESOLVED_OTHER",
              "RESOLVED_TRUE_POSITIVE",
              "RESOLVED_SECURITY_TESTING",
              "RESOLVED_FIXED",
              "RESOLVED_DISMISSED"
            ],
            "example": "RESOLVED_OTHER"
          },
          "status_resolution_comment": {
            "type": "string",
            "example": "Issue has been marked as a false positive."
          }
        },
        "required": [
          "severity",
          "status"
        ]
      },
      "Case": {
        "type": "object",
        "properties": {
          "case_id": {
            "type": "string",
            "description": "Unique identifier for the case",
            "example": "123"
          },
          "creation_time": {
            "type": "string",
            "description": "Timestamp of case creation",
            "format": "date-time",
            "example": "2024-02-26T12:34:56Z"
          },
          "owner": {
            "type": "string",
            "description": "Owner of the case",
            "example": "CWP"
          },
          "case_domain": {
            "type": "string",
            "description": "Domain associated with the case",
            "example": "SECURITY"
          },
          "auto_resolve_case": {
            "type": "boolean",
            "description": "Indicates if the case is auto-resolved",
            "example": false
          },
          "custom_fields": {
            "type": "object",
            "description": "Custom fields for additional metadata",
            "example": {
              "priority": "High",
              "incident_id": "INC98765"
            }
          },
          "status_progress": {
            "type": "string",
            "enum": [
              "NEW",
              "UNDER_INVESTIGATION",
              "RESOLVED"
            ],
            "example": "UNDER_INVESTIGATION"
          },
          "resolve_reason": {
            "type": "string",
            "enum": [
              "RESOLVED_KNOWN_ISSUE",
              "RESOLVED_DUPLICATE",
              "RESOLVED_FALSE_POSITIVE",
              "RESOLVED_OTHER",
              "RESOLVED_TRUE_POSITIVE",
              "RESOLVED_SECURITY_TESTING",
              "RESOLVED_FIXED",
              "RESOLVED_DISMISSED"
            ],
            "example": "RESOLVED_OTHER"
          },
          "resolve_comment": {
            "type": "string",
            "example": "Case has been marked as a false positive."
          },
          "last_modified": {
            "type": "integer",
            "description": "Timestamp of last modification",
            "format": "int64",
            "example": 1708950896000
          },
          "score": {
            "type": "integer",
            "description": "Score assigned to the case",
            "format": "int32",
            "example": 85
          },
          "severity": {
            "type": "string",
            "enum": [
              "INFO",
              "LOW",
              "MEDIUM",
              "HIGH",
              "CRITICAL"
            ],
            "example": "HIGH"
          },
          "description": {
            "type": "string",
            "description": "Detailed description of the case",
            "example": "Unauthorized access detected"
          },
          "scoring_type": {
            "type": "string",
            "description": "Scoring type applied to the case",
            "example": "Risk-Based"
          },
          "assigned_to": {
            "type": "string",
            "description": "ID of the assigned user",
            "example": "U56789"
          },
          "assigned_to_name": {
            "type": "string",
            "description": "Name of the assigned user",
            "example": "JaneSmith"
          },
          "is_cloud": {
            "type": "boolean",
            "description": "Indicates if the case is cloud-based",
            "example": true
          },
          "is_automated": {
            "type": "boolean",
            "description": "Indicates if the case is automated",
            "example": false
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Unique identifier for the issue",
              "example": "123"
            }
          },
          "assets": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Unique identifier for the asset",
              "example": "6f1d9b9361f8a6964bf3e79e6667e5fe"
            }
          },
          "artifacts": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Unique identifier for the artifact",
              "example": "12345"
            }
          }
        }
      },
      "UpdateCase": {
        "type": "object",
        "properties": {
          "status_progress": {
            "type": "string",
            "enum": [
              "NEW",
              "UNDER_INVESTIGATION",
              "RESOLVED"
            ],
            "example": "RESOLVED"
          },
          "resolve_reason": {
            "type": "string",
            "enum": [
              "RESOLVED_KNOWN_ISSUE",
              "RESOLVED_DUPLICATE",
              "RESOLVED_FALSE_POSITIVE",
              "RESOLVED_OTHER",
              "RESOLVED_TRUE_POSITIVE",
              "RESOLVED_SECURITY_TESTING",
              "RESOLVED_FIXED",
              "RESOLVED_DISMISSED"
            ],
            "example": "RESOLVED_OTHER"
          },
          "resolve_comment": {
            "type": "string",
            "example": "Case has been marked as a false positive."
          }
        },
        "required": [
          "status_progress"
        ]
      },
      "CaseArtifact": {
        "type": "object",
        "properties": {
          "case_id": {
            "type": "integer",
            "description": "Case ID for which the artifacts are fetched",
            "example": 1234
          },
          "network_artifacts": {
            "type": "object",
            "properties": {
              "DATA": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Artifact"
                }
              },
              "TOTAL_COUNT": {
                "type": "integer",
                "example": 10
              }
            }
          },
          "file_artifacts": {
            "type": "object",
            "properties": {
              "DATA": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Artifact"
                }
              },
              "TOTAL_COUNT": {
                "type": "integer",
                "example": 10
              }
            }
          }
        }
      },
      "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_malicous": {
            "type": "boolean",
            "description": "Indicates if the artifact is malicous",
            "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"
          }
        }
      }
    }
  }
}
