---
title: "Create a new flag for a purchase order"
method: POST
path: "/v1/finance/purchaseOrders/{purchaseOrderId}/flags"
tags: ["PurchaseOrders"]
---

# Create a new flag for a purchase order

`POST /v1/finance/purchaseOrders/{purchaseOrderId}/flags`

Create a new flag for a purchase order (required scope finance:write)

## Path parameters

- `purchaseOrderId` 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.net/bigchange/apis/bigchange-dx.md) · [All operations](https://skmtc.net/bigchange/apis/bigchange-dx/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bigchange/bigchange-dx/revisions/916e669fc527/schema)
