Monitoring sweep
Request
Content type: application/json · required
| Field | Type | Required | Description |
|---|---|---|---|
run_id |
string | Yes | — |
curl -X POST "$MONICHEK_API/monitoring/sweep" \
-H "Authorization: Bearer $MONICHEK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"run_id": "id_01M3R..."
}'const res = await fetch(`${MONICHEK_API}/monitoring/sweep`, {
method: "POST",
headers: {
Authorization: `Bearer ${MONICHEK_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"run_id": "id_01M3R..."
}),
});
const data = await res.json();import os
import requests
res = requests.post(
f"{os.environ['MONICHEK_API']}/monitoring/sweep",
headers={"Authorization": f"Bearer {os.environ['MONICHEK_API_KEY']}"},
json={
"run_id": "id_01M3R..."
},
)
print(res.json())$ch = curl_init(getenv('MONICHEK_API') . '/monitoring/sweep');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('MONICHEK_API_KEY'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'run_id' => 'id_01M3R...',
]),
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;Responses
200 OK
sweep report
application/json
No response example is published for this status.
Error responses
| Status | Meaning | Body |
|---|---|---|
| 401 | Unauthorized | RFC 9457 problem |
| 422 | Unprocessable Entity | RFC 9457 problem |
Errors use the RFC 9457 problem format with a stable code.