# platform.admin.experiments.update

Platform administrators only: offer one experiment to nobody (off), only the platform's own workspace (team) or every workspace (everyone). A Vercel flag set to off in Vercel Flags still keeps it off. Turning it off stops it at once for everyone who had it on. Pass expectedRevision from platform.admin.experiments.list.

`POST /api/v1/accounting/platform.admin.experiments.update`

Permissions: `accounting:read`, `accounting:write`, `accounting:admin` · Roles: admin · Idempotency key required · Send `expectedRevision`

MCP tool: `accounting_platform_admin_experiments_update`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `experiment` | enum | Yes | One of: `rts-mode`. |
| `audience` | enum | Yes | off offers it to nobody, team only to the platform's own workspace, everyone to every workspace. One of: `off`, `team`, `everyone`. |
| `expectedRevision` | integer |  | The revision you last read. A different revision means the choices changed first. 0 to 9007199254740990. |
| `idempotencyKey` | string | Yes | Any unique text you generate once per intended change, so a retried request only happens once. Send it as the Idempotency-Key header instead if you prefer; if you send both they must match. 8–200 characters. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/platform.admin.experiments.update \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "experiment": "rts-mode",
  "audience": "off"
}'
```

Reference page: https://app.getoatmilk.com/docs/api/platform.admin.experiments.update
