Publish an Asset
After uploading an asset, you can publish it to any of the environments and locales configured in your stack. Publishing ensures the asset is accessible in the selected environments and locales.
To publish an asset, log in to your Contentstack account, and perform the following steps:
- Go to your stack and click the “Assets” icon in the left navigation panel. You can also use the shortcut key “A” (for both Windows OS and Mac OS users) to access assets.
- Select the asset you want to publish and click Publish.
- Under Select Environment(s) and Select Language(s), select the environment(s) and the locale(s) for publishing.
Note: You can select up to 10 environments and 10 locales for a single publishing action.
- Under Publish, select one of the two available options:
- Now: Publish the asset immediately.
- Later: Schedule the asset to be published at a specific date and time. If you select this option, additional fields appear where you can specify the date, time, and time zone.
Note: Scheduled publishing dates cannot exceed 12 months from the current date.
If you select a time zone that follows daylight saving time (DST), you will see a help text at the bottom of the dialog that highlights the effective publishing date, time, and timezone.
Note: The DST time difference is one hour.
- Click Publish to confirm your action.
Note: Assets published to a production environment become publicly accessible, even if they are not referenced in an entry. Avoid publishing sensitive assets to production environments unless they are ready for use.
Alternatively, you can also publish an asset from the assets list page. To do so, perform the following steps:
- On the assets list page, locate the asset you want to publish and click the vertical ellipsis in the Actions column.
- From the dropdown menu, select Publish.
- Select the environment(s) and locale(s) under Select Environment(s) and Select Language(s).
- Under Publish, select either Now (publish immediately) or Later (at a later date/time that you provide).
- Click Publish to confirm your action.
- Publish multiple assets in bulk across various languages and environments.
- Refer to our documentation for detailed steps on unpublishing assets.
API Reference
To publish an asset via API, refer to the Publish an asset API request.