{ "name": "UpdateWarehouseQuery", "fully_qualified_name": "PosthogApi.UpdateWarehouseQuery@0.1.0", "description": "Updates a saved query in the data warehouse.\n\nUse this tool to update an existing saved query within a DataDog environment's warehouse. It should be called when changes to the saved query parameters or configuration are required.", "toolkit": { "name": "ArcadePosthogApi", "description": null, "version": "0.1.0" }, "input": { "parameters": [ { "name": "saved_query_uuid", "required": true, "description": "A UUID identifying the specific saved query to update in the data warehouse.", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "A UUID string identifying this data warehouse saved query." }, "inferrable": true, "http_endpoint_parameter_name": "id" }, { "name": "project_identifier", "required": true, "description": "The unique ID of the project to access. Obtain this by calling /api/projects/.", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/." }, "inferrable": true, "http_endpoint_parameter_name": "project_id" }, { "name": "saved_query_details", "required": true, "description": "A JSON object containing details to update the saved query, such as query content, status, and other metadata.", "value_schema": { "val_type": "json", "inner_val_type": null, "enum": null, "properties": { "id": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "deleted": { "val_type": "boolean", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "name": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "query": { "val_type": "json", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "HogQL query" }, "created_by": { "val_type": "json", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "created_at": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "sync_frequency": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "columns": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "status": { "val_type": "json", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "The status of when this SavedQuery last ran.\n\n* `Cancelled` - Cancelled\n* `Modified` - Modified\n* `Completed` - Completed\n* `Failed` - Failed\n* `Running` - Running" }, "last_run_at": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "latest_error": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "edited_history_id": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "latest_history_id": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "soft_update": { "val_type": "boolean", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "is_materialized": { "val_type": "boolean", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null } }, "inner_properties": null, "description": "" }, "inferrable": true, "http_endpoint_parameter_name": "requestBody" } ] }, "output": { "description": "Response from the API endpoint 'environments_warehouse_saved_queries_update'.", "available_modes": [ "value", "error", "null" ], "value_schema": { "val_type": "json", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null } }, "requirements": { "authorization": null, "secrets": [ { "key": "POSTHOG_SERVER_URL" }, { "key": "POSTHOG_PERSONAL_API_KEY" } ], "metadata": null }, "deprecation_message": null, "metadata": { "object_type": "api_wrapper_tool", "version": "1.1.0", "description": "Tools that enable LLMs to interact directly with the Datadog API." }, "http_endpoint": { "metadata": { "object_type": "http_endpoint", "version": "1.2.0", "description": "" }, "url": "{posthog_server_url}/api/environments/{project_id}/warehouse_saved_queries/{id}/", "http_method": "PUT", "headers": {}, "parameters": [ { "name": "id", "tool_parameter_name": "saved_query_uuid", "description": "A UUID string identifying this data warehouse saved query.", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "A UUID string identifying this data warehouse saved query." }, "accepted_as": "path", "required": true, "deprecated": false, "default": null, "documentation_urls": [] }, { "name": "project_id", "tool_parameter_name": "project_identifier", "description": "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/." }, "accepted_as": "path", "required": true, "deprecated": false, "default": null, "documentation_urls": [] }, { "name": "requestBody", "tool_parameter_name": "saved_query_details", "description": "", "value_schema": { "val_type": "json", "inner_val_type": null, "enum": null, "properties": { "id": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "deleted": { "val_type": "boolean", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "name": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "query": { "val_type": "json", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "HogQL query" }, "created_by": { "val_type": "json", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "created_at": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "sync_frequency": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "columns": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "status": { "val_type": "json", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "The status of when this SavedQuery last ran.\n\n* `Cancelled` - Cancelled\n* `Modified` - Modified\n* `Completed` - Completed\n* `Failed` - Failed\n* `Running` - Running" }, "last_run_at": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "latest_error": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "edited_history_id": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "latest_history_id": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "soft_update": { "val_type": "boolean", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "is_materialized": { "val_type": "boolean", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null } }, "inner_properties": null, "description": "" }, "accepted_as": "body", "required": true, "deprecated": false, "default": null, "documentation_urls": [] } ], "documentation_urls": [], "secrets": [ { "arcade_key": "POSTHOG_SERVER_URL", "parameter_name": "posthog_server_url", "accepted_as": "path", "formatted_value": null, "description": "", "is_auth_token": false }, { "arcade_key": "POSTHOG_PERSONAL_API_KEY", "parameter_name": "Authorization", "accepted_as": "header", "formatted_value": "Bearer {authorization}", "description": "", "is_auth_token": false } ], "request_body_spec": "{\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"format\": \"uuid\",\n \"readOnly\": true\n },\n \"deleted\": {\n \"type\": \"boolean\",\n \"nullable\": true\n },\n \"name\": {\n \"type\": \"string\",\n \"maxLength\": 128\n },\n \"query\": {\n \"nullable\": true,\n \"description\": \"HogQL query\"\n },\n \"created_by\": {\n \"allOf\": [\n {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"integer\",\n \"readOnly\": true\n },\n \"uuid\": {\n \"type\": \"string\",\n \"format\": \"uuid\",\n \"readOnly\": true\n },\n \"distinct_id\": {\n \"type\": \"string\",\n \"nullable\": true,\n \"maxLength\": 200\n },\n \"first_name\": {\n \"type\": \"string\",\n \"maxLength\": 150\n },\n \"last_name\": {\n \"type\": \"string\",\n \"maxLength\": 150\n },\n \"email\": {\n \"type\": \"string\",\n \"format\": \"email\",\n \"title\": \"Email address\",\n \"maxLength\": 254\n },\n \"is_email_verified\": {\n \"type\": \"boolean\",\n \"nullable\": true\n },\n \"hedgehog_config\": {\n \"type\": \"object\",\n \"additionalProperties\": {},\n \"nullable\": true,\n \"readOnly\": true\n },\n \"role_at_organization\": {\n \"nullable\": true,\n \"oneOf\": [\n {\n \"enum\": [\n \"engineering\",\n \"data\",\n \"product\",\n \"founder\",\n \"leadership\",\n \"marketing\",\n \"sales\",\n \"other\"\n ],\n \"type\": \"string\",\n \"description\": \"* `engineering` - Engineering\\n* `data` - Data\\n* `product` - Product Management\\n* `founder` - Founder\\n* `leadership` - Leadership\\n* `marketing` - Marketing\\n* `sales` - Sales / Success\\n* `other` - Other\"\n },\n {\n \"enum\": [\n \"\"\n ]\n },\n {\n \"enum\": [\n null\n ]\n }\n ]\n }\n },\n \"required\": [\n \"email\",\n \"hedgehog_config\",\n \"id\",\n \"uuid\"\n ]\n }\n ],\n \"readOnly\": true\n },\n \"created_at\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"readOnly\": true\n },\n \"sync_frequency\": {\n \"type\": \"string\",\n \"readOnly\": true\n },\n \"columns\": {\n \"type\": \"string\",\n \"readOnly\": true\n },\n \"status\": {\n \"readOnly\": true,\n \"nullable\": true,\n \"description\": \"The status of when this SavedQuery last ran.\\n\\n* `Cancelled` - Cancelled\\n* `Modified` - Modified\\n* `Completed` - Completed\\n* `Failed` - Failed\\n* `Running` - Running\",\n \"oneOf\": [\n {\n \"enum\": [\n \"Cancelled\",\n \"Modified\",\n \"Completed\",\n \"Failed\",\n \"Running\"\n ],\n \"type\": \"string\",\n \"description\": \"* `Cancelled` - Cancelled\\n* `Modified` - Modified\\n* `Completed` - Completed\\n* `Failed` - Failed\\n* `Running` - Running\"\n },\n {\n \"enum\": [\n null\n ]\n }\n ]\n },\n \"last_run_at\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"nullable\": true,\n \"readOnly\": true\n },\n \"latest_error\": {\n \"type\": \"string\",\n \"readOnly\": true,\n \"nullable\": true\n },\n \"edited_history_id\": {\n \"type\": \"string\",\n \"writeOnly\": true,\n \"nullable\": true\n },\n \"latest_history_id\": {\n \"type\": \"string\",\n \"readOnly\": true\n },\n \"soft_update\": {\n \"type\": \"boolean\",\n \"writeOnly\": true,\n \"nullable\": true\n },\n \"is_materialized\": {\n \"type\": \"boolean\",\n \"readOnly\": true,\n \"nullable\": true\n }\n },\n \"required\": [\n \"columns\",\n \"created_at\",\n \"created_by\",\n \"id\",\n \"is_materialized\",\n \"last_run_at\",\n \"latest_error\",\n \"latest_history_id\",\n \"name\",\n \"status\",\n \"sync_frequency\"\n ]\n }\n },\n \"application/x-www-form-urlencoded\": {\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"format\": \"uuid\",\n \"readOnly\": true\n },\n \"deleted\": {\n \"type\": \"boolean\",\n \"nullable\": true\n },\n \"name\": {\n \"type\": \"string\",\n \"maxLength\": 128\n },\n \"query\": {\n \"nullable\": true,\n \"description\": \"HogQL query\"\n },\n \"created_by\": {\n \"allOf\": [\n {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"integer\",\n \"readOnly\": true\n },\n \"uuid\": {\n \"type\": \"string\",\n \"format\": \"uuid\",\n \"readOnly\": true\n },\n \"distinct_id\": {\n \"type\": \"string\",\n \"nullable\": true,\n \"maxLength\": 200\n },\n \"first_name\": {\n \"type\": \"string\",\n \"maxLength\": 150\n },\n \"last_name\": {\n \"type\": \"string\",\n \"maxLength\": 150\n },\n \"email\": {\n \"type\": \"string\",\n \"format\": \"email\",\n \"title\": \"Email address\",\n \"maxLength\": 254\n },\n \"is_email_verified\": {\n \"type\": \"boolean\",\n \"nullable\": true\n },\n \"hedgehog_config\": {\n \"type\": \"object\",\n \"additionalProperties\": {},\n \"nullable\": true,\n \"readOnly\": true\n },\n \"role_at_organization\": {\n \"nullable\": true,\n \"oneOf\": [\n {\n \"enum\": [\n \"engineering\",\n \"data\",\n \"product\",\n \"founder\",\n \"leadership\",\n \"marketing\",\n \"sales\",\n \"other\"\n ],\n \"type\": \"string\",\n \"description\": \"* `engineering` - Engineering\\n* `data` - Data\\n* `product` - Product Management\\n* `founder` - Founder\\n* `leadership` - Leadership\\n* `marketing` - Marketing\\n* `sales` - Sales / Success\\n* `other` - Other\"\n },\n {\n \"enum\": [\n \"\"\n ]\n },\n {\n \"enum\": [\n null\n ]\n }\n ]\n }\n },\n \"required\": [\n \"email\",\n \"hedgehog_config\",\n \"id\",\n \"uuid\"\n ]\n }\n ],\n \"readOnly\": true\n },\n \"created_at\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"readOnly\": true\n },\n \"sync_frequency\": {\n \"type\": \"string\",\n \"readOnly\": true\n },\n \"columns\": {\n \"type\": \"string\",\n \"readOnly\": true\n },\n \"status\": {\n \"readOnly\": true,\n \"nullable\": true,\n \"description\": \"The status of when this SavedQuery last ran.\\n\\n* `Cancelled` - Cancelled\\n* `Modified` - Modified\\n* `Completed` - Completed\\n* `Failed` - Failed\\n* `Running` - Running\",\n \"oneOf\": [\n {\n \"enum\": [\n \"Cancelled\",\n \"Modified\",\n \"Completed\",\n \"Failed\",\n \"Running\"\n ],\n \"type\": \"string\",\n \"description\": \"* `Cancelled` - Cancelled\\n* `Modified` - Modified\\n* `Completed` - Completed\\n* `Failed` - Failed\\n* `Running` - Running\"\n },\n {\n \"enum\": [\n null\n ]\n }\n ]\n },\n \"last_run_at\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"nullable\": true,\n \"readOnly\": true\n },\n \"latest_error\": {\n \"type\": \"string\",\n \"readOnly\": true,\n \"nullable\": true\n },\n \"edited_history_id\": {\n \"type\": \"string\",\n \"writeOnly\": true,\n \"nullable\": true\n },\n \"latest_history_id\": {\n \"type\": \"string\",\n \"readOnly\": true\n },\n \"soft_update\": {\n \"type\": \"boolean\",\n \"writeOnly\": true,\n \"nullable\": true\n },\n \"is_materialized\": {\n \"type\": \"boolean\",\n \"readOnly\": true,\n \"nullable\": true\n }\n },\n \"required\": [\n \"columns\",\n \"created_at\",\n \"created_by\",\n \"id\",\n \"is_materialized\",\n \"last_run_at\",\n \"latest_error\",\n \"latest_history_id\",\n \"name\",\n \"status\",\n \"sync_frequency\"\n ]\n }\n },\n \"multipart/form-data\": {\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"format\": \"uuid\",\n \"readOnly\": true\n },\n \"deleted\": {\n \"type\": \"boolean\",\n \"nullable\": true\n },\n \"name\": {\n \"type\": \"string\",\n \"maxLength\": 128\n },\n \"query\": {\n \"nullable\": true,\n \"description\": \"HogQL query\"\n },\n \"created_by\": {\n \"allOf\": [\n {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"integer\",\n \"readOnly\": true\n },\n \"uuid\": {\n \"type\": \"string\",\n \"format\": \"uuid\",\n \"readOnly\": true\n },\n \"distinct_id\": {\n \"type\": \"string\",\n \"nullable\": true,\n \"maxLength\": 200\n },\n \"first_name\": {\n \"type\": \"string\",\n \"maxLength\": 150\n },\n \"last_name\": {\n \"type\": \"string\",\n \"maxLength\": 150\n },\n \"email\": {\n \"type\": \"string\",\n \"format\": \"email\",\n \"title\": \"Email address\",\n \"maxLength\": 254\n },\n \"is_email_verified\": {\n \"type\": \"boolean\",\n \"nullable\": true\n },\n \"hedgehog_config\": {\n \"type\": \"object\",\n \"additionalProperties\": {},\n \"nullable\": true,\n \"readOnly\": true\n },\n \"role_at_organization\": {\n \"nullable\": true,\n \"oneOf\": [\n {\n \"enum\": [\n \"engineering\",\n \"data\",\n \"product\",\n \"founder\",\n \"leadership\",\n \"marketing\",\n \"sales\",\n \"other\"\n ],\n \"type\": \"string\",\n \"description\": \"* `engineering` - Engineering\\n* `data` - Data\\n* `product` - Product Management\\n* `founder` - Founder\\n* `leadership` - Leadership\\n* `marketing` - Marketing\\n* `sales` - Sales / Success\\n* `other` - Other\"\n },\n {\n \"enum\": [\n \"\"\n ]\n },\n {\n \"enum\": [\n null\n ]\n }\n ]\n }\n },\n \"required\": [\n \"email\",\n \"hedgehog_config\",\n \"id\",\n \"uuid\"\n ]\n }\n ],\n \"readOnly\": true\n },\n \"created_at\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"readOnly\": true\n },\n \"sync_frequency\": {\n \"type\": \"string\",\n \"readOnly\": true\n },\n \"columns\": {\n \"type\": \"string\",\n \"readOnly\": true\n },\n \"status\": {\n \"readOnly\": true,\n \"nullable\": true,\n \"description\": \"The status of when this SavedQuery last ran.\\n\\n* `Cancelled` - Cancelled\\n* `Modified` - Modified\\n* `Completed` - Completed\\n* `Failed` - Failed\\n* `Running` - Running\",\n \"oneOf\": [\n {\n \"enum\": [\n \"Cancelled\",\n \"Modified\",\n \"Completed\",\n \"Failed\",\n \"Running\"\n ],\n \"type\": \"string\",\n \"description\": \"* `Cancelled` - Cancelled\\n* `Modified` - Modified\\n* `Completed` - Completed\\n* `Failed` - Failed\\n* `Running` - Running\"\n },\n {\n \"enum\": [\n null\n ]\n }\n ]\n },\n \"last_run_at\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"nullable\": true,\n \"readOnly\": true\n },\n \"latest_error\": {\n \"type\": \"string\",\n \"readOnly\": true,\n \"nullable\": true\n },\n \"edited_history_id\": {\n \"type\": \"string\",\n \"writeOnly\": true,\n \"nullable\": true\n },\n \"latest_history_id\": {\n \"type\": \"string\",\n \"readOnly\": true\n },\n \"soft_update\": {\n \"type\": \"boolean\",\n \"writeOnly\": true,\n \"nullable\": true\n },\n \"is_materialized\": {\n \"type\": \"boolean\",\n \"readOnly\": true,\n \"nullable\": true\n }\n },\n \"required\": [\n \"columns\",\n \"created_at\",\n \"created_by\",\n \"id\",\n \"is_materialized\",\n \"last_run_at\",\n \"latest_error\",\n \"latest_history_id\",\n \"name\",\n \"status\",\n \"sync_frequency\"\n ]\n }\n }\n },\n \"required\": true\n}", "use_request_body_schema_mode": true, "validate_request_body_schema": true } }