# Priority

```
PATCH /setsourcepriority
```

## Parameters

| Parameter  | Data Type         | Value                                                                                                        |
| ---------- | ----------------- | ------------------------------------------------------------------------------------------------------------ |
| `serial`   | string, required  | the serial number of a vssl device                                                                           |
| `number`   | integer, required | the zone number                                                                                              |
| `priority` | integer, required | 0: Stream -> Party zone -> Bus1In -> Bus2In -> Analog, 1: Bus1In -> Bus2In -> Analog -> Stream -> Party zone |

## Response

Status of the call

## Example Request

Sample HTTP request

{% tabs %}
{% tab title="curl" %}
```bash
$ curl --request PATCH http://192.168.0.15:8000/api/setsourcepriority?serial=00BD27EF657D&number=1&priority=0
```
{% endtab %}

{% tab title="IP Cmd" %}
```bash
IP: 192.168.0.15
Host: 8000
Data: "PATCH /api/setsourcepriority?serial=00BD27EF657D&number=1&priority=0 HTTP/1.1\r\n\r\n"
```
{% endtab %}

{% tab title="httpie" %}
```bash
$ http PATCH 192.168.0.15:8000/api/setsourcepriority serial=00BD27EF657D number=1 priority=2
```
{% endtab %}

{% tab title="node" %}
```javascript
const axios = require('axios');

axios.patch('http://192.168.0.15:8000/api/setsourcepriority
', {
    params: {
      serial: '00BD27EF657D',
      number: 1,
      priority: 2
    }
  }).then((response)=>{
    console.log(response);
  }).catch((response)=>{
    console.log('Error making request');
  })
```
{% endtab %}
{% endtabs %}

## Example Response

```javascript
{
  "status": "request sent"
}
```
