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
}

Changes

Changed in 4 of the 50 revisions of this API.7

    • added the new optional request property name

      new-optional-request-property

    • the request property repeat_interval became optional

      request-property-became-optional

    • added the optional property name to the response with the 200 status

      response-optional-property-added

    • api tag stats_service added

      api-tag-added

    • api tag db removed

      api-tag-removed

    • added the optional property gpt_message to the response with the 200 status

      response-optional-property-added

    • endpoint added

      endpoint-added