Retrieve Blog Settings
Retrieves the blog settings of the project
HTTP Request
GET/api/settings/blog
Authorization
Authorization
- Required: Yes
- Permission: Staff with BlogSettingsPermission or Admin
- Permission Code: 1041
- Authentication: Token authentication
Example Requests
- 🐍 Python
- 🌐 Curl
1import requests
2
3# Retrieve blog settings
4response = requests.get('http://www.example.com/api/settings/blog',
5 headers={'Authorization': 'Token <your_api_key>'}
6)
7print(response.json())1# Retrieve blog settings
2curl "http://www.example.com/api/settings/blog" -H "Authorization: Token <your_api_key>"Response Fields
| Field | Type | Description |
|---|---|---|
| blog_truncated_excerpt_max_length | Integer | Maximum length for truncated excerpts (10-500, default: 200) |
| blog_truncated_body_max_length | Integer | Maximum length for truncated body text (minimum: 50, default: 1000) |
Example Response
{
"blog_truncated_excerpt_max_length": 200,
"blog_truncated_body_max_length": 1000
}