ImageKit icon

ImageKit

Interact with the ImageKit API

File → Publish / Unpublish

AI-generated

Summary

Change the publication status of a file in ImageKit by publishing or unpublishing it, optionally affecting all its versions.

Inputs

  • File ID (required) — The unique ID of the file to publish or unpublish
  • Is Published (required) — Set to true to publish the file, or false to unpublish it
  • Include File Versions — Decide whether to apply the publish or unpublish action to all versions of the file (true) or only the current version (false, default)

Output shape

a single JSON object representing the updated file details

The response includes the updated file metadata reflecting the publish status changes.

Links

Discussion