Upload Batch
Upload a CSV of contractors (the request body, as text/csv) and get back its columns, matches and cost.
Nothing runs or is charged yet: the batch is a draft, matched by the columns guessed from its headers. Check them, change them with POST /batches/{id}/preview if needed, then POST /batches/{id}/run. Only the cell values are kept, never the file; a draft nobody runs is deleted after a day.
Args: request: The request, whose body is the file. filename: The file's name. key: Injected: the caller's paid key. batches: Injected BatchRepository. licenses: Injected LicenseRepository, for matching. keys: Injected ApiKeyRepository, for the cost.
Returns: The draft.
Raises: HTTPException: 413 or 422 for a file that can't be read; 429 for too many uploads.
Request
- Base URL: https://api.licenscheck.com (the document declares no server; this is the origin it was published from)
- URL: https://api.licenscheck.com/batches
- Auth: none declared
Query parameters
The file's name, for display.
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.