---
title: "将 UID 分组加入授权或隐藏列表"
method: PUT
path: "/packages/{type}/{uid}"
tags: ["软件包"]
---

# 将 UID 分组加入授权或隐藏列表

`PUT /packages/{type}/{uid}`

## Path parameters

- `type` 'grant' | 'hide', required
- `uid` integer, required

## Response `204`

已保存

## Other responses

- `403` — 鉴权失败，或 WebSocket 票证无效
- `404` — 不存在该 UID
- `500` — 后端执行操作失败

---

[API](https://skmtc.dev/oom-wg/apis/shirosu-http.md) · [All operations](https://skmtc.dev/oom-wg/apis/shirosu-http/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/oom-wg/shirosu-http/revisions/3d63f1947f5a/schema)
