LogBuffer
Quick Reference
Method |
Endpoint |
Description |
|---|---|---|
POST |
/api/admin/logbuffer/flush |
|
POST |
/api/admin/logbuffer/flushAll |
POST /api/admin/logbuffer/flush
Example Request:
from ABConnect import ABConnectAPI
# Initialize the API client
api = ABConnectAPI()
# Make the API call
response = api.raw.post(
"/api/admin/logbuffer/flush"
,
data=
{
"example": "data"
}
)
# Process the response
print(response)
ab api raw post /api/admin/logbuffer/flush
curl -X POST \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"example": "data"
}' \
'https://api.abconnect.co/api/admin/logbuffer/flush'
Sample Response:
1{
2 "id": "789e0123-e89b-12d3-a456-426614174002",
3 "status": "created",
4 "message": "Resource created successfully"
5}
POST /api/admin/logbuffer/flushAll
Example Request:
from ABConnect import ABConnectAPI
# Initialize the API client
api = ABConnectAPI()
# Make the API call
response = api.raw.post(
"/api/admin/logbuffer/flushAll"
)
# Process the response
print(response)
ab api raw post /api/admin/logbuffer/flushAll
curl -X POST \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
'https://api.abconnect.co/api/admin/logbuffer/flushAll'
Sample Response:
1{
2 "id": "789e0123-e89b-12d3-a456-426614174002",
3 "status": "created",
4 "message": "Resource created successfully"
5}