Skip to main content
POST
/
postUploadEdit
Edit athlete post
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/postUploadEdit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": 1,
  "picture": [],
  "caption": "My new post"
}
'

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
id
integer
required

Post ID

Example:

1

picture
string[] | null

Replacement base64-encoded images (data:image/png;base64,...)

Example:
[]
caption
string | null

Updated caption

Example:

"My new post"

Response

200

Post updated