Actions47
- Account Actions
- Account Origin Actions
- Account URL Endpoint Actions
- Asset Actions
- Custom Metadata Field Actions
- File Actions
- File Version Actions
- Folder Actions
- Metadata Actions
- Purge Cache Actions
- Saved Extension Actions
File → Publish / Unpublish
AI-generatedSummary
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.