---
title: "Create a new flag for a sales opportunity"
method: POST
path: "/v1/finance/salesOpportunities/{opportunityId}/flags"
tags: ["SalesOpportunities"]
---

# Create a new flag for a sales opportunity

`POST /v1/finance/salesOpportunities/{opportunityId}/flags`

## Request

- Base URL: `https://api.bigchange.com`
- URL: `https://api.bigchange.com/v1/finance/salesOpportunities/{opportunityId}/flags`
- Auth: HTTP bearer

Create a new flag for a Sales Opportunity (required scope finance:write)

## Path parameters

- `opportunityId` integer, required

## Headers

- `Customer-Id` integer, required

## Request body

- CreateEntityFlagModel: Request model for creating a flag on any supported entity type
  - `flagId` integer, required: The unique identifier of the flag to apply
  - `owner` string: User email or ID who owns the flag
  - `comments` string, nullable: Additional context for the flag

## Response `201`

Created

- PostResponseInt64: Represents a response for a POST request, containing the ID of the newly created record
  - `id` integer: Identifier of the newly created record

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Content
- `500`: Internal Server Error

---

[API](https://skmtc.dev/bigchange/apis/bigchange-dx.md) - [All operations](https://skmtc.dev/bigchange/apis/bigchange-dx/llms.txt) - [OpenAPI document](https://skmtc.dev/bigchange/apis/bigchange-dx/revisions/b262bfdb1dd0?raw)
