---
title: "Show or hide the \"Powered by ohmyho.st\" flag"
method: PUT
path: "/v1/projects/{project_id}/powered-by-flag"
---

# Show or hide the "Powered by ohmyho.st" flag

`PUT /v1/projects/{project_id}/powered-by-flag`

## Request

- Base URL: `https://app.ohmyho.st`
- URL: `https://app.ohmyho.st/v1/projects/{project_id}/powered-by-flag`
- Auth: HTTP bearer

Owner-only. The production site shows a small flag on its right edge that links to ohmyho.st. While it is on, a Free workspace may connect its own domain to this project and the custom-hostname fee is waived; each Paid period bought through Stripe adds 250 credits to the organization, however many of its projects show the flag. Hiding it is refused while a Free workspace's domain depends on it. A retry with the same Idempotency-Key and body returns the first result without switching again; a changed request under a used key returns idempotency_key_reused (409).

## Path parameters

- `project_id` string, required

## Headers

- `X-Request-Id` string
- `Idempotency-Key` string, required

## Request body

- SetPoweredByFlagRequest
  - `enabled` boolean, required

## Response `200`

Current flag state.

- PoweredByFlag
  - `project_id` string, required
  - `enabled` boolean, required
  - `enabled_at` string, date-time, nullable, required: When the current owner switched the flag on; null while it is hidden.

## Other responses

- `400`: The request failed.
- `401`: The request failed.
- `403`: The request failed.
- `404`: The request failed.
- `409`: The request failed.
- `503`: The request failed.

---

[API](https://skmtc.dev/ohmyho/apis/ohmyho-st-api.md) · [All operations](https://skmtc.dev/ohmyho/apis/ohmyho-st-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ohmyho/apis/ohmyho-st-api/revisions/d069888c0017?raw)
