---
title: "Update an opportunity"
method: PUT
path: "/opportunities/{id}"
tags: ["Opportunities"]
---

# Update an opportunity

`PUT /opportunities/{id}`

Update an opportunity

## Path parameters

- `id` number, required

## Request body

- object
  - `owner` number — The ID of the user who owns the opportunity.
  - `account` number — The Salesflare ID of the account linked to the opportunity.
  - `stage` number — The Salesflare ID of the stage.
  - `lost_reason` number — The reason the opportunity was lost.
  - `files` object[] — List of files associated with the opportunity.
  - `lead_source` number — The source of the opportunity.
  - `start_date` string, date-time — The start date of the opportunity (ISO 8601 date-time).
  - `probability` number — The probability that the opportunity will be won.
  - `assignee` number — The ID of the user assigned to the opportunity.
  - `creator` number — The ID of the user who created the opportunity.
  - `name` string — The opportunity name.
  - `value` number — The monetary value of the opportunity.
  - `close_date` string, date-time — The date the opportunity was closed (ISO 8601 date-time).
  - `closed` boolean — Whether the opportunity is closed.
  - `done` boolean — Whether the opportunity is marked as done.
  - `tags` string[] — List of tags associated with the opportunity.
  - `recurring_price_per_unit` number — The recurring price per unit of the opportunity.
  - `frequency` 'annually' | 'weekly' | 'monthly' | 'daily' — The recurrence frequency of the opportunity. Allowed values: annually, weekly, monthly, daily.
  - `units` number — The number of units for the opportunity.
  - `contract_start_date` string, date-time — The contract start date (ISO 8601 date-time).
  - `contract_end_date` string, date-time — The contract end date (ISO 8601 date-time).
  - `main_contact` number — The Salesflare ID of the main contact associated with the opportunity.
  - `custom` object — Custom field values associated with the opportunity.

## Response `default`

Successful

---

[API](https://skmtc.net/salesflare/apis/salesflare-api.md) · [All operations](https://skmtc.net/salesflare/apis/salesflare-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/salesflare/salesflare-api/versions/b00cf8033993/schema)
