Bulk Remove Items
Remove multiple items from an annotation queue at once.
Bulk Remove Items
Remove multiple items from a queue in a single request.
POST
https://api.futureagi.com/model-hub/annotation-queues/{queue_id}/items/bulk-remove/
Bearer
Click "Try It" to send a request
Authentication
| Header | Description |
|---|---|
X-Api-Key | Your API key |
X-Secret-Key | Your secret key |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
queue_id | UUID | Yes | The annotation queue ID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
item_ids | array | Yes | List of queue item UUIDs to remove |
Response
| Field | Type | Description |
|---|---|---|
removed | integer | Number of items successfully removed |
Code Examples
import requests
queue_id = "your-queue-uuid"
resp = requests.post(
f"https://api.futureagi.com/model-hub/annotation-queues/{queue_id}/items/bulk-remove/",
headers={"X-Api-Key": "YOUR_KEY", "X-Secret-Key": "YOUR_SECRET"},
json={"item_ids": ["item-uuid-1", "item-uuid-2"]}
)
print(resp.json())import axios from 'axios';
const queueId = 'your-queue-uuid';
const resp = await axios.post(
`https://api.futureagi.com/model-hub/annotation-queues/${queueId}/items/bulk-remove/`,
{ itemIds: ['item-uuid-1', 'item-uuid-2'] },
{ headers: { 'X-Api-Key': 'YOUR_KEY', 'X-Secret-Key': 'YOUR_SECRET' } }
);
console.log(resp.data);curl -X POST "https://api.futureagi.com/model-hub/annotation-queues/your-queue-uuid/items/bulk-remove/" \
-H "X-Api-Key: YOUR_KEY" \
-H "X-Secret-Key: YOUR_SECRET" \
-H "Content-Type: application/json" \
-d '{"item_ids": ["item-uuid-1", "item-uuid-2"]}' Was this page helpful?