---
title: "Update a PMP deal"
type: reference
method: POST
path: /rest-api/campaign/pmp-deal/{id}.do
tag: "PMP Deals"
---

# Update a PMP deal

`POST https://YOUR-NETWORK-DOMAIN/rest-api/campaign/pmp-deal/{id}.do`

Updates an existing Private Marketplace deal record identified by its internal numeric ID. All fields (dealId, buyerId, auctionType, country, bidFloor) must be provided; this is a full replacement, not a partial update. The deal ID and buyer ID are string identifiers used in the OpenRTB bid request/response protocol. Requires standard REST API authentication.

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `id` | integer | yes | `101` | Internal numeric ID of the PMP deal record to update (obtained from the list PMP deals response) |

## Form params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `dealId` | string | yes | `deal-123` | External PMP deal identifier string used in OpenRTB bid requests between buyer and seller |
| `buyerId` | string | yes | `buyer-456` | Buyer seat identifier string that identifies the DSP or buyer in the OpenRTB protocol |
| `auctionType` | string | yes | `FIRST_PRICE` | Auction pricing model for this deal. FIRST_PRICE: winner pays their bid; SECOND_PRICE: winner pays second-highest bid plus increment; BID_FLOOR: fixed minimum price |
| `country` | string | yes | `US` | ISO 3166-1 alpha-2 country code (e.g. 'US', 'DE') to restrict the deal to a specific country, or '*' to make it a global deal with no country restriction |
| `bidFloor` | number | yes | `2.50` | Minimum bid price (floor) for this deal in the campaign's currency. Bids below this value are rejected. |

## Responses

- `200` — PMP deal updated successfully
- `400` — Bad request — invalid or missing parameters
- `401` — Authentication error
- `403` — Forbidden — insufficient permissions
- `404` — Not found — resource does not exist

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/campaign/pmp-deal/101.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'dealId=deal-123' \
  --data-urlencode 'buyerId=buyer-456' \
  --data-urlencode 'auctionType=FIRST_PRICE' \
  --data-urlencode 'country=US' \
  --data-urlencode 'bidFloor=2.50'
```

Source: https://epom.com/ad-server/docs/api/pmp-deals/post-campaign-pmp-deal