---
title: "Update an existing Sigma Query"
method: POST
path: "/v1/sigma/saved_queries/{id}"
---

# Update an existing Sigma Query

`POST /v1/sigma/saved_queries/{id}`

## Request

- Base URL: `https://api.stripe.com`
- URL: `https://api.stripe.com/v1/sigma/saved_queries/{id}`
- Auth: one of:
  - HTTP basic
  - HTTP bearer

Update an existing Sigma query that previously exists

## Path parameters

- `id` string, required

## Response `200`

Successful response.

- SigmaSigmaApiQuery: A saved query object represents a query that can be executed for a run.
  - `created` integer, required: Time at which the object was created. Measured in seconds since the Unix epoch.
  - `id` string, required: Unique identifier for the object.
  - `livemode` boolean, required: If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
  - `name` string, required: The name of the query.
  - `object` 'sigma.sigma_api_query', required: String representing the object's type. Objects of the same type share the same value.
  - `sql` string, required: The sql statement for the query.

## Other responses

- `default`: Error response.

---

[API](https://skmtc.dev/stainless-api/apis/stripe-api.md) · [All operations](https://skmtc.dev/stainless-api/apis/stripe-api/llms.txt) · [OpenAPI document](https://skmtc.dev/stainless-api/apis/stripe-api/revisions/7cff4cc46d06?raw)
