Retrieve General Settings
Retrieves the current general settings of the platform.
HTTP Request
GET/api/settings/general
Authorization
Authorization
- Required: Yes
- Permission: Staff or Admin
- Authentication: Token authentication
Example Requests
- 🐍 Python
- 🌐 Curl
1# Retrieve general settings
2response = requests.get('http://www.example.com/api/settings/general',
3 headers={'Authorization': 'Token <your_api_key>'}
4)
5print(response.json())1# Retrieve general settings
2curl "http://www.example.com/api/settings/general" -H "Authorization: Token <your_api_key>"
3
4# Update general settings
5curl -X PATCH "http://www.example.com/api/settings/general" -H "Authorization: Token <your_api_key>" -H "Content-Type: application/json" -d '{
6 "a": "new_value_a",
7 "b": "updated_b"
8}'Status Codes
| Code | Description |
|---|---|
| 200 | Request logs retrieved successfully |
| 400 | Bad request — invalid query parameters |
| 401 | Unauthorized — authentication required |
| 403 | Forbidden — insufficient permissions |
| 500 | Internal server error |
Response Fields
| Field | Type | Description |
|---|---|---|
| a | string | Description for setting a |
| b | string | Description for setting b |
| c | integer | Description for setting c |
| d | boolean | Description for setting d |
| e | string | Description for setting e |