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

# Update Priority

`PUT /v1/priority/{PriorityID}`

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.net/kevel/apis/engine-apis.md) · [All operations](https://skmtc.net/kevel/apis/engine-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kevel/engine-apis/versions/0ca55f45aa7d/schema)
