---
title: "POST /bulk-action/{owner}/"
method: POST
path: "/bulk-action/{owner}/"
tags: ["bulk-action"]
---

# POST /bulk-action/{owner}/

`POST /bulk-action/{owner}/`

Perform bulk operations on multiple packages within a repository or across all accessible repositories. If 'repository' is provided, actions are limited to that repository. If 'repository' is omitted, actions are performed across all repositories the user has access to within the workspace. Returns a list of successfully actioned packages and any packages that failed with error details.

## Request body

- PackageBulkAction
  - `action` 'Delete' | 'Resync' | 'Quarantine' | 'Unquarantine' | 'Move' | 'Copy' | 'Rescan', required — The action to perform on the packages.
  - `identifiers` string[], required — A list of package identifiers to apply the action to.
  - `repository` string — The repository name to filter packages to. If not provided, the action will be performed across all accessible repositories in the workspace.
  - `target_repository` string — The slug of the target repository

## Response `200`

OK

- PackageBulkActionResponse
  - `action` string — The action that was performed.
  - `packages_actioned` string[] — List of package identifiers that were successfully actioned.
  - `packages_failed_to_action` object — Dictionary of package identifiers that failed with their error details.

## Other responses

- `400` — Request could not be processed (see detail).
- `422` — Missing or invalid parameters (see detail).

---

[API](https://skmtc.dev/cloudsmith/apis/cloudsmith-api-v1.md) · [All operations](https://skmtc.dev/cloudsmith/apis/cloudsmith-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cloudsmith/cloudsmith-api-v1/revisions/4d7879df9b2f/schema)
