v44

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-20129390589.6 KB
Images

Publish image

⚠️ This endpoint is in public preview.

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.

post/preview/v2/admin/images/{id}/publish

Path parameters

idstring required
Example:image_k3R-nX9vLm7Qp2Yw5Jd8F

Image ID

Response

Image published

idstring required
resource_pathstring required

A resource path for a image resource. Format: sfc:image:<account>:<workspace>:<name>.

ownerstring required
workspacestring required
namestring required
object'image' required
upload_status'started' | 'uploading' | 'completed' | 'failed' | 'revoked' required
created_atinteger required

Unix timestamp.

providerstring nullable
sha256string nullable

Example response

{
  "id": "image_k3R-nX9vLm7Qp2Yw5Jd8F",
  "resource_path": "sfc:image:<account_id>:<workspace>:<name>",
  "owner": "my-resource-name",
  "workspace": "my-resource-name",
  "name": "my-resource-name",
  "object": "image",
  "created_at": 1738972800
}