API permissions to set a host comment

Hi guys,

I struggle to set the right dedicated API permission to add a host comment via API.
I tried it with this settings but I get always object not found.
If I set the permission to “*” it works like a charm but I do not want to give the user all permissions.

object ApiUser “testuser” {
password = “testpass”

permissions = [
    {
        permission = "objects/modify/*"
    },
    {
        permission = "actions/add-comment/*"
    },
    {
        permission = "objects/query/*"
    }
]

}

Hope, somene can help with it.

Got the right permission by myself: permissions = [ “objects/modify/*”, “actions/add-comment” ]

Regards
Peer