I did disable the option in the API-write module, and now it's working in a shell terminal when I send the above CURL command.
But when I try to use CURL in HTTPS within my PHP program,
I get this message (401) : A valid login session was not found. Please log in and try again.
I don't understand why I get this message, because :
How to ban user in a category or thread by category moderator?
I found only global moderator can ban user globally.
I don't really understand what you're asking. Yes, category moderators can't ban users globally AFAIK. This is expected behavior. Do you want them to be able to ban a user from a specific category?
yes, ban a user from a specific category or thread.