Events

Save (or overwrite) an events-page search

Stores one named search. Re-saving the same name in the same view overwrites it, because that is how a search is edited. name is 1 to 80 characters and is trimmed; query is at most 4096 characters and is a URL query string with no leading '?'; view must be python, browser, go, c, cpp, rust, node, solidity, java, bash, ruby or php. The reply is the view's whole list after the save, so the new row's id is available without a second call. Cookie callers must pass CSRF.

This is a write: a read-only API key is refused with 403.

post/api/event_searches/

Request

  • Base URL: https://eyalsec.com
  • URL: https://eyalsec.com/api/event_searches/
  • Auth: one of:
    • API key in header X-API-Key
    • API key in cookie __Host-es2session

Request body

namestring required

Label shown in the saved-search picker. 1 to 80 characters.

viewstring required

python, browser, go, c, cpp, rust, node, solidity, java, bash, ruby or php.

querystring

The events-page query string, without the leading '?'. At most 4096 characters. Empty saves a search with no filters.

Response

Created.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.