Skip to main content
POST
/
add-job
Create or edit a job/deal
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.

Authorizations

Authorization
string
header
required

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

Body

application/json
isEdit
integer

0 = create, 1 = edit

Example:

0

id
integer | null

Job ID (required for edit)

Example:

1

jobType
string

Job type identifier

Example:

"short-term"

jobFor
string | null

Target audience: 'All' or 'Univ'

Example:

"All"

name
string | null

Agreement signer name (create only)

Example:

"Test skl"

fbp
string | null

Facebook browser ID (frontend)

Example:

"fb.1.1771826224285.758247182288672553"

require_proof_of_work
boolean | null

Require proof of work

Example:

true

dueDateUpdateOnly
enum<string> | null

Frontend hint for due-date-only edits

Available options:
Yes,
No
Example:

"No"

addTitleAndDescription
object
addDetails
object
addExpertise
object

Job categories and skills (backend reads skillsAndExpertise and additionalSkills from here)

addLocation
object
addBudgetaddTitle
object
addVisiblity
object
remainimage
integer[] | null

Edit only: document IDs to delete

Example:
[]

Response

Job created/updated