Add Watch
Watch a contractor: its license and every license linked to it, in any state.
Its current verdict and licenses are recorded as the baseline, so events report changes from now on. Starting a watch counts as one verification of the license, as /verdict would (once per license per UTC day), since the response carries its verdict: otherwise watching and unwatching would read verdicts for free. Watching a license twice under the same reference returns the same watch, at no charge; under a different one it's a separate watch, so a platform can watch one sub for each of its clients. A key can't have more watches than its plan includes.
Args: body: The license to watch. response: The response, for its status code. api_key_id: Injected: the caller's key. caller: Injected caller, for its plan's watch cap. monitoring: Injected MonitoringRepository. licenses: Injected LicenseRepository. keys: Injected ApiKeyRepository, to count the verification.
Returns: The watch.
Raises: LicenseNotFoundError: If no license has that ID (a 404). HTTPException: 409 when the key is at its plan's watch cap.
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/monitoring/watches
- Auth: none declared
Request body
Response
The key already watches this license; the existing watch.
Changes
No recorded changes to this operation across all 1 revision of this API.