Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
curl -X POST -k -H "Content-Type: application/json" "https://apps.sematext.com/logsene-reports/api/v2/query/add" -d '
{
  "apiKey":"a9092d95-d062-4499-ad0b-a1b43fadb9b5",
  "appToken":"12c91563-ba95-4a73-aa5a-08fe04b94631",
  "query":{
    "queryName" : "Hot",
    "queryString" : "tag:(hot)",
  }
}'

Example of a success response (with HTTP code 200):

Code Block
{
  "success" : true,
  "message" : "Query created",
  "data" : {
    "query":{
      "id" : 50,
      "queryName" : "Hot",
      "queryString" : "tag:(hot)",
    }
  }
}

Delete Saved Query

API callHTTP MethodAttributesDescription
https://apps.sematext.com/logsene-reports/api/v2/query/delete/{queryId}DELETE

apiKey (of owner of app represented with "token")

appToken (of app to which saved query belongs to)

 

Deletes a single saved query

...