Edit an opportunity
PUT
https://api.zenoti.com/v1/opportunities/{opportunity_id}
Supply the unique identifier of the opportunity as opportunity_id and send the original request body with intended changes for the API to update particular opportunity.
On this page
Before you begin
Permission: Manage API Keys (on the Administrator security object) — Required to access Zenoti APIs.
Endpoint
PUT /v1/opportunities/{opportunity_id}
Base URL: https://api.zenoti.com
Request
Path parameters
Request body
Response
Success (200 OK)
{
"success": true,
"message": "Opportunity Updated Successfully"
}
Response fields
Example
curl --request PUT \
--url 'https://api.zenoti.com/v1/opportunities/{opportunity_id}' \
--header 'Authorization: bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
"center_id": "string",
"opportunity_title": "string",
"opportunity_description": "string",
"opportunity_owner_id": "string",
"guest_id": "string",
"created_by_id": "string",
"priority_type_id": "string",
"status_id": "string",
"type": "string",
"followup_date": "2026-01-15",
"expected_close_date": "2026-01-15",
"listed_amount": 0,
"offered_amount": 0,
"optional_field1": "string",
"optional_field2": "string",
"optional_field3": "string",
"ticket_id": "string",
"change_guest_center": true,
"disposition_id": "string",
"custom_fields": "string",
"lead_source": {
"id": "string",
"code": "string"
}
}'
const response = await fetch('https://api.zenoti.com/v1/opportunities/{opportunity_id}', {
method: 'PUT',
headers: {
'Authorization': 'bearer {{access_token}}',
'Content-Type': 'application/json'
},
body: JSON.stringify({
center_id: 'string',
opportunity_title: 'string',
opportunity_description: 'string',
opportunity_owner_id: 'string',
guest_id: 'string',
created_by_id: 'string',
priority_type_id: 'string',
status_id: 'string',
type: 'string',
followup_date: '2026-01-15',
expected_close_date: '2026-01-15',
listed_amount: 0,
offered_amount: 0,
optional_field1: 'string',
optional_field2: 'string',
optional_field3: 'string',
ticket_id: 'string',
change_guest_center: true,
disposition_id: 'string',
custom_fields: 'string',
lead_source: { id: 'string', code: 'string' }
})
});
const data = await response.json();
import requests
response = requests.put(
'https://api.zenoti.com/v1/opportunities/{opportunity_id}',
headers={
'Authorization': 'bearer {{access_token}}',
},
json={'center_id': 'string', 'opportunity_title': 'string', 'opportunity_description': 'string', 'opportunity_owner_id': 'string', 'guest_id': 'string', 'created_by_id': 'string', 'priority_type_id': 'string', 'status_id': 'string', 'type': 'string', 'followup_date': '2026-01-15', 'expected_close_date': '2026-01-15', 'listed_amount': 0, 'offered_amount': 0, 'optional_field1': 'string', 'optional_field2': 'string', 'optional_field3': 'string', 'ticket_id': 'string', 'change_guest_center': True, 'disposition_id': 'string', 'custom_fields': 'string', 'lead_source': {'id': 'string', 'code': 'string'}}
)
data = response.json()
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "bearer {{access_token}}");
var content = new StringContent(
JsonSerializer.Serialize(new {
center_id = "string",
opportunity_title = "string",
opportunity_description = "string",
opportunity_owner_id = "string",
guest_id = "string",
created_by_id = "string",
priority_type_id = "string",
status_id = "string",
type = "string",
followup_date = "2026-01-15",
expected_close_date = "2026-01-15",
listed_amount = 0,
offered_amount = 0,
optional_field1 = "string",
optional_field2 = "string",
optional_field3 = "string",
ticket_id = "string",
change_guest_center = true,
disposition_id = "string",
custom_fields = "string",
lead_source = new { id = "string", code = "string" }
}),
Encoding.UTF8, "application/json");
var response = await client.PutAsync(
"https://api.zenoti.com/v1/opportunities/{opportunity_id}", content);
var data = await response.Content.ReadAsStringAsync();
require 'net/http'
require 'json'
uri = URI('https://api.zenoti.com/v1/opportunities/{opportunity_id}')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Put.new(uri)
request['Authorization'] = 'bearer {{access_token}}'
request['Content-Type'] = 'application/json'
request.body = { center_id: 'string', opportunity_title: 'string', opportunity_description: 'string', opportunity_owner_id: 'string', guest_id: 'string', created_by_id: 'string', priority_type_id: 'string', status_id: 'string', type: 'string', followup_date: '2026-01-15', expected_close_date: '2026-01-15', listed_amount: 0, offered_amount: 0, optional_field1: 'string', optional_field2: 'string', optional_field3: 'string', ticket_id: 'string', change_guest_center: true, disposition_id: 'string', custom_fields: 'string', lead_source: { id: 'string', code: 'string' } }.to_json
response = http.request(request)
data = JSON.parse(response.body)
Error codes