Notes
Update Note
Updates the content and pin state of an existing note.
Notes:
- content must not be blank; isPin must not be null.
- content is silently truncated to 2000 characters.
- If leadId is supplied in the body, it must match the note’s lead; otherwise 400 INVALID_UPDATE_OPERATION_LEADID.
- Caller must have access to the lead; otherwise 404 LEAD_NOT_EXIST.
- The response body is empty.
PUT
/
v1.0
/
notes
/
{noteId}
Update Note
curl --request PUT \
--url https://api.lofty.com/v1.0/notes/{noteId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"content": "Discussed Austin inventory, will send pre-approval doc tomorrow.",
"leadId": 563172647619608,
"isPin": false
}
'import requests
url = "https://api.lofty.com/v1.0/notes/{noteId}"
payload = {
"content": "Discussed Austin inventory, will send pre-approval doc tomorrow.",
"leadId": 563172647619608,
"isPin": False
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'},
body: JSON.stringify({
content: 'Discussed Austin inventory, will send pre-approval doc tomorrow.',
leadId: 563172647619608,
isPin: false
})
};
fetch('https://api.lofty.com/v1.0/notes/{noteId}', 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.lofty.com/v1.0/notes/{noteId}",
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([
'content' => 'Discussed Austin inventory, will send pre-approval doc tomorrow.',
'leadId' => 563172647619608,
'isPin' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$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.lofty.com/v1.0/notes/{noteId}"
payload := strings.NewReader("{\n \"content\": \"Discussed Austin inventory, will send pre-approval doc tomorrow.\",\n \"leadId\": 563172647619608,\n \"isPin\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
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.lofty.com/v1.0/notes/{noteId}")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"content\": \"Discussed Austin inventory, will send pre-approval doc tomorrow.\",\n \"leadId\": 563172647619608,\n \"isPin\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/notes/{noteId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"content\": \"Discussed Austin inventory, will send pre-approval doc tomorrow.\",\n \"leadId\": 563172647619608,\n \"isPin\": false\n}"
response = http.request(request)
puts response.read_bodyPath Parameters
ID of the note to update.
Required range:
x >= 1Body
application/json
Note payload.
Note content. Silently truncated to 2000 characters.
Maximum string length:
2000Example:
"Discussed Austin inventory, will send pre-approval doc tomorrow."
ID of the lead this note belongs to. Must be accessible to the caller.
Example:
563172647619608
Whether to pin this note to the top of the lead's timeline.
Example:
false
Response
Note updated successfully. No response body.
⌘I
Update Note
curl --request PUT \
--url https://api.lofty.com/v1.0/notes/{noteId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"content": "Discussed Austin inventory, will send pre-approval doc tomorrow.",
"leadId": 563172647619608,
"isPin": false
}
'import requests
url = "https://api.lofty.com/v1.0/notes/{noteId}"
payload = {
"content": "Discussed Austin inventory, will send pre-approval doc tomorrow.",
"leadId": 563172647619608,
"isPin": False
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'},
body: JSON.stringify({
content: 'Discussed Austin inventory, will send pre-approval doc tomorrow.',
leadId: 563172647619608,
isPin: false
})
};
fetch('https://api.lofty.com/v1.0/notes/{noteId}', 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.lofty.com/v1.0/notes/{noteId}",
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([
'content' => 'Discussed Austin inventory, will send pre-approval doc tomorrow.',
'leadId' => 563172647619608,
'isPin' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$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.lofty.com/v1.0/notes/{noteId}"
payload := strings.NewReader("{\n \"content\": \"Discussed Austin inventory, will send pre-approval doc tomorrow.\",\n \"leadId\": 563172647619608,\n \"isPin\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
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.lofty.com/v1.0/notes/{noteId}")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"content\": \"Discussed Austin inventory, will send pre-approval doc tomorrow.\",\n \"leadId\": 563172647619608,\n \"isPin\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/notes/{noteId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"content\": \"Discussed Austin inventory, will send pre-approval doc tomorrow.\",\n \"leadId\": 563172647619608,\n \"isPin\": false\n}"
response = http.request(request)
puts response.read_body