Adds company's sensor-ranges
Adds company's sensor-ranges.
Request
POST
https://courier.yandex.ru/api/v1/companies/{company_id}/sensor-ranges
Path parameters
Name |
Description |
company_id* |
Type: integer The ID of the company. |
Body
application/json
[
{
"id": "string",
"number": "string",
"min": 0,
"max": 0,
"threshold_time": 0,
"comment": "string"
}
]
SensorRange
Name |
Description |
max* |
Type: number<float> Maximum allowed value. Min value: Max value: |
min* |
Type: number<float> Minimum allowed value. Min value: Max value: |
number* |
Type: string Sensor range number. Used for syncing with the delivery company's system. Min length: Max length: Pattern: |
comment |
Type: string Description of the sensor-range. Max length: |
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: Max value: |
Responses
200 OK
Success.
Body
application/json
[
{
"id": "string",
"number": "string",
"min": 0,
"max": 0,
"threshold_time": 0,
"comment": "string"
}
]
400 Bad Request
Invalid parameters were passed.
401 Unauthorized
Authorization failed. Send the correct OAuth token in the authorization header.
403 Forbidden
You do not have access to this object.
422 Unprocessable Entity
Incorrect input.
504 Gateway Timeout
Server error during request processing.
No longer supported, please use an alternative and newer version.