When the id of a file is a string as a uuid, it gives an error because an integer value is expected: Change in aAPI.php: public function file(int $id): self to public function file(string $id): self