---
title: "Update Team Opportunity"
method: PUT
path: "/teams/{id}/opportunity"
tags: ["Team", "Opportunity"]
---

# Update Team Opportunity

`PUT /teams/{id}/opportunity`

Creates or updates an opportunity record associated with a team. If an opportunity with the given ID already exists for the team, it is updated; otherwise a new one is created.

## Path parameters

- `id` string, required

## Request body

- UpdateTeamOpportunityRequest
  - `opportunity_id` string, required — External CRM opportunity ID to upsert
  - `title` string, required — Display title for the opportunity

## Response `200`

Opportunity created or updated successfully

- UpdateTeamOpportunityResponse
  - `id` string — UUID of the created or updated opportunity record

## Other responses

- `400` — Invalid request parameters
- `401` — Authentication failed - valid API key required
- `default` — Unexpected error occurred

---

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