Add or edit a disclosed job
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/add-disclosed-job \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"job_name": "Content Creation Job",
"partner_name": "Acme Brand",
"job_description": "<p>Job description here</p>",
"job_status": "completed",
"job_id": 1,
"company_name": "Acme Inc",
"price": 500,
"free_product": "N",
"is_exclusive": "N",
"specifics_exclusive_deal": "None",
"applied_on": "2026-01-15",
"agreement_accepted_date": "2026-01-20",
"completed_at": "2026-03-01",
"poc_email": "contact@example.com",
"poc_name": "Jane Smith",
"signature": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
"job_category_arr": [],
"deliverable_list": [],
"add_attachment": [],
"delete_attachment": []
}
'import requests
url = "http://localhost/mogl/mogl-backend/api/add-disclosed-job"
payload = {
"job_name": "Content Creation Job",
"partner_name": "Acme Brand",
"job_description": "<p>Job description here</p>",
"job_status": "completed",
"job_id": 1,
"company_name": "Acme Inc",
"price": 500,
"free_product": "N",
"is_exclusive": "N",
"specifics_exclusive_deal": "None",
"applied_on": "2026-01-15",
"agreement_accepted_date": "2026-01-20",
"completed_at": "2026-03-01",
"poc_email": "contact@example.com",
"poc_name": "Jane Smith",
"signature": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
"job_category_arr": [],
"deliverable_list": [],
"add_attachment": [],
"delete_attachment": []
}
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({
job_name: 'Content Creation Job',
partner_name: 'Acme Brand',
job_description: '<p>Job description here</p>',
job_status: 'completed',
job_id: 1,
company_name: 'Acme Inc',
price: 500,
free_product: 'N',
is_exclusive: 'N',
specifics_exclusive_deal: 'None',
applied_on: '2026-01-15',
agreement_accepted_date: '2026-01-20',
completed_at: '2026-03-01',
poc_email: 'contact@example.com',
poc_name: 'Jane Smith',
signature: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...',
job_category_arr: [],
deliverable_list: [],
add_attachment: [],
delete_attachment: []
})
};
fetch('http://localhost/mogl/mogl-backend/api/add-disclosed-job', 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/add-disclosed-job",
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([
'job_name' => 'Content Creation Job',
'partner_name' => 'Acme Brand',
'job_description' => '<p>Job description here</p>',
'job_status' => 'completed',
'job_id' => 1,
'company_name' => 'Acme Inc',
'price' => 500,
'free_product' => 'N',
'is_exclusive' => 'N',
'specifics_exclusive_deal' => 'None',
'applied_on' => '2026-01-15',
'agreement_accepted_date' => '2026-01-20',
'completed_at' => '2026-03-01',
'poc_email' => 'contact@example.com',
'poc_name' => 'Jane Smith',
'signature' => 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...',
'job_category_arr' => [
],
'deliverable_list' => [
],
'add_attachment' => [
],
'delete_attachment' => [
]
]),
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/add-disclosed-job"
payload := strings.NewReader("{\n \"job_name\": \"Content Creation Job\",\n \"partner_name\": \"Acme Brand\",\n \"job_description\": \"<p>Job description here</p>\",\n \"job_status\": \"completed\",\n \"job_id\": 1,\n \"company_name\": \"Acme Inc\",\n \"price\": 500,\n \"free_product\": \"N\",\n \"is_exclusive\": \"N\",\n \"specifics_exclusive_deal\": \"None\",\n \"applied_on\": \"2026-01-15\",\n \"agreement_accepted_date\": \"2026-01-20\",\n \"completed_at\": \"2026-03-01\",\n \"poc_email\": \"contact@example.com\",\n \"poc_name\": \"Jane Smith\",\n \"signature\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"job_category_arr\": [],\n \"deliverable_list\": [],\n \"add_attachment\": [],\n \"delete_attachment\": []\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/add-disclosed-job")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"job_name\": \"Content Creation Job\",\n \"partner_name\": \"Acme Brand\",\n \"job_description\": \"<p>Job description here</p>\",\n \"job_status\": \"completed\",\n \"job_id\": 1,\n \"company_name\": \"Acme Inc\",\n \"price\": 500,\n \"free_product\": \"N\",\n \"is_exclusive\": \"N\",\n \"specifics_exclusive_deal\": \"None\",\n \"applied_on\": \"2026-01-15\",\n \"agreement_accepted_date\": \"2026-01-20\",\n \"completed_at\": \"2026-03-01\",\n \"poc_email\": \"contact@example.com\",\n \"poc_name\": \"Jane Smith\",\n \"signature\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"job_category_arr\": [],\n \"deliverable_list\": [],\n \"add_attachment\": [],\n \"delete_attachment\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/add-disclosed-job")
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 \"job_name\": \"Content Creation Job\",\n \"partner_name\": \"Acme Brand\",\n \"job_description\": \"<p>Job description here</p>\",\n \"job_status\": \"completed\",\n \"job_id\": 1,\n \"company_name\": \"Acme Inc\",\n \"price\": 500,\n \"free_product\": \"N\",\n \"is_exclusive\": \"N\",\n \"specifics_exclusive_deal\": \"None\",\n \"applied_on\": \"2026-01-15\",\n \"agreement_accepted_date\": \"2026-01-20\",\n \"completed_at\": \"2026-03-01\",\n \"poc_email\": \"contact@example.com\",\n \"poc_name\": \"Jane Smith\",\n \"signature\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"job_category_arr\": [],\n \"deliverable_list\": [],\n \"add_attachment\": [],\n \"delete_attachment\": []\n}"
response = http.request(request)
puts response.read_bodyAdd or edit a disclosed job
Create or update a disclosed (self-reported) job. Required fields: job_name, partner_name, job_description, job_status. Pass job_id for edit.
POST
/
add-disclosed-job
Add or edit a disclosed job
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/add-disclosed-job \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"job_name": "Content Creation Job",
"partner_name": "Acme Brand",
"job_description": "<p>Job description here</p>",
"job_status": "completed",
"job_id": 1,
"company_name": "Acme Inc",
"price": 500,
"free_product": "N",
"is_exclusive": "N",
"specifics_exclusive_deal": "None",
"applied_on": "2026-01-15",
"agreement_accepted_date": "2026-01-20",
"completed_at": "2026-03-01",
"poc_email": "contact@example.com",
"poc_name": "Jane Smith",
"signature": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
"job_category_arr": [],
"deliverable_list": [],
"add_attachment": [],
"delete_attachment": []
}
'import requests
url = "http://localhost/mogl/mogl-backend/api/add-disclosed-job"
payload = {
"job_name": "Content Creation Job",
"partner_name": "Acme Brand",
"job_description": "<p>Job description here</p>",
"job_status": "completed",
"job_id": 1,
"company_name": "Acme Inc",
"price": 500,
"free_product": "N",
"is_exclusive": "N",
"specifics_exclusive_deal": "None",
"applied_on": "2026-01-15",
"agreement_accepted_date": "2026-01-20",
"completed_at": "2026-03-01",
"poc_email": "contact@example.com",
"poc_name": "Jane Smith",
"signature": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
"job_category_arr": [],
"deliverable_list": [],
"add_attachment": [],
"delete_attachment": []
}
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({
job_name: 'Content Creation Job',
partner_name: 'Acme Brand',
job_description: '<p>Job description here</p>',
job_status: 'completed',
job_id: 1,
company_name: 'Acme Inc',
price: 500,
free_product: 'N',
is_exclusive: 'N',
specifics_exclusive_deal: 'None',
applied_on: '2026-01-15',
agreement_accepted_date: '2026-01-20',
completed_at: '2026-03-01',
poc_email: 'contact@example.com',
poc_name: 'Jane Smith',
signature: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...',
job_category_arr: [],
deliverable_list: [],
add_attachment: [],
delete_attachment: []
})
};
fetch('http://localhost/mogl/mogl-backend/api/add-disclosed-job', 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/add-disclosed-job",
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([
'job_name' => 'Content Creation Job',
'partner_name' => 'Acme Brand',
'job_description' => '<p>Job description here</p>',
'job_status' => 'completed',
'job_id' => 1,
'company_name' => 'Acme Inc',
'price' => 500,
'free_product' => 'N',
'is_exclusive' => 'N',
'specifics_exclusive_deal' => 'None',
'applied_on' => '2026-01-15',
'agreement_accepted_date' => '2026-01-20',
'completed_at' => '2026-03-01',
'poc_email' => 'contact@example.com',
'poc_name' => 'Jane Smith',
'signature' => 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...',
'job_category_arr' => [
],
'deliverable_list' => [
],
'add_attachment' => [
],
'delete_attachment' => [
]
]),
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/add-disclosed-job"
payload := strings.NewReader("{\n \"job_name\": \"Content Creation Job\",\n \"partner_name\": \"Acme Brand\",\n \"job_description\": \"<p>Job description here</p>\",\n \"job_status\": \"completed\",\n \"job_id\": 1,\n \"company_name\": \"Acme Inc\",\n \"price\": 500,\n \"free_product\": \"N\",\n \"is_exclusive\": \"N\",\n \"specifics_exclusive_deal\": \"None\",\n \"applied_on\": \"2026-01-15\",\n \"agreement_accepted_date\": \"2026-01-20\",\n \"completed_at\": \"2026-03-01\",\n \"poc_email\": \"contact@example.com\",\n \"poc_name\": \"Jane Smith\",\n \"signature\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"job_category_arr\": [],\n \"deliverable_list\": [],\n \"add_attachment\": [],\n \"delete_attachment\": []\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/add-disclosed-job")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"job_name\": \"Content Creation Job\",\n \"partner_name\": \"Acme Brand\",\n \"job_description\": \"<p>Job description here</p>\",\n \"job_status\": \"completed\",\n \"job_id\": 1,\n \"company_name\": \"Acme Inc\",\n \"price\": 500,\n \"free_product\": \"N\",\n \"is_exclusive\": \"N\",\n \"specifics_exclusive_deal\": \"None\",\n \"applied_on\": \"2026-01-15\",\n \"agreement_accepted_date\": \"2026-01-20\",\n \"completed_at\": \"2026-03-01\",\n \"poc_email\": \"contact@example.com\",\n \"poc_name\": \"Jane Smith\",\n \"signature\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"job_category_arr\": [],\n \"deliverable_list\": [],\n \"add_attachment\": [],\n \"delete_attachment\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/add-disclosed-job")
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 \"job_name\": \"Content Creation Job\",\n \"partner_name\": \"Acme Brand\",\n \"job_description\": \"<p>Job description here</p>\",\n \"job_status\": \"completed\",\n \"job_id\": 1,\n \"company_name\": \"Acme Inc\",\n \"price\": 500,\n \"free_product\": \"N\",\n \"is_exclusive\": \"N\",\n \"specifics_exclusive_deal\": \"None\",\n \"applied_on\": \"2026-01-15\",\n \"agreement_accepted_date\": \"2026-01-20\",\n \"completed_at\": \"2026-03-01\",\n \"poc_email\": \"contact@example.com\",\n \"poc_name\": \"Jane Smith\",\n \"signature\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"job_category_arr\": [],\n \"deliverable_list\": [],\n \"add_attachment\": [],\n \"delete_attachment\": []\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.
Body
application/json
Job/deal name
Example:
"Content Creation Job"
Brand/partner name
Example:
"Acme Brand"
Job description
Example:
"<p>Job description here</p>"
Job status
Example:
"completed"
Disclosed job ID (for edit)
Example:
1
Example:
"Acme Inc"
Deal amount
Example:
500
Example:
"N"
Example:
"N"
Example:
"None"
Example:
"2026-01-15"
Example:
"2026-01-20"
Example:
"2026-03-01"
Example:
"contact@example.com"
Example:
"Jane Smith"
Example:
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..."
Example:
[]
Example:
[]
Example:
[]
Example:
[]
Response
200
Disclosed job saved