---
title: "Update Layer Overrides"
method: POST
path: "/console/v1/layers/{id}/overrides"
tags: ["Layers"]
---

# Update Layer Overrides

`POST /console/v1/layers/{id}/overrides`

## Path parameters

- `id` string, required

## Request body

- LayerOverridesDto
  - `conditionalOverrides` object[], required
    - `type` string, required — Describes whether layer override is segment or gate
    - `name` string, required — Name of override entity
    - `experimentName` string, required
    - `groupName` string, required
    - `environment` string, nullable — Optional environment scope (e.g. production, staging). Omit or pass null to target the all-environments bucket.
  - `idOverrides` object[], required
    - `groupName` string, required — Group that ID is overriden into
    - `ids` string[], required — ID being overriden into a particular group
    - `idType` string, nullable
    - `environment` string, nullable
    - `experimentName` string, nullable

## Response `200`

Update Layer Overrides Success

- object
  - `message` string, required — A simple string explaining the result of the operation.
  - `data` object, required — A single result.
    - `conditionalOverrides` object[], required
      - `type` string, required — Describes whether layer override is segment or gate
      - `name` string, required — Name of override entity
      - `experimentName` string, required
      - `groupName` string, required
      - `environment` string, nullable — Optional environment scope (e.g. production, staging). Omit or pass null to target the all-environments bucket.
    - `idOverrides` object[], required
      - `groupName` string, required — Group that ID is overriden into
      - `ids` string[], required — ID being overriden into a particular group
      - `idType` string, nullable
      - `environment` string, nullable
      - `experimentName` string, nullable

## Other responses

- `401` — This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx
- `404` — Layer not found.

---

[API](https://skmtc.net/statsig/apis/console-api.md) · [All operations](https://skmtc.net/statsig/apis/console-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/statsig/console-api/versions/3189f450c93b/schema)
