---
title: "Set App Visibility"
method: POST
path: "/v1/hosting/apps/{app_id}/visibility"
tags: ["hosting"]
---

# Set App Visibility

`POST /v1/hosting/apps/{app_id}/visibility`

Toggle a hosting app public/private. Public publishes it to the
marketplace projects catalog (pending admin approval); private unpublishes it.

## Path parameters

- `app_id` string, required

## Request body

- HostingVisibilityRequest
  - `visibility` string, required — "public" or "private"

## Response `200`

Successful Response

- HostingAppDetailResponse
  - `id` string, required
  - `projectName` string, required
  - `status` string, required
  - `url` string, nullable
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `deploymentCount` integer, required
  - `visibility` string
  - `projectListingStatus` string, nullable
  - `secrets` HostingSecretSummary[]
    - `name` string, required
    - `updatedAt` string, date-time, required
  - `liveDeploymentId` string, nullable
  - `latestDeployment` HostingDeploymentSummary
    - `id` string, required
    - `appId` string, nullable
    - `projectName` string, nullable
    - `providerDeploymentId` string, nullable
    - `status` string, required
    - `statusSource` string
    - `isLive` boolean
    - `isTerminal` boolean
    - `url` string, nullable
    - `summary` string, nullable
    - `error` string, nullable
    - `crashCount` integer
    - `queuePosition` integer, nullable
    - `buildErrorDetail` string, nullable
    - `createdAt` string, date-time, nullable
    - `updatedAt` string, date-time, required
    - `queuedAt` string, date-time, nullable
    - `startedAt` string, date-time, nullable
    - `finishedAt` string, date-time, nullable
    - `hostPort` integer, nullable
    - `containerName` string, nullable
    - `imageTag` string, nullable

## Other responses

- `422` — Validation Error

---

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