---
updatedAt: 2026-10-25T15:46:36.000Z
agentTools:
  projectIndex: https://docs.superwise.ai/llms.txt
---

# Policy Bulk Action

Perform a bulk action on a list of policies.

Applies one action to a list of policies: `delete` or `archive`. The response summarizes how many were requested, succeeded, and failed, and gives a result for each ID.

## When to use it

Use it to archive or clean up many policies in one call instead of sending one request per policy.

## Required parameters

* `action` (body): the action to perform on the policies.
* `ids` (body): list of policy IDs to perform the action on.

## Response

A successful call returns `200 OK` with a `BulkActionResponse`: a `summary` with the `requested`, `succeeded`, and `failed` counts, and a `results` array with each ID, its `status` (`success` or `failed`), and any error code and message.

**Related:** [Archive a policy](https://docs.superwise.ai/reference/archive_policy), [Delete a policy](https://docs.superwise.ai/reference/delete_policy), [List policies](https://docs.superwise.ai/reference/get_policies)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/v1/policies/bulk-action": {
      "post": {
        "tags": [
          "Policies"
        ],
        "summary": "Policy Bulk Action",
        "description": "Perform a bulk action on a list of policies.",
        "operationId": "policy_bulk_action",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyBulkActionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkActionResponse"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  },
  "info": {
    "title": "Superwise Main Entities",
    "description": "API reference",
    "version": "0.1.0"
  },
  "components": {
    "schemas": {
      "BulkActionItemResult": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid4"
              },
              {
                "type": "string"
              }
            ],
            "title": "Id"
          },
          "status": {
            "$ref": "#/components/schemas/BulkItemStatus"
          },
          "error_code": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Code"
          },
          "error_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Message"
          }
        },
        "type": "object",
        "required": [
          "id",
          "status"
        ],
        "title": "BulkActionItemResult"
      },
      "BulkActionResponse": {
        "properties": {
          "summary": {
            "$ref": "#/components/schemas/BulkActionSummary"
          },
          "results": {
            "items": {
              "$ref": "#/components/schemas/BulkActionItemResult"
            },
            "type": "array",
            "title": "Results"
          }
        },
        "type": "object",
        "required": [
          "summary",
          "results"
        ],
        "title": "BulkActionResponse"
      },
      "BulkActionSummary": {
        "properties": {
          "requested": {
            "type": "integer",
            "title": "Requested"
          },
          "succeeded": {
            "type": "integer",
            "title": "Succeeded"
          },
          "failed": {
            "type": "integer",
            "title": "Failed"
          }
        },
        "type": "object",
        "required": [
          "requested",
          "succeeded",
          "failed"
        ],
        "title": "BulkActionSummary"
      },
      "BulkItemStatus": {
        "type": "string",
        "enum": [
          "success",
          "failed"
        ],
        "title": "BulkItemStatus"
      },
      "PolicyBulkActionRequest": {
        "properties": {
          "action": {
            "$ref": "#/components/schemas/PolicyBulkActionType",
            "description": "The action to perform on the policies"
          },
          "ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 50,
            "minItems": 1,
            "title": "Ids",
            "description": "List of policy IDs to perform the action on"
          }
        },
        "type": "object",
        "required": [
          "action",
          "ids"
        ],
        "title": "PolicyBulkActionRequest"
      },
      "PolicyBulkActionType": {
        "type": "string",
        "enum": [
          "delete",
          "archive"
        ],
        "title": "PolicyBulkActionType"
      }
    },
    "securitySchemes": {
      "implicit": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://authentication.superwise.ai/identity/resources/auth/v1/api-token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "implicit": []
    }
  ],
  "servers": [
    {
      "url": "api.superwise.ai",
      "description": "Superwise Api Gateway"
    }
  ]
}
```