Skip to main content

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

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())

Response Fields

FieldTypeDescription
blog_truncated_excerpt_max_lengthIntegerMaximum length for truncated excerpts (10-500, default: 200)
blog_truncated_body_max_lengthIntegerMaximum length for truncated body text (minimum: 50, default: 1000)

Example Response

{
"blog_truncated_excerpt_max_length": 200,
"blog_truncated_body_max_length": 1000
}