# Range

## Function

This API is used to obtain the binocular stitching ipc stitching distance parameter range.

> Note:

> The Range provides reference information for client UI input limits and API request limits. When sending Get and Set requests, the parameters must be strictly limited according to the Range, otherwise the request may be rejected by the device.

## Request Message

#### Parameter Description

#### Table 1

Parameter | Range | Type | Description
--- | --- | --- | ---
channel | “CH1”…”CH1x” “IP_CH1”…” IP_CH1x” “WIFI_CH1”…” WIFI_CH1x” The number of channels depends on the capabilities of the device. | string | The presence of this field indicates that the request specifies the parameter range of a certain channel. If it is not present, all channels are returned.

Sample:

    POST /API/SystemConfig/ImageStitching/Range HTTP/1.1

    {
      "version": "1.0",
      "data": {
        "channel": "CH5"
      }
    }

## Response Message

#### Parameter Description

#### Table 2

Parameter | Range | Type | Description
--- | --- | --- | ---
channel_info |  | Json object | Channel_info object, see Table 3 for more information.

#### Table 3

Parameter | Range | Type | Description
--- | --- | --- | ---
channel | “CH1”…”CH1x” “IP_CH1”…” IP_CH1x” “WIFI_CH1”…” WIFI_CH1x” The number of channels depends on the capabilities of the device. | Json object | Channel object, see Table 4 for more information.

#### Table 4

Parameter | Range | Type | Description
--- | --- | --- | ---
ds_distance | 2~200 | double | Binocular stitching distance.

> Tips:

> The response message of the Range request may not contain all the fields in the above table, and the fields not included indicate that the device does not support this parameter configuration.

Sample:

    HTTP/1.1 200 OK
    Content-Type: application/json

    {
        "result": "success",
        "data": {
            "channel_info": {
                "type": "object",
                "items": {
                    "CH5": {
                        "type": "object",
                        "items": {
                            "ds_distance": {
                                "type": "double",
                                "min": 2.0,
                                "max": 200.0
                            }
                        }
                    }
                }
            }
        }
    }

## Error Code

See Response Messages Body and Common error_code for more information.