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
Example request
{
"name": "test query",
"repeat_interval": 10
}Response
Query
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
namenew-optional-request-property
- ○
the request property
repeat_intervalbecame optionalrequest-property-became-optional
- ○
added the optional property
nameto the response with the200statusresponse-optional-property-added
- ○
- ○
api tag
stats_serviceaddedapi-tag-added
- ○
api tag
dbremovedapi-tag-removed
- ○
- ○
added the optional property
gpt_messageto the response with the200statusresponse-optional-property-added
- ○
- ○
endpoint added
endpoint-added
- ○