Skip to main content
POST
Apply athletes to job

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.

Body

application/json
job_id
integer
required

Job ID to apply to

Example:

1038

athlete_ids
integer[]
required

Array of athlete user IDs

Example:
sign_agreement_upfront
boolean
required

Must be true to proceed

Example:

true

agreement_signed_name
string
required

Name used for agreement signing

Example:

"Univ mm"

athlete_{id}
object[]

Dynamic key per athlete (e.g. athlete_132). Array of screening question answers for that athlete.

Example:
will_disclose
enum<string> | null

Will disclose (default Y)

Available options:
Y,
N
Example:

"Y"

image
string | null

Optional base64 image attachment

Example:

"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..."

Response

The prerequisites passed and each selected athlete was processed individually. A non-empty errors or error_details here is a partial result, not a failed request: show the athletes in applied as applied and attach each failure to its matching athlete.

message
string
Example:

"Athletes successfully Applied"

errors
string[]

Per-athlete failure messages. Kept for existing clients.

Example:
applied
string[]

Per-athlete success messages.

Example:
error_details
object[]

Additive companion to errors (ENG-1357): the same failures, with the athlete each one belongs to and a code where one applies. Prefer this over parsing errors.