---
title: "Change an allowlisted platform switch and redeploy"
method: POST
path: "/v1/admin/switches/{key}"
tags: ["Operations"]
---

# Change an allowlisted platform switch and redeploy

`POST /v1/admin/switches/{key}`

## Request

- Base URL: `https://loppee.com`
- URL: `https://loppee.com/v1/admin/switches/{key}`
- Auth: HTTP bearer

Owner only, two-step sign-in and a confirmation within the last 10 minutes, while the Switches page is enabled. A key that is not on the allowlist is refused before anything else. Ranking and reach switches need a written reason. The change is recorded in the audit log, saved on the hosting service, and applied by redeploying the version that is live now.

## Path parameters

- `key` string, required

## Request body

- object
  - `value` string, required
  - `reason` string

## Response `200`

Change an allowlisted platform switch and redeploy response

- object: The saved value and the redeploy that applies it.

## Other responses

- `400`: ErrorResponse
- `401`: ErrorResponse
- `403`: ErrorResponse
- `404`: ErrorResponse
- `409`: ErrorResponse
- `413`: ErrorResponse
- `429`: RateLimitError
- `default`: ErrorResponse

---

[API](https://skmtc.dev/loppee/apis/loppee-business-registry-api-for-external-agents.md) · [All operations](https://skmtc.dev/loppee/apis/loppee-business-registry-api-for-external-agents/llms.txt) · [OpenAPI document](https://skmtc.dev/loppee/apis/loppee-business-registry-api-for-external-agents/revisions/37285f7cddcd?raw)
