def send_to_threat_intel(stix_batch):
    """
    send stix indicators to Microsoft Sentinel Threat Intel api
    """

    uri = f"https://sentinelus.azure-api.net/workspaces/{WORKSPACE_ID}/threatintelligenceindicators:upload?api-version=2022-07-01"
    headers = {
        "Authorization": f"Bearer {AADToken.get_token()}",
        "Content-Type": "application/json",
    }
    body = {
        "SourceSystem": "CrowdStrike Falcon Adversary Intelligence",
        "Indicators": stix_batch,
    }
    response = requests.post(uri, data=json.dumps(body), headers=headers)

    if response.status_code not in (200, 201):
        logging.error(f"Error Code: {response.status_code}")
        logging.error(f"Error Response: {response.text}")
        raise APIError(response.text)
    elif response.status_code == 401:
        logging.error(f"Error Code: {response.status_code}")
        logging.error(f"Error Response: {response.text}")
        raise UnauthorizedTokenException(response.text)

    return response

    send stix indicators to Microsoft Sentinel Threat Intel api
    
Solutions/CrowdStrike Falcon Endpoint Protection/Data Connectors/CrowdStrikeFalconAdversaryIntelligence/CrowdStrikeFalconThreatIntelConnector/__init__.py