curl --request PATCH \
--url https://api.mentionlab.io/api/v1/projects/{id} \
--header 'Content-Type: application/json' \
--header 'x-project-id: <x-project-id>' \
--data '
{
"name": "My Project",
"description": "My Project Description",
"website": "https://www.mentionlab.io",
"industry": "Cosmetics",
"nameAliases": [
"My Project",
"My Project 2"
],
"blackListAliases": [
"Other Brand",
"Unrelated Company"
],
"currentPo": "PO-2026-Q2-1234",
"themeAnalysisEnabled": true,
"themeLanguage": "en",
"themeClusteringConfig": {
"mint": 0.74,
"fold": 0.82,
"consGrayLo": 0.74,
"autoMerge": 0.92,
"singletonAbsorbLo": 0.62,
"whitenGate": 0.2,
"superAssignFloor": 0.05,
"superMax": 15
}
}
'import requests
url = "https://api.mentionlab.io/api/v1/projects/{id}"
payload = {
"name": "My Project",
"description": "My Project Description",
"website": "https://www.mentionlab.io",
"industry": "Cosmetics",
"nameAliases": ["My Project", "My Project 2"],
"blackListAliases": ["Other Brand", "Unrelated Company"],
"currentPo": "PO-2026-Q2-1234",
"themeAnalysisEnabled": True,
"themeLanguage": "en",
"themeClusteringConfig": {
"mint": 0.74,
"fold": 0.82,
"consGrayLo": 0.74,
"autoMerge": 0.92,
"singletonAbsorbLo": 0.62,
"whitenGate": 0.2,
"superAssignFloor": 0.05,
"superMax": 15
}
}
headers = {
"x-project-id": "<x-project-id>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-project-id': '<x-project-id>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'My Project',
description: 'My Project Description',
website: 'https://www.mentionlab.io',
industry: 'Cosmetics',
nameAliases: ['My Project', 'My Project 2'],
blackListAliases: ['Other Brand', 'Unrelated Company'],
currentPo: 'PO-2026-Q2-1234',
themeAnalysisEnabled: true,
themeLanguage: 'en',
themeClusteringConfig: {
mint: 0.74,
fold: 0.82,
consGrayLo: 0.74,
autoMerge: 0.92,
singletonAbsorbLo: 0.62,
whitenGate: 0.2,
superAssignFloor: 0.05,
superMax: 15
}
})
};
fetch('https://api.mentionlab.io/api/v1/projects/{id}', 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 => "https://api.mentionlab.io/api/v1/projects/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'My Project',
'description' => 'My Project Description',
'website' => 'https://www.mentionlab.io',
'industry' => 'Cosmetics',
'nameAliases' => [
'My Project',
'My Project 2'
],
'blackListAliases' => [
'Other Brand',
'Unrelated Company'
],
'currentPo' => 'PO-2026-Q2-1234',
'themeAnalysisEnabled' => true,
'themeLanguage' => 'en',
'themeClusteringConfig' => [
'mint' => 0.74,
'fold' => 0.82,
'consGrayLo' => 0.74,
'autoMerge' => 0.92,
'singletonAbsorbLo' => 0.62,
'whitenGate' => 0.2,
'superAssignFloor' => 0.05,
'superMax' => 15
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-project-id: <x-project-id>"
],
]);
$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 := "https://api.mentionlab.io/api/v1/projects/{id}"
payload := strings.NewReader("{\n \"name\": \"My Project\",\n \"description\": \"My Project Description\",\n \"website\": \"https://www.mentionlab.io\",\n \"industry\": \"Cosmetics\",\n \"nameAliases\": [\n \"My Project\",\n \"My Project 2\"\n ],\n \"blackListAliases\": [\n \"Other Brand\",\n \"Unrelated Company\"\n ],\n \"currentPo\": \"PO-2026-Q2-1234\",\n \"themeAnalysisEnabled\": true,\n \"themeLanguage\": \"en\",\n \"themeClusteringConfig\": {\n \"mint\": 0.74,\n \"fold\": 0.82,\n \"consGrayLo\": 0.74,\n \"autoMerge\": 0.92,\n \"singletonAbsorbLo\": 0.62,\n \"whitenGate\": 0.2,\n \"superAssignFloor\": 0.05,\n \"superMax\": 15\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-project-id", "<x-project-id>")
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.patch("https://api.mentionlab.io/api/v1/projects/{id}")
.header("x-project-id", "<x-project-id>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"My Project\",\n \"description\": \"My Project Description\",\n \"website\": \"https://www.mentionlab.io\",\n \"industry\": \"Cosmetics\",\n \"nameAliases\": [\n \"My Project\",\n \"My Project 2\"\n ],\n \"blackListAliases\": [\n \"Other Brand\",\n \"Unrelated Company\"\n ],\n \"currentPo\": \"PO-2026-Q2-1234\",\n \"themeAnalysisEnabled\": true,\n \"themeLanguage\": \"en\",\n \"themeClusteringConfig\": {\n \"mint\": 0.74,\n \"fold\": 0.82,\n \"consGrayLo\": 0.74,\n \"autoMerge\": 0.92,\n \"singletonAbsorbLo\": 0.62,\n \"whitenGate\": 0.2,\n \"superAssignFloor\": 0.05,\n \"superMax\": 15\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mentionlab.io/api/v1/projects/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-project-id"] = '<x-project-id>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"My Project\",\n \"description\": \"My Project Description\",\n \"website\": \"https://www.mentionlab.io\",\n \"industry\": \"Cosmetics\",\n \"nameAliases\": [\n \"My Project\",\n \"My Project 2\"\n ],\n \"blackListAliases\": [\n \"Other Brand\",\n \"Unrelated Company\"\n ],\n \"currentPo\": \"PO-2026-Q2-1234\",\n \"themeAnalysisEnabled\": true,\n \"themeLanguage\": \"en\",\n \"themeClusteringConfig\": {\n \"mint\": 0.74,\n \"fold\": 0.82,\n \"consGrayLo\": 0.74,\n \"autoMerge\": 0.92,\n \"singletonAbsorbLo\": 0.62,\n \"whitenGate\": 0.2,\n \"superAssignFloor\": 0.05,\n \"superMax\": 15\n }\n}"
response = http.request(request)
puts response.read_body{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}Update a project
Updates a project’s editable fields; the path id must match the x-project-id header.
curl --request PATCH \
--url https://api.mentionlab.io/api/v1/projects/{id} \
--header 'Content-Type: application/json' \
--header 'x-project-id: <x-project-id>' \
--data '
{
"name": "My Project",
"description": "My Project Description",
"website": "https://www.mentionlab.io",
"industry": "Cosmetics",
"nameAliases": [
"My Project",
"My Project 2"
],
"blackListAliases": [
"Other Brand",
"Unrelated Company"
],
"currentPo": "PO-2026-Q2-1234",
"themeAnalysisEnabled": true,
"themeLanguage": "en",
"themeClusteringConfig": {
"mint": 0.74,
"fold": 0.82,
"consGrayLo": 0.74,
"autoMerge": 0.92,
"singletonAbsorbLo": 0.62,
"whitenGate": 0.2,
"superAssignFloor": 0.05,
"superMax": 15
}
}
'import requests
url = "https://api.mentionlab.io/api/v1/projects/{id}"
payload = {
"name": "My Project",
"description": "My Project Description",
"website": "https://www.mentionlab.io",
"industry": "Cosmetics",
"nameAliases": ["My Project", "My Project 2"],
"blackListAliases": ["Other Brand", "Unrelated Company"],
"currentPo": "PO-2026-Q2-1234",
"themeAnalysisEnabled": True,
"themeLanguage": "en",
"themeClusteringConfig": {
"mint": 0.74,
"fold": 0.82,
"consGrayLo": 0.74,
"autoMerge": 0.92,
"singletonAbsorbLo": 0.62,
"whitenGate": 0.2,
"superAssignFloor": 0.05,
"superMax": 15
}
}
headers = {
"x-project-id": "<x-project-id>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-project-id': '<x-project-id>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'My Project',
description: 'My Project Description',
website: 'https://www.mentionlab.io',
industry: 'Cosmetics',
nameAliases: ['My Project', 'My Project 2'],
blackListAliases: ['Other Brand', 'Unrelated Company'],
currentPo: 'PO-2026-Q2-1234',
themeAnalysisEnabled: true,
themeLanguage: 'en',
themeClusteringConfig: {
mint: 0.74,
fold: 0.82,
consGrayLo: 0.74,
autoMerge: 0.92,
singletonAbsorbLo: 0.62,
whitenGate: 0.2,
superAssignFloor: 0.05,
superMax: 15
}
})
};
fetch('https://api.mentionlab.io/api/v1/projects/{id}', 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 => "https://api.mentionlab.io/api/v1/projects/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'My Project',
'description' => 'My Project Description',
'website' => 'https://www.mentionlab.io',
'industry' => 'Cosmetics',
'nameAliases' => [
'My Project',
'My Project 2'
],
'blackListAliases' => [
'Other Brand',
'Unrelated Company'
],
'currentPo' => 'PO-2026-Q2-1234',
'themeAnalysisEnabled' => true,
'themeLanguage' => 'en',
'themeClusteringConfig' => [
'mint' => 0.74,
'fold' => 0.82,
'consGrayLo' => 0.74,
'autoMerge' => 0.92,
'singletonAbsorbLo' => 0.62,
'whitenGate' => 0.2,
'superAssignFloor' => 0.05,
'superMax' => 15
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-project-id: <x-project-id>"
],
]);
$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 := "https://api.mentionlab.io/api/v1/projects/{id}"
payload := strings.NewReader("{\n \"name\": \"My Project\",\n \"description\": \"My Project Description\",\n \"website\": \"https://www.mentionlab.io\",\n \"industry\": \"Cosmetics\",\n \"nameAliases\": [\n \"My Project\",\n \"My Project 2\"\n ],\n \"blackListAliases\": [\n \"Other Brand\",\n \"Unrelated Company\"\n ],\n \"currentPo\": \"PO-2026-Q2-1234\",\n \"themeAnalysisEnabled\": true,\n \"themeLanguage\": \"en\",\n \"themeClusteringConfig\": {\n \"mint\": 0.74,\n \"fold\": 0.82,\n \"consGrayLo\": 0.74,\n \"autoMerge\": 0.92,\n \"singletonAbsorbLo\": 0.62,\n \"whitenGate\": 0.2,\n \"superAssignFloor\": 0.05,\n \"superMax\": 15\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-project-id", "<x-project-id>")
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.patch("https://api.mentionlab.io/api/v1/projects/{id}")
.header("x-project-id", "<x-project-id>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"My Project\",\n \"description\": \"My Project Description\",\n \"website\": \"https://www.mentionlab.io\",\n \"industry\": \"Cosmetics\",\n \"nameAliases\": [\n \"My Project\",\n \"My Project 2\"\n ],\n \"blackListAliases\": [\n \"Other Brand\",\n \"Unrelated Company\"\n ],\n \"currentPo\": \"PO-2026-Q2-1234\",\n \"themeAnalysisEnabled\": true,\n \"themeLanguage\": \"en\",\n \"themeClusteringConfig\": {\n \"mint\": 0.74,\n \"fold\": 0.82,\n \"consGrayLo\": 0.74,\n \"autoMerge\": 0.92,\n \"singletonAbsorbLo\": 0.62,\n \"whitenGate\": 0.2,\n \"superAssignFloor\": 0.05,\n \"superMax\": 15\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mentionlab.io/api/v1/projects/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-project-id"] = '<x-project-id>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"My Project\",\n \"description\": \"My Project Description\",\n \"website\": \"https://www.mentionlab.io\",\n \"industry\": \"Cosmetics\",\n \"nameAliases\": [\n \"My Project\",\n \"My Project 2\"\n ],\n \"blackListAliases\": [\n \"Other Brand\",\n \"Unrelated Company\"\n ],\n \"currentPo\": \"PO-2026-Q2-1234\",\n \"themeAnalysisEnabled\": true,\n \"themeLanguage\": \"en\",\n \"themeClusteringConfig\": {\n \"mint\": 0.74,\n \"fold\": 0.82,\n \"consGrayLo\": 0.74,\n \"autoMerge\": 0.92,\n \"singletonAbsorbLo\": 0.62,\n \"whitenGate\": 0.2,\n \"superAssignFloor\": 0.05,\n \"superMax\": 15\n }\n}"
response = http.request(request)
puts response.read_body{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}Headers
Project ID to specify the project context
Path Parameters
Identifier of the project to update. Must match the x-project-id header.
"550e8400-e29b-41d4-a716-446655440000"
Body
The name of the project
"My Project"
The description of the project
"My Project Description"
The website of the project
"https://www.mentionlab.io"
The industry of the project
"Cosmetics"
The aliases of the project name
["My Project", "My Project 2"]
The blacklisted aliases of the project name
["Other Brand", "Unrelated Company"]
Active purchase order. When set, future buys / refunds / commitment releases that target this project snapshot the value onto the resulting lot for accountant statements.
"PO-2026-Q2-1234"
Enable the async Brand Perception & Intelligence theme-analysis batch. When on, completed jobs are picked up (within ~1 min) and analyzed.
true
Language for extracted themes. A language code ('en', 'fr', 'nl', …) forces a monolingual taxonomy; 'auto' lets themes follow each answer's own language.
auto, en, fr, nl, de, es, it, pt "en"
Per-project theme clustering threshold overrides. Any omitted knob falls back to the global default. Takes effect on the next cluster pass; rebuild to re-apply to existing themes.
Show child attributes
Show child attributes