Update Queue Status
Transition an annotation queue to a new status.
Update Queue Status
Transition a queue’s status. Only valid transitions are allowed.
POST
https://api.futureagi.com/model-hub/annotation-queues/{id}/update-status/
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 |
|---|---|---|---|
id | UUID | Yes | The annotation queue ID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
status | string | Yes | Target status: draft, active, paused, or completed |
Note
Only valid status transitions are permitted. For example: draft to active, active to paused, paused to active, active to completed. Invalid transitions return a 400 error.
Response
Returns the updated queue object with the new status.
Code Examples
import requests
queue_id = "your-queue-uuid"
resp = requests.post(
f"https://api.futureagi.com/model-hub/annotation-queues/{queue_id}/update-status/",
headers={"X-Api-Key": "YOUR_KEY", "X-Secret-Key": "YOUR_SECRET"},
json={"status": "active"}
)
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}/update-status/`,
{ status: 'active' },
{ 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/update-status/" \
-H "X-Api-Key: YOUR_KEY" \
-H "X-Secret-Key: YOUR_SECRET" \
-H "Content-Type: application/json" \
-d '{"status": "active"}' Was this page helpful?