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
撤回一个已发起的审批实例(用户级写操作)。通常先通过 instances initiated、tasks query 或 instances get 确认目标审批实例,拿到 instance_code 后再执行撤回。
[!CAUTION] 这是 high-risk-write 写操作。建议先用
--dry-run预览;真正执行时,如果用户已明确要撤回该审批实例且目标实例无误,再带--yes运行。不要在未获用户明确同意时静默追加--yes。
需要的 scopes: ["approval:instance:write"]
# 先预览请求,不实际执行
lark-cli approval instances cancel \
--data '{"instance_code":"<INSTANCE_CODE>"}' \
--as user \
--dry-run
# 撤回一个审批实例
lark-cli approval instances cancel \
--data '{"instance_code":"<INSTANCE_CODE>"}' \
--as user \
--yes
# 通过文件传入请求体
lark-cli approval instances cancel \
--data @./cancel-body.json \
--as user \
--yes
| 参数 | 必填 | 说明 |
|---|---|---|
--data '{...}' | 是 | 请求体 JSON,使用 JSON 传入 |
instance_code | 是 | 审批实例 Code;通常先通过 instances initiated、tasks query 或 instances get 获取 |
--as user | 否 | 建议显式指定用户身份;审批实例撤回通常必须以用户身份执行 |
--yes | 否 | 确认执行高风险写操作;未带时可能返回 confirmation_required / exit 10 |
Next to this one in the catalogue, plus more from the same author.