Add a comment to a file slot
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/deal-folder/files/{file}/comments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"comment": "Looks great — ship it!",
"active_version_id": 11
}
'import requests
url = "http://localhost/mogl/mogl-backend/api/deal-folder/files/{file}/comments"
payload = {
"comment": "Looks great — ship it!",
"active_version_id": 11
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({comment: 'Looks great — ship it!', active_version_id: 11})
};
fetch('http://localhost/mogl/mogl-backend/api/deal-folder/files/{file}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://localhost/mogl/mogl-backend/api/deal-folder/files/{file}/comments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'comment' => 'Looks great — ship it!',
'active_version_id' => 11
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost/mogl/mogl-backend/api/deal-folder/files/{file}/comments"
payload := strings.NewReader("{\n \"comment\": \"Looks great — ship it!\",\n \"active_version_id\": 11\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost/mogl/mogl-backend/api/deal-folder/files/{file}/comments")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"comment\": \"Looks great — ship it!\",\n \"active_version_id\": 11\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/deal-folder/files/{file}/comments")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"comment\": \"Looks great — ship it!\",\n \"active_version_id\": 11\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Comment added.",
"data": {
"id": 300,
"deal_folder_file_id": 5,
"user_id": 42,
"active_version_id": 11,
"comment": "Looks great, please tweak the intro.",
"partner_read_at": null,
"athlete_read_at": "2026-04-02T09:30:00Z",
"created_at": "2026-04-01T13:00:00Z",
"updated_at": "2026-04-01T13:00:00Z"
}
}{
"message": "Unauthenticated."
}{
"status": "error",
"message": "Deal folder file not found."
}{
"message": "The given data was invalid.",
"errors": {}
}Add a comment to a file slot
Adds a comment to a file slot. Accessible by athlete, brand, and agent. Sends a notification to the other party. Notification type: deal-folder-comment (see DealFolderNotificationType).
POST
/
deal-folder
/
files
/
{file}
/
comments
Add a comment to a file slot
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/deal-folder/files/{file}/comments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"comment": "Looks great — ship it!",
"active_version_id": 11
}
'import requests
url = "http://localhost/mogl/mogl-backend/api/deal-folder/files/{file}/comments"
payload = {
"comment": "Looks great — ship it!",
"active_version_id": 11
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({comment: 'Looks great — ship it!', active_version_id: 11})
};
fetch('http://localhost/mogl/mogl-backend/api/deal-folder/files/{file}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://localhost/mogl/mogl-backend/api/deal-folder/files/{file}/comments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'comment' => 'Looks great — ship it!',
'active_version_id' => 11
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost/mogl/mogl-backend/api/deal-folder/files/{file}/comments"
payload := strings.NewReader("{\n \"comment\": \"Looks great — ship it!\",\n \"active_version_id\": 11\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost/mogl/mogl-backend/api/deal-folder/files/{file}/comments")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"comment\": \"Looks great — ship it!\",\n \"active_version_id\": 11\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/deal-folder/files/{file}/comments")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"comment\": \"Looks great — ship it!\",\n \"active_version_id\": 11\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Comment added.",
"data": {
"id": 300,
"deal_folder_file_id": 5,
"user_id": 42,
"active_version_id": 11,
"comment": "Looks great, please tweak the intro.",
"partner_read_at": null,
"athlete_read_at": "2026-04-02T09:30:00Z",
"created_at": "2026-04-01T13:00:00Z",
"updated_at": "2026-04-01T13:00:00Z"
}
}{
"message": "Unauthenticated."
}{
"status": "error",
"message": "Deal folder file not found."
}{
"message": "The given data was invalid.",
"errors": {}
}Authorizations
JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.
Path Parameters
DealFolderFile ID (slot ID).
Example:
5
Body
application/json