getParsedBody(); $ids = $data->ids ?? null; $id = $data->id ?? null; if ($ids === null && is_string($id)) { $ids = [$id]; } if (!is_array($ids)) { throw new BadRequest("No `ids`."); } $this->inboxService->moveToTrashIdList($ids); return ResponseComposer::json(true); } }