---
title: "Update Priority"
method: PUT
path: "/v1/priority/{PriorityID}"
---

# Update Priority

`PUT /v1/priority/{PriorityID}`

## Request

- Base URL: `https://api.kevel.co`
- URL: `https://api.kevel.co/v1/priority/{PriorityID}`
- Auth: API key in header `X-Adzerk-ApiKey`

This API call updates an existing priority using the Priority ID. The user is unable to update the PriorityID or the SelectionAlgorithm.

## Path parameters

- `priorityId` integer, required

## Request body

- object
  - `id` integer, required: The Priority's ID
  - `channelId` integer, required: The Channel's ID
  - `name` string, required: Friendly name of Priority
  - `weight` integer, required: The priority order within the channel. 1-100, 1 is highest priority
  - `isDeleted` boolean: If want to delete, set to `true`
  - `secondPriceGroupBy` string: Sets whether ads in a second-priced auction should *not* second price against the same: `advertiser`, `campaign`, `flight`, or `ad`. Default is `null`, which is equivalent to `advertiser`. Can only be set when `IsSecondPricing` is true

## Response `200`

200

- object
  - `id` integer
  - `name` string
  - `channelId` integer
  - `weight` integer
  - `isDeleted` boolean
  - `selectionAlgorithm` integer

---

[API](https://skmtc.dev/kevel/apis/management-api-2.md) - [All operations](https://skmtc.dev/kevel/apis/management-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/kevel/apis/management-api-2/revisions/fe6c8716ca08?raw)
