API call ansible roles

Hello, can you please help me getting the right API call to add an Ansible role to an host.

I’m doing this post;
https://SERVERNAME/api/v2/hosts/2701/assign_ansible_roles

Where ‘2701’ is the ID of the host.

Below the data;
[
{
“ansible_role_ids”: [ “22” ]
}
]

Where “22” is the ID of the ansible role.

Problem is is that the ‘post’ works without error but when I look into the webinterface and look at the assigned roles it’s empty.
What is the working API call for this? I cannot get it done somehow.

aaah nice, I got it! Guess taking a break for an hour worked. Winning combo;

{
“ansible_role_ids”: [ “21” ]
}