import requests
response = requests.put(
'https://api.zenoti.com/v1/opportunities/{opportunity_id}',
headers={
'Authorization': 'bearer {{access_token}}',
},
json={'stage_id': 'c3d4e5f6-a7b8-9012-cdef-345678901234', 'notes': 'Follow up next week'}
)
data = response.json()
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "bearer {{access_token}}");
var content = new StringContent(
JsonSerializer.Serialize(new { stageId = "c3d4e5f6-a7b8-9012-cdef-345678901234", notes = "Follow up next week" }),
Encoding.UTF8, "application/json");
var response = await client.PutAsync(
"https://api.zenoti.com/v1/opportunities/{opportunity_id}", content);
var data = await response.Content.ReadAsStringAsync();