Provider - Sample Job (Solr preview)
Pulls ONE currently-indexed job for this provider straight from Solr, for a live preview of what the provider's ingested jobs look like — the FULL document (description HTML, cpc, joburl, hashes, etc.), not the consumer-facing projection, since this is an operator tool. Also returns total_indexed so the operator sees how many jobs the provider has in the index.
─── Which job ────────────────────────────────────────────── Default: the most recently posted job (date_posted desc, id asc). Pass solr_id to preview one specific document, or q to preview the top job matching a keyword (full-text within this provider only). solr_id and q are mutually exclusive — solr_id wins if both are sent.
Returns job: null (still 200) when the provider has nothing indexed yet, or when a supplied solr_id doesn't exist / belongs to a different provider.
Request
- Base URL: https://api.juju.com
- URL: https://api.juju.com/admin/v1/providers/{id}/sample-job
- Auth: none declared
Path parameters
Query parameters
Preview this exact Solr document id ("{provider}_{jobid}"). Must belong to this provider.
Preview the top job matching this keyword (scoped to this provider). Ignored when solr_id is present.
Response
The sampled job (or job=null when none matched). job is the raw Solr document minus Solr-internal fields (version, root, score).
Example response
{
"errors": []
}Changes
No recorded changes to this operation across all 1 revision of this API.