---
title: "Protect an Experiment by team and ID."
method: POST
path: "/failure-flags/experiments/{id}/protect"
tags: ["failure-flags.experiments"]
---

# Protect an Experiment by team and ID.

`POST /failure-flags/experiments/{id}/protect`

Requires the privilege [`EXPERIMENTS_WRITE`](https://www.gremlin.com/docs/user-management/access-control/#privileges)

## Path parameters

- `id` string, required

## Query parameters

- `teamId` string, required

## Response `204`

Protect an Experiment by team and ID

## Other responses

- `401` — Authorization header missing or malformed. Please provide proper credentials in the authorization header.
- `403` — User requires privilege for target team: EXPERIMENTS_WRITE
- `404` — Not found
- `409` — Cannot protect an Experiment while it is running

## Changes

- **2026-09-02** `358b43b8f258` — 1 breaking, 1 info
  - removed the success response with the status `200`
  - added the success response with the status `204`

[Change history](https://skmtc.dev/gremlin/apis/gremlin-api/changes/failure-flags/experiments/:id/protect/post.md)

---

[API](https://skmtc.dev/gremlin/apis/gremlin-api.md) · [All operations](https://skmtc.dev/gremlin/apis/gremlin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gremlin/gremlin-api/revisions/358b43b8f258/schema)
