$comando = '/user set password='.$generic_password.' manut;
You have an unterminated string here. That line has three apostrophes ( ’ ) when they must be balanced.
You code as quoted couldn’t run against any ROS version because it is invalid in the language you’re writing in (probably PHP). That has nothing to do with the API itself.
Before suspecting the API and asking for help you should always use the linter to look for errors (‘php -l’), and probably always use a syntax highlighting editor that would make errors such as this easy to spot (where do the colors start looking funny?).
I ask this because i can´t see an answer for this in this forum (search) and in the documentation i have “This is PHP class for working with RouterOS v3 API”. Well, i´m a beginner and i don´t understand why ROS 3.22 don´t create a task in scheduller…
$comando = '/user set password='.$new_password.' manut';
don´t function. But this:
$comando = '/user set manut password='.$new_password;
work fine!
I test these in winbox terminal and in API PHP. Transfer position user´s name help me here. I don´t know if is the best way but work and i didn´t need upgrade de ROS of some boards.