Thanks a lot @David_Jirku it worked!
just for reference in case anyone looks for the same solution:
this is the endpoint url: /networks/{networkId}/snmp/traps
and the payload should be like this:
"mode": "disabled",
"access": "none",
"communityString": "",
"users": []