---
title: "添加长期授权"
method: POST
path: "/automations/{id}/grants"
tags: ["自动化"]
---

# 添加长期授权

`POST /automations/{id}/grants`

## Request

- Base URL: `/api/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/automations/{id}/grants`
- Auth: API key in header `Authorization`

让以后的运行无需确认即可执行某次运行请求过审批的调用；Agent 配置或所有者角色变化后失效

## Path parameters

- `id` string, required

## Request body

- object

## Response `200`

授权

- object

## Changes

- **2026-10-19** `80c72611fac6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/automations/:id/grants/post.md)

---

[API](https://skmtc.dev/tencentblueking/apis/weknora-api.md) - [All operations](https://skmtc.dev/tencentblueking/apis/weknora-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tencentblueking/apis/weknora-api/revisions/b64b227d0d54?raw)
