---
title: "Update campaign action pricing"
type: reference
method: POST
path: /rest-api/campaign/{campaignId}/campaignPricing/actionPricing.do
tag: "Campaigns"
---

# Update campaign action pricing

`POST https://YOUR-NETWORK-DOMAIN/rest-api/campaign/{campaignId}/campaignPricing/actionPricing.do`

Sets or updates the CPA price for a specific action within the campaign's pricing. The action can be identified by either its name (actionName) or its unique key (actionKey). If campaign pricing does not yet exist, it is created with CPA pricing type and FIXED_PRICE payment model, which needs the CPA_PRICING_TYPE permission. If pricing already exists, it must be of CPA type; otherwise a 400 error is returned. price is required and must be between 0 and 1000000; a missing or out-of-range price is answered with a 400 naming it and nothing is written. Only an action the caller can see in the console's action list can be priced; any other is answered as an unknown one.

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `campaignId` | integer | yes | `2001` | Unique identifier of the campaign |

## Form params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `price` | number | yes | `2.50` | CPA price for the action, 0 to 1000000 |
| `actionName` | string | no | `registration` | Name of the action to set pricing for (alternative to actionKey) |
| `actionKey` | string | no | `reg_complete` | Unique key of the action to set pricing for (alternative to actionName) |

## Responses

- `200` — Action pricing updated
- `400` — Wrong request format or invalid parameters
- `401` — Authentication error
- `403` — Not enough permissions
- `404` — No action the caller can see matches actionKey/actionName

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/campaign/2001/campaignPricing/actionPricing.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'price=2.50' \
  --data-urlencode 'actionName=registration' \
  --data-urlencode 'actionKey=reg_complete'
```

Source: https://epom.com/ad-server/docs/api/campaigns/post-campaign-campaignpricing-actionpricing