---
title: "Set Scope"
method: POST
path: "/api/admin/users/scope"
tags: ["accounts"]
---

# Set Scope

`POST /api/admin/users/scope`

## Request

- Base URL: `https://www.ucai.net` (the document declares no server; this is the origin it was published from)
- URL: `https://www.ucai.net/api/admin/users/scope`
- Auth: none declared

## Request body

- AbsCoreApiRoutersAccountsScopeRequest
  - `username` string, required
  - `entity_ids` integer[], nullable: 能看的对象 id；空 = 只看自己项目名下的
  - `all` boolean: 明确给「全部对象」

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ucai/apis/abs-core.md) · [All operations](https://skmtc.dev/ucai/apis/abs-core/llms.txt) · [OpenAPI document](https://skmtc.dev/ucai/apis/abs-core/revisions/1502a61b5620?raw)
