Organization
Write a brain page
Save the next version of a writable page. Writable pages are the playbooks (Playbooks/Positioning, ICP, Market, Distribution, Pricing), Decisions, Playbooks/Competitors/<name>, Working Documents/<name>, and Archive/<name>.
PUT
/
v2
/
brain
/
page
Write a brain page
curl --request PUT \
--url https://api.opennous.cloud/v2/brain/page \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "Playbooks/Competitors/Clay",
"markdown": "# Clay\n\nWhere we win: ..."
}
'import requests
url = "https://api.opennous.cloud/v2/brain/page"
payload = {
"path": "Playbooks/Competitors/Clay",
"markdown": "# Clay
Where we win: ..."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: 'Playbooks/Competitors/Clay', markdown: '# Clay\n\nWhere we win: ...'})
};
fetch('https://api.opennous.cloud/v2/brain/page', 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.opennous.cloud/v2/brain/page",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'path' => 'Playbooks/Competitors/Clay',
'markdown' => '# Clay
Where we win: ...'
]),
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.opennous.cloud/v2/brain/page"
payload := strings.NewReader("{\n \"path\": \"Playbooks/Competitors/Clay\",\n \"markdown\": \"# Clay\\n\\nWhere we win: ...\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.opennous.cloud/v2/brain/page")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"path\": \"Playbooks/Competitors/Clay\",\n \"markdown\": \"# Clay\\n\\nWhere we win: ...\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.opennous.cloud/v2/brain/page")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"path\": \"Playbooks/Competitors/Clay\",\n \"markdown\": \"# Clay\\n\\nWhere we win: ...\"\n}"
response = http.request(request)
puts response.read_body{
"path": "Playbooks/Competitors/Clay",
"version": 2,
"url": "https://app.opennous.cloud/brain/gtm/Playbooks/Competitors/Clay"
}
Saves the next version of a page.
markdown replaces the whole page.
You can write the playbooks (Playbooks/Positioning, Playbooks/ICP, Playbooks/Market, Playbooks/Distribution, Playbooks/Pricing), Decisions, Playbooks/Competitors/<name>, Working Documents/<name>, and Archive/<name>. Other pages are built from the rest of the brain and return 400 path_not_writable.⌘I
Write a brain page
curl --request PUT \
--url https://api.opennous.cloud/v2/brain/page \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "Playbooks/Competitors/Clay",
"markdown": "# Clay\n\nWhere we win: ..."
}
'import requests
url = "https://api.opennous.cloud/v2/brain/page"
payload = {
"path": "Playbooks/Competitors/Clay",
"markdown": "# Clay
Where we win: ..."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: 'Playbooks/Competitors/Clay', markdown: '# Clay\n\nWhere we win: ...'})
};
fetch('https://api.opennous.cloud/v2/brain/page', 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.opennous.cloud/v2/brain/page",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'path' => 'Playbooks/Competitors/Clay',
'markdown' => '# Clay
Where we win: ...'
]),
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.opennous.cloud/v2/brain/page"
payload := strings.NewReader("{\n \"path\": \"Playbooks/Competitors/Clay\",\n \"markdown\": \"# Clay\\n\\nWhere we win: ...\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.opennous.cloud/v2/brain/page")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"path\": \"Playbooks/Competitors/Clay\",\n \"markdown\": \"# Clay\\n\\nWhere we win: ...\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.opennous.cloud/v2/brain/page")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"path\": \"Playbooks/Competitors/Clay\",\n \"markdown\": \"# Clay\\n\\nWhere we win: ...\"\n}"
response = http.request(request)
puts response.read_body{
"path": "Playbooks/Competitors/Clay",
"version": 2,
"url": "https://app.opennous.cloud/brain/gtm/Playbooks/Competitors/Clay"
}