Add notes to an opportunity
POST
https://api.zenoti.com/v1/opportunities/{opportunity_id}/notes
Supply the unique id od the opportunity as opportunity_id and request body to this API and this API will add notes to that opportunity.
Before you begin
Permission: Manage API Keys (on the Administrator security object) — Required to access Zenoti APIs.
Endpoint
POST /v1/opportunities/{opportunity_id}/notes
Base URL: https://api.zenoti.com
Request
Path parameters
Query parameters
Response
Success (201 Created)
{
"success": true,
"message": "Notes Added Successfully"
}
Response fields
Example
curl --request POST \
--url 'https://api.zenoti.com/v1/opportunities/{opportunity_id}/notes?notes={{notes}}&updated_by_id={{updated_by_id}}' \
--header 'Authorization: bearer {{access_token}}'
const response = await fetch('https://api.zenoti.com/v1/opportunities/{opportunity_id}/notes', {
method: 'POST',
headers: {
'Authorization': 'bearer {{access_token}}'
},
});
const data = await response.json();
import requests
response = requests.post(
'https://api.zenoti.com/v1/opportunities/{opportunity_id}/notes',
headers={
'Authorization': 'bearer {{access_token}}',
},
)
data = response.json()
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "bearer {{access_token}}");
var response = await client.PostAsync(
"https://api.zenoti.com/v1/opportunities/{opportunity_id}/notes");
var data = await response.Content.ReadAsStringAsync();
require 'net/http'
require 'json'
uri = URI('https://api.zenoti.com/v1/opportunities/{opportunity_id}/notes')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Authorization'] = 'bearer {{access_token}}'
response = http.request(request)
data = JSON.parse(response.body)
Error codes