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

# Update an opportunity

`PATCH /opportunities/{id}`

Updates the opportunity with the specified ID. You can update stage, close date, and other opportunity properties.

## Path parameters

- `id` string, required

## Request body

- UpdateOpportunityDto
  - `companyId` string — The ID of the company this opportunity belongs to
  - `name` string — The name of the opportunity
  - `description` string, nullable — Detailed description of the opportunity
  - `stageId` string — The pipeline stage ID
  - `ownerId` string, nullable — The user ID of the opportunity owner. Set to null to remove the owner.
  - `closeDate` UpdateOpportunityCloseDateDto
    - `target` string, date-time, required
  - `clientTeam` IdDto[] — Client contacts to associate with this opportunity
    - `id` string, required

## Response `204`

Opportunity updated successfully

## Other responses

- `400` — Bad request - missing or invalid required fields
- `401` — Unauthorized - invalid or missing authentication
- `404` — Opportunity not found
- `500` — Error response

---

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