curl --location -g --request POST 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/update_intercept_rule?access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{"rule_id":"xxxx","rule_name":"rulename","word_list":["敏感词1","敏感词2"],"extra_rule":{"semantics_list":[1,2,3],},"intercept_type":1,"add_applicable_range":{"user_list":["zhangshan"],"department_list":[2,3]},"remove_applicable_range":{"user_list":["zhangshan"],"department_list":[2,3]}}'
{"errcode":0,"errmsg":"ok"}
【企业微信】API开发者 微信交流群
用微信扫右侧二维码,加入【企业微信】API开发者 交流群,互助沟通