Analyse waiting careers applications
Starts the analysis of the applications that wait for approval, because the listing's automatic analysis is off or its monthly limit was reached. Each analysis spends credits as a report does and goes through the same billing admission; send maxCredits, at least the price of the batch, as the confirmation. If the price is higher nothing is charged and the answer is price_exceeds_max with the price. Returns how many started and how many still wait. Send an Idempotency-Key so a retry does not run it twice.
Required scope: reports:write.
Errors
- 400:
invalid_content_type,invalid_idempotency_key,invalid_json,max_credits_required,request_body_too_large,unknown_field - 401:
authentication_required,invalid_api_key - 402:
insufficient_credits,price_exceeds_max,quota_exceeded - 403:
api_access_disabled,insufficient_scope,permission_denied - 404:
job_not_found - 409:
idempotency_key_reused,idempotency_request_in_progress - 422:
invalid_parameter - 429:
rate_limit_exceeded - 500:
api_error - 503:
maintenance_mode,service_unavailable
ApiKeyAuthorizationBearer <probb_live_<id>_<secret>>id*stringThe job's ID.
1 <= length <= 200Idempotency-Key?stringMakes retries safe. Repeating a request with the same key and body within 24 hours returns the original response with Idempotent-Replayed: true. The same key with a different body, or from a different API key, returns idempotency_key_reused.
1 <= length <= 255application/json- body
applicationIds?array<>Only these applications. Every waiting application on the job when absent.
1 <= items <= 100maxCredits?numberThe most credits you allow the whole batch to cost. If the current price is higher the request fails with price_exceeds_max and nothing is charged. Required when the organisation pays with credits.
0 < value <= 1000000Success.
application/json- response
object*stringjobId*stringstarted*integerApplications whose analysis started.
-9007199254740991 <= value <= 9007199254740991stillWaiting*integerApplications that still wait, for example because of credits or the monthly cap.
-9007199254740991 <= value <= 9007199254740991# Set PROBB_URL and PROBB_API_KEY. Replace any *_VALUE placeholder and any example ID (such as job_example) with a real one.# Idempotency-Key is optional. Reuse the same key and body when retrying one logical write.curl --fail-with-body -X POST "$PROBB_URL/api/v1/jobs/ID_VALUE/careers/analyse-waiting" \ -H "Authorization: Bearer $PROBB_API_KEY" \ -H "Idempotency-Key: $REQUEST_KEY" \ -H 'Content-Type: application/json' \ --data-binary '{ "maxCredits": 25}'{ "object": "careers_analysis_start", "jobId": "string", "started": -9007199254740991, "stillWaiting": -9007199254740991}