Skip to main content
POST
/
service
/
saveService
Save/update athlete service offering
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/service/saveService \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "category_id": 1,
  "instruction": "Please create a short video",
  "amount": 50,
  "status": "A",
  "sample_video": "https://example.com/sample.mp4",
  "sample_description": "Sample video description",
  "is_requested_delete_video": "N"
}
'

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
category_id
integer

Service category ID

Example:

1

instruction
string

Service instructions (NOT description, required when status=A)

Example:

"Please create a short video"

amount
number<float>

Service price (NOT price, required when status=A)

Example:

50

status
string

A=active (NOT is_active boolean)

Example:

"A"

sample_video
string

Sample video (conditionally required)

Example:

"https://example.com/sample.mp4"

sample_description
string
Example:

"Sample video description"

is_requested_delete_video
string
Example:

"N"

Response

200

Service saved