Доставка · Чувствительное действие
Курьер · Профили · Изменение
courier_profile_update
Попробуйте три запроса
Подготовить
- Вы указываетеФилиал
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Курьер / Профили / Изменение». Для изменения нужны филиал, вариант операции. Покажи объект и ожидаемый эффект до выполнения.
- locationId
- Филиал
- action
- Вариант операции
- proof
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Курьер / Профили / Изменение» с параметром action = car-save. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- action
- car-save
- locationId
- DEMO-101
- carId
- DEMO-101
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Курьер / Профили / Изменение» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Update/remove your native vehicle, or start/pause/resume/finish your own courier shift using its exact profile revision. Current Courier role is required. A shift start requires the existing on-site QR proof or three genuine uploaded shift photographs; never fabricate presence or photos. For face uploads obtain the exact storage paths with courier_shift_prepare. Recover with courier_get_operation after uncertainty.
Параметры запроса
- locationId
- Идентификатор точки из текущего подключения. обязательно по схеме · string
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · string
- action
- Вариант действия, разрешённый схемой. обязательно по схеме · string · варианты car-save, car-remove, start, pause, resume, finish
- proof
- Native proof value; use the value and type returned by the corresponding service. необязательно · object
- carId
- Native carId value; use the value and type returned by the corresponding service. необязательно · string
- car
- Native car value; use the value and type returned by the corresponding service. необязательно · object
Что вернёт команда
- 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."
},
"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."
},
"expectedRevision": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Native expectedRevision value; use the value and type returned by the corresponding service."
},
"action": {
"type": "string",
"enum": [
"car-save",
"car-remove",
"start",
"pause",
"resume",
"finish"
],
"description": "Native action value; use the value and type returned by the corresponding service."
},
"proof": {
"description": "Native proof value; use the value and type returned by the corresponding service.",
"type": "object",
"properties": {
"method": {
"type": "string",
"enum": [
"face",
"qr"
],
"description": "Native method value; use the value and type returned by the corresponding service."
},
"photos": {
"description": "Native photos value; use the value and type returned by the corresponding service.",
"minItems": 3,
"maxItems": 3,
"type": "array",
"items": {
"type": "string",
"maxLength": 2048
}
},
"code": {
"description": "Native code value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 250
}
},
"required": [
"method"
],
"additionalProperties": false
},
"carId": {
"description": "Native carId value; use the value and type returned by the corresponding service.",
"type": "string",
"pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_.:-]{1,120}$"
},
"car": {
"description": "Native car value; use the value and type returned by the corresponding service.",
"type": "object",
"properties": {
"ID": {
"type": "string",
"pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_.:-]{1,120}$",
"description": "Native ID value; use the value and type returned by the corresponding service."
},
"Mark": {
"type": "string",
"minLength": 1,
"maxLength": 60,
"description": "Native Mark value; use the value and type returned by the corresponding service."
},
"Model": {
"type": "string",
"maxLength": 80,
"description": "Native Model value; use the value and type returned by the corresponding service."
},
"Number": {
"type": "string",
"maxLength": 30,
"description": "Native Number value; use the value and type returned by the corresponding service."
},
"Color": {
"type": "string",
"pattern": "^#[a-fA-F0-9]{6}$",
"description": "Native Color value; use the value and type returned by the corresponding service."
},
"FuelConsumption": {
"type": "number",
"minimum": 0,
"maximum": 100,
"description": "Native FuelConsumption value; use the value and type returned by the corresponding service."
},
"Photo": {
"default": "",
"description": "Native Photo value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 2048
}
},
"required": [
"ID",
"Mark",
"Model",
"Number",
"Color",
"FuelConsumption",
"Photo"
],
"additionalProperties": false
}
},
"required": [
"locationId",
"requestId",
"expectedRevision",
"action"
],
"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"
}
}
]
}
}
}