# Bulk Update Plugin Tenants

`PATCH /api/plugin-tenants/bulk`

Performs bulk operations on multiple plugin tenants (enable, disable, approve, etc.)

Authentication: no security requirement declared for this operation.

Request body: application/json (required)

Type: object

Schema: [PluginTenantBulkOperationDTO](https://sourcey-gauzy.pages.dev/api-reference/models/plugintenantbulkoperationdto/index.md)

- `pluginTenantIds` (required)
  Type: array
  
  Array of plugin tenant IDs to operate on
  
  Items:
    Type: string

- `operation` (required)
  Type: string
  
  Operation to perform
  
  enum: ["enable","disable","approve","revoke","delete"]

- `data` (optional)
  Type: object
  
  Additional data for the operation

- `notes` (optional)
  Type: string
  
  Notes or comments for the operation

Responses:

- 200: Bulk operation completed

Content type: application/json

Type: object

## Examples

### cURL

```bash
curl -X PATCH 'http://localhost:3000/api/plugin-tenants/bulk' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "pluginTenantIds": [
    "string"
  ],
  "operation": "enable",
  "data": {},
  "notes": "string"
}'
```

### JavaScript

```javascript
const body = `{
  "pluginTenantIds": [
    "string"
  ],
  "operation": "enable",
  "data": {},
  "notes": "string"
}`;

const response = await fetch('http://localhost:3000/api/plugin-tenants/bulk', {
  method: 'PATCH',
  headers: {
    'Content-Type': 'application/json',
  },
  body,
});

const data = await response.text();
```

### Python

```python
import requests

body = '''{
  "pluginTenantIds": [
    "string"
  ],
  "operation": "enable",
  "data": {},
  "notes": "string"
}'''

response = requests.patch(
    'http://localhost:3000/api/plugin-tenants/bulk',
    data=body.encode('utf-8'),
    headers={
        'Content-Type': 'application/json',
    },
)
print(response.text)
```
