---
title: "Update a specific price guard"
method: PUT
path: "/api-offers/price-guard/{priceGuardId}"
tags: ["Price Guard"]
---

# Update a specific price guard

`PUT /api-offers/price-guard/{priceGuardId}`

## Request

- Base URL: `https://live.copilot.fabric.inc`
- URL: `https://live.copilot.fabric.inc/api-offers/price-guard/{priceGuardId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/fabric/apis/offers-v2/docs/api-offers/price-guard/:priceGuardId/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates a specific price guard record by priceguardId.

## Path parameters

- `priceGuardId` number, required

## Headers

- `x-site-context` string, required

## Request body

- NewPriceGuardRequest
  - `itemId` integer, required: Item ID
  - `itemSku` string: Item SKU
  - `priceListId` integer, required: PriceList ID
  - `MSRP` number: Manufacturer suggested retail price
  - `MAP` number: Minimum advertised price
  - `ceiling` number: Maximum price the seller is allowed to charge for the product. Price created for the item ID or item SKU under the specified pricelist should not exceed the given ceiling price.
  - `floor` number: Lowest price at which the product can be sold. Price created for the item ID or item SKU under the specified pricelist should not be lower than the given floor price.

## Response `200`

OK

- PriceGuard
  - `_id` string: fabric database ObjectId of the record
  - `itemId` integer: Item ID
  - `itemSku` string: Item SKU
  - `priceListId` integer: ID of the pricelist under which the price kinds are created
  - `MSRP` number: Manufacturer suggested retail price
  - `MAP` number: Minimum advertised price
  - `ceiling` number: Maximum price the seller is allowed to charge for the product. Price created for the item ID or item SKU under the specified pricelist should not exceed the given ceiling price.
  - `floor` number: Lowest price at which the product can be sold. Price created for the item ID or item SKU under the specified pricelist should not be lower than the given floor price.
  - `deleted` boolean: true: price guard is deleted<br /> false: price guard is not deleted
  - `createdAt` string, date-time: Creation date of the record
  - `updatedAt` string, date-time: Last updated date of the record

## Other responses

- `400`: Bad request
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/fabric/apis/offers-v2.md) - [All operations](https://skmtc.dev/fabric/apis/offers-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/fabric/apis/offers-v2/revisions/da2bd742b9bc?raw)
