Метод updateAction
Сигнатура метода
public function updateAction(UpdateRequest $request, EntityType $entityType): UpdateResponse
Возвращает:
UpdateResponse
Описание
The fields the client sent, written onto one stored address; the rest of it stays as it is stored. Which fields may be written at all is the contract of the route rather than a check of this action: the type of an address and its owner belong to the group of `add` alone, so a write of either is refused before the action runs, naming the field ({@see UpdateRequest}). A request that sends no field is a change of nothing and not a shortcut past the rights: the command still locates the address and still asks whether this user may change its owner.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$request
|
UpdateRequest
|
—
|
—
|
$entityType
|
EntityType
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Infrastructure/Rest/CustomController/Address/Address.php