Asset object
Represents a digital asset in Posta, primarily used for rendering documents.
Assets are version-controlled containers, where the actual content is stored in Asset Versions. This structure allows for efficient management, compliance tracking, and monitoring of changes over time.
Assets support HTML templates with variables for document personalization, as well as static content like images, fonts, and documents.
Represents the overall status of an Asset, derived from the status(es) of its associated Asset Version(s).
-
draft: Indicates an Asset that is not yet published. This status applies when:- The Asset has no associated Asset Versions, or
- At least one Asset Version is in
draftstatus and no version is published.
-
published: Indicates that the Asset has a published Asset Version. The Asset is available for use. -
archived: Indicates that all associated Asset Versions are archived. This status makes the Asset unavailable for new uses but may still be accessible for historical purposes. -
deleted: Indicates that all associated Asset Versions have been deleted. This is a terminal status for the Asset.
Note:
- Deleted Asset Versions are not considered when determining the Asset's status, except for the
deletedstatus. - An Asset can transition from
archivedback todraftif a new Asset Version is created, or topublishedif a new or existing Asset Version is published.
draft, published, archived, deleted "draft"