Skip to main content
POST
/
agent
/
not-available-for-deal
Decline job on behalf of athlete
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/agent/not-available-for-deal \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "job_id": 1,
  "athlete_id": 123,
  "reason": "Schedule conflict"
}
'

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 decline

Example:

1

athlete_id
integer
required

Athlete user ID

Example:

123

reason
string | null

Reason for declining (accepted but not used by backend currently)

Example:

"Schedule conflict"

Response

200

Declined