---
title: "POST /2021-01-01/packages/updateScope"
method: POST
path: "/2021-01-01/packages/updateScope"
---

# POST /2021-01-01/packages/updateScope

`POST /2021-01-01/packages/updateScope`

Updates the scope of a package. Scope of the package defines users who can view and associate a package.

## Request body

- object
  - `PackageID` string, required — ID of the package whose scope is being updated.
  - `Operation` 'ADD' | 'OVERRIDE' | 'REMOVE', required — The operation to perform on the package scope (e.g., add/remove/override users).
  - `PackageUserList` PackageUser[], required — List of users to be added or removed from the package scope.

## Response `200`

Success

- UpdatePackageScopeResponse
  - `PackageID` string — ID of the package whose scope was updated.
  - `Operation` 'ADD' | 'OVERRIDE' | 'REMOVE' — The operation that was performed on the package scope.
  - `PackageUserList` PackageUser[] — List of users who have access to the package after the scope update.

## Other responses

- `480` — BaseException
- `481` — InternalException
- `482` — ResourceNotFoundException
- `483` — ValidationException
- `484` — DisabledOperationException

---

[API](https://skmtc.net/aws/apis/opensearch.md) · [All operations](https://skmtc.net/aws/apis/opensearch/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/opensearch/versions/e747e56ee8c6/schema)
