curl, made-up values
curl -X PATCH 'https://api.poddata.ai/v1/diligence-reports/dlr_01JD9K4M5N6P00000000000000/links/drl_01JD9P1Q2R3S00000000000000' \
-H "Authorization: Bearer $PODDATA_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"chat":false}'import requests
url = "https://api.poddata.ai/v1/diligence-reports/{id}/links/{link}"
payload = { "chat": False }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({chat: false})
};
fetch('https://api.poddata.ai/v1/diligence-reports/{id}/links/{link}', 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.poddata.ai/v1/diligence-reports/{id}/links/{link}",
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([
'chat' => false
]),
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 := "https://api.poddata.ai/v1/diligence-reports/{id}/links/{link}"
payload := strings.NewReader("{\n \"chat\": false\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.poddata.ai/v1/diligence-reports/{id}/links/{link}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"chat\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.poddata.ai/v1/diligence-reports/{id}/links/{link}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"chat\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "drl_01JD9P1Q2R3S00000000000000",
"label": "Investment committee",
"expires_at": "2026-12-26T15:04:05.000Z",
"turned_off_at": null,
"created_at": "2026-11-26T15:04:05.000Z",
"opens": 0,
"last_opened_at": null,
"works": true,
"made_by": {
"kind": "key",
"id": "key_01JD9P1Q2R3S00000000000000",
"name": "Diligence scripts"
},
"chat": false,
"chats": {
"conversations": 0,
"messages": 0,
"usd": 0,
"today_usd": 0
}
}Reports
Changes a private link: whether its readers may ask the report questions in a chat
Turns a private link’s chat on or off (chat): whether its readers may ask the report questions in a chat on the right of the link, answered on your team’s account. Off, its chat answers nothing and a turn going ends, and what was asked stays for your team to read in the workspace. On again, its readers ask again. The link itself still opens the report either way.
Before: The link’s id, drl_…, from GET /diligence-reports/{id}/links.
Next: GET /diligence-reports/{id}/links shows each link’s switch and what its readers have asked.
Limits: A link this report doesn’t have is a 404. A link turned off or expired keeps its switch, which changes nothing while the link opens nothing.
PATCH
/
diligence-reports
/
{id}
/
links
/
{link}
curl, made-up values
curl -X PATCH 'https://api.poddata.ai/v1/diligence-reports/dlr_01JD9K4M5N6P00000000000000/links/drl_01JD9P1Q2R3S00000000000000' \
-H "Authorization: Bearer $PODDATA_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"chat":false}'import requests
url = "https://api.poddata.ai/v1/diligence-reports/{id}/links/{link}"
payload = { "chat": False }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({chat: false})
};
fetch('https://api.poddata.ai/v1/diligence-reports/{id}/links/{link}', 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.poddata.ai/v1/diligence-reports/{id}/links/{link}",
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([
'chat' => false
]),
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 := "https://api.poddata.ai/v1/diligence-reports/{id}/links/{link}"
payload := strings.NewReader("{\n \"chat\": false\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.poddata.ai/v1/diligence-reports/{id}/links/{link}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"chat\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.poddata.ai/v1/diligence-reports/{id}/links/{link}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"chat\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "drl_01JD9P1Q2R3S00000000000000",
"label": "Investment committee",
"expires_at": "2026-12-26T15:04:05.000Z",
"turned_off_at": null,
"created_at": "2026-11-26T15:04:05.000Z",
"opens": 0,
"last_opened_at": null,
"works": true,
"made_by": {
"kind": "key",
"id": "key_01JD9P1Q2R3S00000000000000",
"name": "Diligence scripts"
},
"chat": false,
"chats": {
"conversations": 0,
"messages": 0,
"usd": 0,
"today_usd": 0
}
}MCP tool:
change_report_link, on PodData’s MCP server at https://api.poddata.ai/mcp, does what this route does, with the same key. See The MCP server.Authorizations
Body
application/json
Response
The link, changed