Skip to main content
POST
/
agent
/
apply-athletes-to-job
Apply athletes to job
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/agent/apply-athletes-to-job \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "job_id": 1038,
  "athlete_ids": [
    132,
    1181
  ],
  "sign_agreement_upfront": true,
  "agreement_signed_name": "Univ mm",
  "athlete_{id}": [],
  "will_disclose": "Y",
  "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..."
}
'
{
  "message": "Athletes successfully Applied",
  "errors": [],
  "applied": []
}

Documentation Index

Fetch the complete documentation index at: https://developer.mogl.online/llms.txt

Use this file to discover all available pages before exploring further.

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:
[132, 1181]
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

200 - application/json

Athletes applied to job

message
string
Example:

"Athletes successfully Applied"

errors
string[]
Example:
[]
applied
string[]
Example:
[]