I want to automate target creation. I create them via API, everything is fine, but I cannot assign a role to the created target.
I see the allow_roles field in the create_target method in the API documentation. But this array is empty. It is very inconvenient to go to the UI and assign roles manually.