# Set Analog Input Source

```
PATCH /setanaloginputsource
```

## Parameters

| Parameter | Data Type         | Value                               |
| --------- | ----------------- | ----------------------------------- |
| `serial`  | string, required  | the serial number of a vssl device  |
| `number`  | integer, required | the zone number                     |
| `input`   | integer, required | the input to connect to the channel |

## Input Legend

legend: input: inputs specific to model (e.g. A3 does not have zones 4-6 or bus input 2, only A3 has optical input, ...) 0 - none 1 - bus input 1 2 - bus input 2 3 - zone 1 local input 4 - zone 2 local input 5 - zone 3 local input 6 - zone 4 local input 7 - zone 5 local input 8 - zone 6 local input 16 - optical input

## 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/setanaloginputsource
?'serial=00BD27EF657D&number=1&input=1'
```

{% endtab %}

{% tab title="IP Cmd" %}

```bash
IP: 192.168.0.15
Host: 8000
Data: "PATCH /api/setanaloginputsource
?serial=00BD27EF657D&number=1&input=1 HTTP/1.1\r\n\r\n"
```

{% endtab %}

{% tab title="httpie" %}

```bash
$ http PATCH 192.168.0.15:8000/api/setanaloginputsource
 serial=00BD27EF657D number=1 input=1
```

{% endtab %}

{% tab title="node" %}

```javascript
const axios = require('axios');

axios.patch('http://192.168.0.15:8000/api/setanaloginputsource

', {
    params: {
      serial: '00BD27EF657D',
      number: 1,
      input: 1
    }
  }).then((response)=>{
    console.log(response);
  }).catch((response)=>{
    console.log('Error making request');
  })
```

{% endtab %}
{% endtabs %}

## Example Response

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