v49

OpenAPI 3.1.1raw.githubusercontent.com2026-04-2200132.4 KB
stats_service

Update query

patch/api/v1/services/stats/query/{id}

Path parameters

idstring required
Example:03cfc582-b1c3-410a-a9a7-1f3afe326b3b

Query ID

Query parameters

project_idinteger required

Project ID

Request body

namestring
repeat_intervalinteger

cyclic execution of requests

Example request

{
  "name": "test query",
  "repeat_interval": 10
}

Response

Query

namestring
addressesstring[]
only_betweenboolean
sqlstring
gpt_messagestring
repeat_intervalinteger

cyclic execution of requests

Example response

{
  "name": "test query",
  "sql": "select id from accounts limit 1",
  "gpt_message": "give me random id from accounts table",
  "repeat_interval": 10
}