Доставка · Чувствительное действие
Курьер · Филиалы · Изменение
courier_location_update
Попробуйте три запроса
Подготовить
- Вы указываетеФилиал
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Курьер / Филиалы / Изменение». Для изменения нужны филиал, lat. Покажи объект и ожидаемый эффект до выполнения.
- locationId
- Филиал
- lat
- Параметр
- lng
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Курьер / Филиалы / Изменение» с параметром trackingState = active. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- trackingState
- active
- locationId
- DEMO-101
- locationConfirmed
- true
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Курьер / Филиалы / Изменение» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Submit a genuine current location sample for yourself, captured within 60 seconds, or stop tracking. Requires locationConfirmed=true for a sample supplied by the user/device, current Courier role and an open shift for active tracking. Do not invent coordinates. Uses the existing timestamp/ETag writer; read courier_location after uncertainty instead of inventing a newer timestamp.
Параметры запроса
- locationId
- Идентификатор точки из текущего подключения. обязательно по схеме · string
- lat
- Native lat value; use the value and type returned by the corresponding service. обязательно по схеме · number · минимум -90 · максимум 90
- lng
- Native lng value; use the value and type returned by the corresponding service. обязательно по схеме · number · минимум -180 · максимум 180
- accuracy
- Native accuracy value; use the value and type returned by the corresponding service. обязательно по схеме · number · минимум 0 · максимум 10000
- heading
- Native heading value; use the value and type returned by the corresponding service. обязательно по схеме · number / null
- capturedAt
- Native capturedAt value; use the value and type returned by the corresponding service. обязательно по схеме · number
- trackingState
- Native trackingState value; use the value and type returned by the corresponding service. обязательно по схеме · string · варианты active, stopped
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- locationConfirmed
- This is a genuine current location sample supplied by the user/device. обязательно по схеме · boolean
Что вернёт команда
- companyId
- Native companyId value; use the value and type returned by the corresponding service. обязательно по схеме · string
- result
- Native result value; use the value and type returned by the corresponding service. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"locationId": {
"type": "string",
"pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_.:-]{1,120}$",
"description": "Native locationId value; use the value and type returned by the corresponding service."
},
"lat": {
"type": "number",
"minimum": -90,
"maximum": 90,
"description": "Native lat value; use the value and type returned by the corresponding service."
},
"lng": {
"type": "number",
"minimum": -180,
"maximum": 180,
"description": "Native lng value; use the value and type returned by the corresponding service."
},
"accuracy": {
"type": "number",
"minimum": 0,
"maximum": 10000,
"description": "Native accuracy value; use the value and type returned by the corresponding service."
},
"heading": {
"anyOf": [
{
"type": "number",
"minimum": 0,
"maximum": 360
},
{
"type": "null"
}
],
"description": "Native heading value; use the value and type returned by the corresponding service."
},
"capturedAt": {
"type": "number",
"description": "Native capturedAt value; use the value and type returned by the corresponding service."
},
"trackingState": {
"type": "string",
"enum": [
"active",
"stopped"
],
"description": "Native trackingState value; use the value and type returned by the corresponding service."
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable request ID for these exact arguments. Keep it if the response is uncertain."
},
"locationConfirmed": {
"type": "boolean",
"const": true,
"description": "This is a genuine current location sample supplied by the user/device."
}
},
"required": [
"locationId",
"lat",
"lng",
"accuracy",
"heading",
"capturedAt",
"trackingState",
"requestId",
"locationConfirmed"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"companyId": {
"type": "string",
"description": "Native companyId value; use the value and type returned by the corresponding service."
},
"result": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Native result value; use the value and type returned by the corresponding service."
}
},
"required": [
"companyId",
"result"
],
"additionalProperties": false,
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
}
}
}