---
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}`

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.net/stripe/apis/spec3.md) · [All operations](https://skmtc.net/stripe/apis/spec3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stripe/spec3/revisions/3653ad45bbec/schema)
