Skip to main content
POST
/
deal-folder
/
{dealFolder}
/
assets
/
{documentId}
/
comments
Add a comment on a brand-uploaded deal asset
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/deal-folder/{dealFolder}/assets/{documentId}/comments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "comment": "Logo placement looks good.",
  "athlete_id": 42
}
'
{
  "status": "success",
  "message": "Comment added.",
  "data": {
    "id": 901,
    "comment": "Logo placement looks good.",
    "user_id": 42,
    "created_at": "2026-05-27T07:10:00.000000Z",
    "updated_at": "2026-05-27T07:10:00.000000Z"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

dealFolder
integer
required

Deal folder ID.

Example:

12

documentId
integer
required

title_and_description_documents_mappings.id of the deal asset.

Example:

77

Body

application/json
comment
string
required

Comment text.

Maximum string length: 2000
Example:

"Logo placement looks good."

athlete_id
integer

Required when an agent is commenting on behalf of an athlete.

Example:

42

Response

Comment added

status
string
Example:

"success"

message
string
Example:

"Comment added."

data
object