---
title: "Publish image"
method: POST
path: "/preview/v2/admin/images/{id}/publish"
tags: ["Images"]
---

# Publish image

`POST /preview/v2/admin/images/{id}/publish`

> ⚠️ This endpoint is in [public preview](/preview/roadmap).

Publish an image, making it publicly visible to all users. Requires admin permissions. The image must belong to the caller's account and have a completed upload.

## Path parameters

- `id` string, required

## Response `200`

Image published

- SfcApiImageListEntry
  - `id` string, required
  - `resource_path` string, required — A resource path for a image resource. Format: sfc:image:<account>:<workspace>:<name>.
  - `owner` string, required
  - `workspace` string, required
  - `name` string, required
  - `object` 'image', required
  - `upload_status` 'started' | 'uploading' | 'completed' | 'failed' | 'revoked', required
  - `created_at` integer, required — Unix timestamp.
  - `provider` string, nullable
  - `sha256` string, nullable

## Other responses

- `401` — Unauthorized request
- `403` — Admin access required
- `404` — Image not found
- `409` — Image is already published
- `500` — Internal server error

---

[API](https://skmtc.net/sfcompute/apis/san-francisco-compute-documentation.md) · [All operations](https://skmtc.net/sfcompute/apis/san-francisco-compute-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sfcompute/san-francisco-compute-documentation/revisions/93dd7661e9bb/schema)
