UploadOptions

data class UploadOptions(val id: TemplateId? = null, val versioning: Boolean = false, val name: String? = null, val comment: String? = null, val category: String? = null, val tags: List<String> = emptyList(), val expireAt: Instant? = null, val deployedAt: Instant? = null, val sample: TemplateSample? = null)

Metadata sent with POST /template. All optional; versioning-related fields are ignored by Community edition.

Constructors

Link copied to clipboard
constructor(id: TemplateId? = null, versioning: Boolean = false, name: String? = null, comment: String? = null, category: String? = null, tags: List<String> = emptyList(), expireAt: Instant? = null, deployedAt: Instant? = null, sample: TemplateSample? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Category name, at most MAX_TEXT_LENGTH characters.

Link copied to clipboard

Free-form comment, at most MAX_TEXT_LENGTH characters.

Link copied to clipboard

Deployment time used to pick the active version. null keeps the server default.

Link copied to clipboard

Scheduled deletion. null means never.

Link copied to clipboard

Versioned mode: attach the upload as a new version of this template id.

Link copied to clipboard
val name: String?

Display name, at most MAX_TEXT_LENGTH characters.

Link copied to clipboard

Sample data stored alongside the template for Studio previews.

Link copied to clipboard

Free-form tags used to search and filter templates.

Link copied to clipboard

Store the upload with version history instead of replacing the template in place.