Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Searches, approves, rejects and tracks Feishu approval tasks, instances and definitions, and initiates native approval instances.
Use this skill ↓1 of 22 test cases passed with the skill.
3 of 3 safety checks passed
Not used yet
拒绝一个审批任务(用户级写操作)。通常先通过 tasks query 拿到 task_id 和 instance_code,必要时再用 instances get 查看详情,然后再执行拒绝。
[!CAUTION] 这是 high-risk-write 写操作。建议先用
--dry-run预览;真正执行时,如果用户已明确要拒绝该审批且目标任务无误,再带--yes运行。不要在未获用户明确同意时静默追加--yes。
需要的 scopes: ["approval:task:write"]
# 先预览请求,不实际执行
lark-cli approval tasks reject \
--data '{"instance_code":"<INSTANCE_CODE>","task_id":"<TASK_ID>","comment":"拒绝"}' \
--as user \
--dry-run
# 拒绝审批任务,并附带审批意见
lark-cli approval tasks reject \
--data '{"instance_code":"<INSTANCE_CODE>","task_id":"<TASK_ID>","comment":"拒绝,信息不完整"}' \
--as user \
--yes
# 通过文件传入请求体,适合较长 comment
lark-cli approval tasks reject \
--data @./reject-body.json \
--as user \
--yes
| 参数 | 必填 | 说明 |
|---|---|---|
--data '{...}' | 是 | 请求体 JSON,使用 JSON 传入 |
instance_code | 是 | 审批实例 Code;通常先通过 tasks query 或 instances initiated / instances get 获取 |
task_id | 是 | 审批任务 ID;通常先通过 tasks query 获取 |
comment | 否 | 审批意见,例如 拒绝、拒绝,信息不完整 |
Next to this one in the catalogue, plus more from the same author.