PATCH/ companies/ :company_id/ notes/ :note_id/
Update company note
You can update a specific note connected to a specific company.
Attributes
Optional unless marked required
- company_id
- A unique identifier for the company which is given by User automatically.
- note_id
- A unique identifier for the note which is given by User automatically.
- note
- A text of the note.
Request
- cURL
- JavaScript
- PHP
- Python
curl -X PATCH "https://<your_app_subdomain>.user.com/api/public/companies/:company_id/notes/:note_id/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2" \
-H "Content-Type: application/json" \
-d '{
"note": "Annual billing agreed; send the invoice."
}'
const response = await fetch(
"https://<your_app_subdomain>.user.com/api/public/companies/:company_id/notes/:note_id/",
{
method: "PATCH",
headers: {
Authorization: "Token <your_64_char_api_key>",
Accept: "*/*; version=2",
"Content-Type": "application/json",
},
body: JSON.stringify({
note: "Annual billing agreed; send the invoice.",
}),
},
);
const data = await response.json();
console.log(data);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://<your_app_subdomain>.user.com/api/public/companies/:company_id/notes/:note_id/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_HTTPHEADER => [
"Authorization: Token <your_64_char_api_key>",
"Accept: */*; version=2",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"note" => "Annual billing agreed; send the invoice.",
]),
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import requests
response = requests.patch(
"https://<your_app_subdomain>.user.com/api/public/companies/:company_id/notes/:note_id/",
headers={
"Authorization": "Token <your_64_char_api_key>",
"Accept": "*/*; version=2",
},
json={
"note": "Annual billing agreed; send the invoice.",
},
)
print(response.json())
Response examples
- 200 OK
- 404 Not Found
{
"id": 14,
"note": "Annual billing agreed; send the invoice.",
"author": 1,
"created_at": "2026-11-17T15:01:41.178654Z"
}
No response body.
Response fields
Fields returned in the 200 OK response body.
- id
- ID of the note.
- note
- A text of the note.
- author
- A unique identifier of an agent who created a global variable. A visible author.
- created_at
- A creation date of a note.
note
Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.