createTicket

suspend fun createTicket(webId: String, newTicket: NewTicket, storage: String? = null, artifact: ByteArray? = null, artifactContentType: String? = null, images: NewTicketImages? = null, isPrivate: Boolean = true, container: String? = null): Ticket?

Creates a ticket on the user's pod, in its own sub-container of the tickets container.

Parameters

artifact

Optional original file (e.g. a .pkpass), stored inside the ticket's container and linked from the ticket. Travels inline over Binder, so it is subject to the ~1 MB transaction limit.

artifactContentType

Required when artifact is non-null.

images

Optional pass images, stored inside the ticket's container and linked from the ticket. Travel inline over Binder like artifact.

storage

Optional pod storage (root) URL; when null, the registered or default tickets container is used.

isPrivate

When true (default) a bootstrapped container is registered in the private type index; when false, in the public one.

container

Optional container URI to use instead of the registered / default one.