curl --request POST \
--url http://localhost/mogl/mogl-backend/api/add-job \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"isEdit": 0,
"id": 1,
"jobType": "short-term",
"jobFor": "All",
"name": "Test skl",
"fbp": "fb.1.1771826224285.758247182288672553",
"require_proof_of_work": true,
"dueDateUpdateOnly": "No",
"addTitleAndDescription": {
"jobName": "Test job dev 002",
"jobDescription": "<p>Test job description</p>",
"levelOfExperience": "",
"skillsAndExpertise": [],
"additionalSkills": [],
"is_exclusive": "N",
"specifics_exclusive_deal": "",
"totalCompensation": "10.00",
"numberOfPeopleNeedForJob": "More",
"jobCategoryName": [
false,
true,
true,
true,
false,
false,
true,
true,
false,
false,
false,
false,
false,
false,
false,
false
],
"jobCategoryNames": [],
"jobCategoriesSelected": [
14,
15,
35,
17,
37
],
"deliverableList": [],
"additionalAttachment": [],
"removedImg": []
},
"addDetails": {
"projectType": "1",
"screeningQuestions": [],
"questionsAsked": [],
"additionalAttachment": [],
"require_proof_of_work": true
},
"addExpertise": {
"skillsAndExpertise": [],
"additionalSkills": [],
"jobCategoriesSelected": [
14,
15
]
},
"addLocation": {
"talentLeague": null,
"talentState": "Los Angeles, CA, USA",
"poc_name": "Test user",
"poc_email": "testpartner@gmail.com",
"location_utc_offset": "{}",
"university": [
1,
222
],
"universityName": "Example University",
"division": [
123
],
"conference": [
123
],
"sports": [
24,
18,
10,
30
],
"skills": [
123
],
"gender": [
"Male",
"Female"
],
"instagram_min": 123,
"instagram_max": 123,
"tiktok_min": 123,
"tiktok_max": 123,
"x_min": 123,
"x_max": 123
},
"addBudgetaddTitle": {
"paymentTypePreference": "Fixed",
"estimateBudget": "notDef",
"hourlyRateFrom": "10.00",
"hourlyRateTo": 0,
"monthlyPaymentPreference": "lessThan1"
},
"addVisiblity": {
"jobViewPreference": "All MOGL Athletes",
"numberOfPeopleNeedForJob": "More",
"preferPersonOrteam": [],
"preferTalent": "",
"talentPreference": []
},
"remainimage": []
}
'Create (isEdit=0) or edit (isEdit=1) a job. Uses nested objects for different sections of the job form. If editing a job with hired athletes, only deliverable due dates are updated.
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/add-job \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"isEdit": 0,
"id": 1,
"jobType": "short-term",
"jobFor": "All",
"name": "Test skl",
"fbp": "fb.1.1771826224285.758247182288672553",
"require_proof_of_work": true,
"dueDateUpdateOnly": "No",
"addTitleAndDescription": {
"jobName": "Test job dev 002",
"jobDescription": "<p>Test job description</p>",
"levelOfExperience": "",
"skillsAndExpertise": [],
"additionalSkills": [],
"is_exclusive": "N",
"specifics_exclusive_deal": "",
"totalCompensation": "10.00",
"numberOfPeopleNeedForJob": "More",
"jobCategoryName": [
false,
true,
true,
true,
false,
false,
true,
true,
false,
false,
false,
false,
false,
false,
false,
false
],
"jobCategoryNames": [],
"jobCategoriesSelected": [
14,
15,
35,
17,
37
],
"deliverableList": [],
"additionalAttachment": [],
"removedImg": []
},
"addDetails": {
"projectType": "1",
"screeningQuestions": [],
"questionsAsked": [],
"additionalAttachment": [],
"require_proof_of_work": true
},
"addExpertise": {
"skillsAndExpertise": [],
"additionalSkills": [],
"jobCategoriesSelected": [
14,
15
]
},
"addLocation": {
"talentLeague": null,
"talentState": "Los Angeles, CA, USA",
"poc_name": "Test user",
"poc_email": "testpartner@gmail.com",
"location_utc_offset": "{}",
"university": [
1,
222
],
"universityName": "Example University",
"division": [
123
],
"conference": [
123
],
"sports": [
24,
18,
10,
30
],
"skills": [
123
],
"gender": [
"Male",
"Female"
],
"instagram_min": 123,
"instagram_max": 123,
"tiktok_min": 123,
"tiktok_max": 123,
"x_min": 123,
"x_max": 123
},
"addBudgetaddTitle": {
"paymentTypePreference": "Fixed",
"estimateBudget": "notDef",
"hourlyRateFrom": "10.00",
"hourlyRateTo": 0,
"monthlyPaymentPreference": "lessThan1"
},
"addVisiblity": {
"jobViewPreference": "All MOGL Athletes",
"numberOfPeopleNeedForJob": "More",
"preferPersonOrteam": [],
"preferTalent": "",
"talentPreference": []
},
"remainimage": []
}
'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.
JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.
0 = create, 1 = edit
0
Job ID (required for edit)
1
Job type identifier
"short-term"
Target audience: 'All' or 'Univ'
"All"
Agreement signer name (create only)
"Test skl"
Facebook browser ID (frontend)
"fb.1.1771826224285.758247182288672553"
Require proof of work
true
Frontend hint for due-date-only edits
Yes, No "No"
Show child attributes
Show child attributes
Job categories and skills (backend reads skillsAndExpertise and additionalSkills from here)
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Edit only: document IDs to delete
[]Job created/updated