Gets company's sensor-ranges

Gets company's sensor-ranges.

Request

GET

https://courier.yandex.ru/api/v1/companies/{company_id}/sensor-ranges

Path parameters

Name

Description

company_id*

Type: integer

The ID of the company.

Query parameters

Name

Description

max_results

Type: integer

Maximum number of entities to be returned.

Default: 100

Min value: 1

Max value: 100

page_token

Type: string

Pagination token, can either be omitted or equal to next_page_token from the body of previos response.

Responses

200 OK

Success.

Body

application/json
{
    "next_page_token": "string",
    "results": [
        {
            "id": "string",
            "number": "string",
            "min": 0,
            "max": 0,
            "threshold_time": 0,
            "comment": "string"
        }
    ]
}

Name

Description

results*

Type: SensorRange[]

next_page_token

Type: string

If present, then there is a next page, and, to get the next page, this url can be called with page_token, which is equal to this field.

SensorRange

Name

Description

max*

Type: number<float>

Maximum allowed value.

Min value: -32768

Max value: 32767

min*

Type: number<float>

Minimum allowed value.

Min value: -32768

Max value: 32767

number*

Type: string

Sensor range number. Used for syncing with the delivery company's system.

Min length: 1

Max length: 80

Pattern: ^[-_a-zA-Z0-9]+$

comment

Type: string

Description of the sensor-range.

Max length: 1023

id

Type: string

ID of the sensor-range.

threshold_time

Type: integer

Threshold time during which the sensor can exceed the threshold value (in seconds, default is taken from the company settings).

Min value: 0

Max value: 604800

400 Bad Request

Deprecated

Invalid parameters were passed.

401 Unauthorized

Deprecated

Authorization failed. Send the correct OAuth token in the authorization header.

403 Forbidden

Deprecated

You do not have access to this object.

422 Unprocessable Entity

Deprecated

Incorrect input.

504 Gateway Timeout

Deprecated

Server error during request processing.