Update Priority

Note

All other parameters, beyond SelectionAlgorithm under Create Priority, can be updated. Make sure to include weight or name, as those will be replaced with null otherwise.

Warning

SelectionAlgorithm cannot be updated after the priority is created.

Clearing attribute values

To unset or clear an attribute, set its value to NULL.

Parameters

Response Structure

200      200

object

- **id**  
  integer  
  Defaults to 0

- **name**  
  string

- **channelId**  
  integer  
  Defaults to 0

- **weight**  
  integer  
  Defaults to 0

- **isDeleted**  
  boolean  
  Defaults to true

- **selectionAlgorithm**  
  integer  
  Defaults to 0

Example

curl -X PUT -H "X-Adzerk-ApiKey:$ADZERK_API_KEY" -H "Content-Type:application/json" "https://api.kevel.co/v1/priority/98765" --data-binary '{"Id":98765,"Name":"High Priority","ChannelId":12345,"Weight":11,"IsDeleted":"false"}'

Response Example

{
  "id": 98765,
  "name": "High Priority",
  "channelId": 12345,
  "weight": 10,
  "isDeleted": false,
  "selectionAlgorithm": 0
}

Updated 10 months ago