---
title: "Edit an opportunity"
method: PUT
path: "/v1/opportunities/{opportunity_id}"
---

# Edit an opportunity

`PUT /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.

## Path parameters

- `opportunity_id` string, required

## Request body

- object
  - `center_id` string, required — `Mandatory` Unique identifier of the opportunity
  - `opportunity_title` string — `Optional` Title of the opportunity.
  - `opportunity_description` string — `Optional` Description of the opportunity.
  - `opportunity_owner_id` string — `Optional` Unique Id of the owner of the opportunity.
  - `guest_id` string — `Optional` Unique id of the guest.
  - `created_by_id` string — `Optional` Unique if of the employee.
  - `priority_type_id` string — `Optional` Unique id of the priority type of the opportunity
  - `status_id` string — `Optional` Unique of the stage type (or) status type of the opportunity,
  - `type` string — `Optional` Opportunity type Membership or Package or Others.
  - `followup_date` string, date — `Optional` Date on which a followup call is planned(yyyy-mm-dd).
  - `expected_close_date` string, date — `Optional` Expected close date in center time.
  - `listed_amount` number, double — `Optional` Price listed in the catalog
  - `offered_amount` number, double — `Optional` Price offered for the opportunity
  - `optional_field1` string — `Optional` User defined optional field.
  - `optional_field2` string — `Optional` User defined optional field.
  - `optional_field3` string — `Optional` User defined optional field.
  - `ticket_id` string — `Optional` Unique id of the ticket.
  - `change_guest_center` boolean — `Optional` boolean which changes guest's center to the valid center_id passed if made true
  - `disposition_id` string — `Optional` Unique id of the disposition
  - `custom_fields` string — `Optional` Key(Guid) has the FieldId of the custom field and Value(String) has the value of the custom field.
  - `lead_source` object — `Optional` Details of lead source
    - `id` string — `Optional` Unique id of the lead source
    - `code` string — `Optional` Code of the lead source

## Response `200`

200

- object
  - `success` boolean
  - `message` string

## Other responses

- `400` — 400

---

[API](https://skmtc.net/zenoti/apis/zenoti-authentication.md) · [All operations](https://skmtc.net/zenoti/apis/zenoti-authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zenoti/zenoti-authentication/revisions/e628f892391a/schema)
