Assets API Returns 404 not found Error When Try To Create A Liquid File

I am using Laravel and kyon147/laravel-shopify package to create an app. When I wanted to create a liquid file through asset API, I got the below error. Let me know what is wrong.

"exception"
      Client error: `PUT my-shop-domain/admin/api/2023-10/themes/161834598681/assets.json` resulted in a `404 Not Found`

Controller Method:

    public function index()
    {
        /** @var IShopModel $shop*/
        $shop = Auth::user();
        $themes = $shop->api()->rest('GET', '/admin/api/2023-10/themes.json');

        $activeThemeId = '';

        foreach ($themes['body']['themes'] as $theme) {
            if ($theme['role'] === 'main') {
                $activeThemeId = $theme['id'];
            }
        }

        if ($activeThemeId) {

            $content = "test content";

            $liquidFile = [
                'asset' => [
                    'key' => 'templates/out-of-stock.liquid',
                    'value' => "test content"
                ]
            ];

            $response = $shop->api()->rest('PUT', '/admin/api/2023-10/themes/' . $activeThemeId . '/assets.json', $liquidFile);

            dd($response);
        }
    }

Same issue here, it worked well when I rollbacked to API version ‘2023-01’

Yes, it worked with API version ‘2023-01’, but now this version is deprecated, and Shopify has sent me a warning message to remove the ‘2023-01’ version.

same issue here. Annoying cause the docs specify 2023-10 and the explicit example apparently hasn’t worked for months apparently.

Found this page discussing the asset api deprecation
https://shopify.dev/docs/apps/online-store/other-integration-methods/asset