bulkGenerateTickets
POST/tickets/bulk-generation
Submits an asynchronous bulk ticket generation job that behaves, to all effects, like an Excel export request.
The job resolves the set of assets to process from the same filters and sorters
exposed by listAssets (mirrored as query parameters below), then, for each resolved
asset id, invokes a custom store procedure. The store procedure performs all the
required checks, creates the ticket for the given asset and returns a feedback about
the outcome of the operation.
The set of assets to process is determined by one of two selection modes, specified
in the request body via attributes.selectAll:
selectAll: true— all assets matching the active filter query parameters are processed, including assets on subsequent pages. TheassetIdsfield must be omitted or empty.selectAll: false— only the assets listed inattributes.assetIdsare processed.
The job produces an Excel file that reports the salient information of each processed
asset together with an outcome column, valued OK or KO depending on the outcome
returned by the store procedure, and a Note field that may contain a message
explaining the reason of a possible error.
To access the service you need at least one of the following permissions:
| Permission (one of) |
|---|
| bulkGenerateTickets |
Request
Responses
- 202
- 400
Bulk ticket generation export request accepted.
Bad request.