Skip to main content
POST
/
ai-edit-job
Edit job after AI review
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/ai-edit-job \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": 2726,
  "isEdit": 1,
  "addTitleAndDescription": {
    "job_name": "Content Creation Job",
    "jobDescription": "<p>My gym is looking for athletes to help with video content and online presence.</p>",
    "specifics_exclusive_deal": "None",
    "deliverableList": [
      {
        "source_milestone_id": 6588,
        "name": "Instagram Reel",
        "description": "<p>Create and publish a Instagram Reel. See the deal description for full campaign requirements.</p>",
        "payment_mode": "Cash",
        "price": 33,
        "product_detail": "None",
        "milestone_category_id": 14,
        "due_date_number": 2,
        "due_date_type": "Week"
      },
      {
        "source_milestone_id": 6588,
        "name": "TikTok Video",
        "description": "<p>Create and publish a TikTok Video. See the deal description for full campaign requirements.</p>",
        "payment_mode": "Cash",
        "price": 33,
        "product_detail": "None",
        "milestone_category_id": 15,
        "due_date_number": 2,
        "due_date_type": "Week"
      },
      {
        "source_milestone_id": 6588,
        "name": "X (Twitter) Post",
        "description": "<p>Create and publish a X (Twitter) Post. See the deal description for full campaign requirements.</p>",
        "payment_mode": "Cash",
        "price": 35,
        "product_detail": "None",
        "milestone_category_id": 16,
        "due_date_number": 2,
        "due_date_type": "Week"
      }
    ]
  },
  "addLocation": {
    "university": [
      1
    ],
    "sports": [
      1
    ],
    "instagram_min": 1000,
    "instagram_max": 5000,
    "tiktok_min": 1000,
    "tiktok_max": 5000,
    "x_min": 1000,
    "x_max": 5000
  }
}
'
{
  "status": "success",
  "message": "Job Updated Successfully"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
id
integer
required

Job ID to edit (must be created by the authenticated partner)

Example:

2726

isEdit
integer | null

Optional flag sent by the client (same as add-job); not required for AI edit

Example:

1

addTitleAndDescription
object
addLocation
object

Job targeting criteria. Only fields explicitly posted are applied (no AI backfill merge on accept).

Response

Job updated

status
string
Example:

"success"

message
string
Example:

"Job Updated Successfully"