---
title: "Post Flash Environment Publish"
method: POST
path: "/api/flash/environments/internal"
tags: ["flash"]
---

# Post Flash Environment Publish

`POST /api/flash/environments/internal`

Persist a Flash Hub environment after the control plane publishes it.

## Request body

- FlashEnvironmentPublishBody
  - `orgId` string, required
  - `projectId` string, uuid, required
  - `slug` string, required
  - `name` string, required
  - `hubRepo` string
  - `hubRef` string
  - `hubPath` string, required
  - `packageSha256` string, nullable
  - `publishedByUserId` string, nullable
  - `apiKeyId` string, nullable
  - `metadata` object, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/freesolo/apis/platform-backend.md) · [All operations](https://skmtc.dev/freesolo/apis/platform-backend/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/freesolo/platform-backend/revisions/5626e92675af/schema)
