Skip to main content
POST
/
searchJob
Search jobs with filters
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/searchJob \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "filterByMultiParameter": "test",
  "filterCategorySearchKeywords": [],
  "filterByPaymentMode": null,
  "filterByLocation": null,
  "filterByMinPrice": 100,
  "filterByMaxPrice": 10000,
  "sort_order_req": "most_recent",
  "job_id": 1,
  "athlete_id": 123,
  "ByPassJobViewPreference": "Y",
  "first_job_show": "Y",
  "allow_private": "Y"
}
'

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.

Query Parameters

page
integer

Page number

Example:

1

page_limit
integer

Items per page (default 10)

Example:

10

Body

application/json
filterByMultiParameter
string | null

Search keyword (matches job name and creator name)

Example:

"test"

filterCategorySearchKeywords
integer[] | null

Array of category IDs

Example:
[]
filterByPaymentMode
enum<string> | null

Filter by payment mode

Available options:
Cash,
Product
Example:

null

filterByLocation
string | null

Filter by state/location

Example:

null

filterByMinPrice
number | null

Minimum price filter

Example:

100

filterByMaxPrice
number | null

Maximum price filter

Example:

10000

sort_order_req
enum<string> | null

Sort order

Available options:
pay_highest,
name_asc,
name_desc,
most_recent
Example:

"most_recent"

job_id
integer | null

Filter by specific job ID

Example:

1

athlete_id
integer | null

Athlete ID (for agent context)

Example:

123

ByPassJobViewPreference
enum<string> | null

Bypass job view preference filter

Available options:
Y
Example:

"Y"

first_job_show
enum<string> | null

Show only current user's jobs

Available options:
Y
Example:

"Y"

allow_private
enum<string> | null
Available options:
Y
Example:

"Y"

Response

200

Search results