Skip to content

WHY THIS CODE THROWS 403? #704

Answered by jshcodes
NSH531 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @NSH531 -

This code does not make use of FalconPy, so I'm not entirely sure. Since this is a GET operation, passing a files array (especially an empty one) is probably unexpected, and the data payload appears to be malformed. You might also need to check your API key to make sure it has access to the Alerts scope.

The Alerts Service Class is being worked on this week, so GetQueriesAlertsV1 should be available sometime next week.

In the interim, you can access this operation using the override functionality provided by the Uber Class.

from falconpy import APIHarness
uber = APIHarness(client_id="ID_HERE", client_secret="SECRET_HERE")

result = uber.command("", override="GET,/alerts/queri…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jlangdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
alerts Alerts issues or questions
2 participants