Update an existing Sigma Query Preview

Sigma
Saved Query
Update an existing Sigma Query

Update an existing Sigma query that previously exists

Parameters

  • idstringRequired

    The id of the saved query to update. This should be a valid id that was previously created.

  • namestring

    The name of the query to update.

  • sqlstring

    The sql statement to update the specified query statement with. This should be a valid Trino SQL statement that can be run in Sigma.

Returns

Returns the updated Sigma Query

POST /v1/sigma/saved_queries/:id
cURL
curl https://api.stripe.com/v1/sigma/saved_queries/qfl_0R46kn589O8KAxCGtbTjfolP \
-u "sk_test_BQokikJ...2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2:" \
-H "Stripe-Version: 2025-11-17.preview" \
--data-urlencode sql="SELECT * FROM balance_transactions LIMIT 5"
Response
{
"id": "qfl_0R46kn589O8KAxCGtbTjfolP",
"object": "sigma.sigma_api_query",
"created": 1742329729,
"livemode": true,
"sql": "SELECT * FROM balance_transactions LIMIT 5",
"name": "Select balance transactions"
}