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

# Publish image

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

## Request

- Base URL: `https://api.sfcompute.com`
- URL: `https://api.sfcompute.com/preview/v2/admin/images/{id}/publish`
- Auth: HTTP bearer

> ⚠️ 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

## Changes

- **2026-05-18** `0c963953fd6c`: 1 warning
  - added the new `revoked` enum value to the `allOf[subschema #2]/upload_status` response property for the response status `200`
- **2026-05-18** `b819ba3108b3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sfcompute/apis/san-francisco-compute-documentation/changes/preview/v2/admin/images/:id/publish/post.md)

---

[API](https://skmtc.dev/sfcompute/apis/san-francisco-compute-documentation.md) - [All operations](https://skmtc.dev/sfcompute/apis/san-francisco-compute-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/sfcompute/apis/san-francisco-compute-documentation/revisions/93dd7661e9bb?raw)
