Publish a job for the partner's company
Publishes a job for the company MyPilotIndex bound the partner to. The company comes from the binding, never from the body: company_id, source, featured, recruiter_id, created_by and every other member outside the schema are 400 invalid_request. status is active, unless the body says draft, which nobody reads until a change makes it active. A value the catalog does not hold, such as an unknown position_type, is 400 invalid_request, and nothing is published. 201 for a new job; 200 with replayed true for a retry of the same client_ref and body, which publishes nothing. See the Jobs tag for the client_ref and the allowance of 50 jobs per partner per rolling 24 hours. The token must carry jobs.write, otherwise 403 scope_missing.
Authorizations
OAuth 2.0 client credentials. Request a token from the token endpoint of the identity provider's domain (https://{cognito-domain}/oauth2/token, with HTTP Basic client authentication) and send it as a Bearer token. Production uses auth.mypilotindex.com. The sandbox uses the dev environment's Cognito domain, which is given to the partner with its sandbox credential. A token carries only the scopes the partner was approved for.
Body
Maximum 65536 bytes. Unknown or repeated members are rejected.
The members a partner may set. Each is optional here; a create requires its own.
Surrounding whitespace is trimmed.
1captain, first_officer, check_airman, instructor, management, other, program The partner's own name for this create, unique per partner and kind of publication. Send the same ref to retry.
1 - 64^[A-Za-z0-9._:-]{1,64}$full_time, part_time, contract, temporary, seasonal part_121, part_135, part_91, part_91k, military, government, other onsite, hybrid, remote, null x >= 0x >= 0x >= 0x >= 0x >= 0License codes, such as ATP or CPL.
1FAA type rating designators, such as CE-680.
1At least salary_min.
annual, hourly, per_diem, daily_rate, monthly, fixed, null ^[A-Z]{3}$An absolute http or https URL.
RFC 3339. 30 days from the create unless it says otherwise.
draft, active 
