Version 1.8.1
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# API Endpoints Reference
|
||||
|
||||
**Last Verified:** January 17, 2026
|
||||
**Version:** 1.8.0
|
||||
**Last Verified:** January 18, 2026
|
||||
**Version:** 1.8.1
|
||||
**Base URL:** `/api/v1/`
|
||||
**Documentation:** `/api/docs/` (Swagger) | `/api/redoc/` (ReDoc)
|
||||
|
||||
@@ -155,6 +155,45 @@ POST /api/v1/writer/content/{id}/schedule/
|
||||
|--------|------|---------|---------|
|
||||
| GET | `/sites/{site_id}/unified-settings/` | `UnifiedSiteSettingsViewSet.retrieve` | Get all site settings (automation, publishing, AI) |
|
||||
| PATCH | `/sites/{site_id}/unified-settings/` | `UnifiedSiteSettingsViewSet.partial_update` | Update settings (partial) |
|
||||
| **GET** | `/settings/defaults/` | **v1.8.1** `DefaultSettingsAPIView` | Get default settings for reset functionality |
|
||||
|
||||
### Default Settings Endpoint (v1.8.1)
|
||||
|
||||
Returns centralized defaults from `DefaultAutomationConfig` singleton:
|
||||
|
||||
```json
|
||||
GET /api/v1/integration/settings/defaults/
|
||||
|
||||
{
|
||||
"automation": {
|
||||
"enabled": false,
|
||||
"frequency": "daily",
|
||||
"time": "02:00"
|
||||
},
|
||||
"stages": [
|
||||
{"number": 1, "enabled": true, "batch_size": 50, "per_run_limit": 0, "use_testing": false, "budget_pct": 15},
|
||||
{"number": 2, "enabled": true, "batch_size": 1, "per_run_limit": 0, "use_testing": false, "budget_pct": 10},
|
||||
// ... stages 3-7
|
||||
],
|
||||
"delays": {
|
||||
"within_stage": 3,
|
||||
"between_stage": 5
|
||||
},
|
||||
"publishing": {
|
||||
"auto_approval_enabled": false,
|
||||
"auto_publish_enabled": false,
|
||||
"daily_publish_limit": 3,
|
||||
"weekly_publish_limit": 15,
|
||||
"monthly_publish_limit": 50,
|
||||
"publish_days": ["mon", "tue", "wed", "thu", "fri"],
|
||||
"time_slots": ["09:00", "14:00", "18:00"]
|
||||
},
|
||||
"images": {
|
||||
"style": "photorealistic",
|
||||
"max_images": 4
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**Unified Settings Response:**
|
||||
```json
|
||||
|
||||
Reference in New Issue
Block a user