Update General Settings
Updates the general settings of the platform.
HTTP Request
PATCH/api/settings/general
Authorization
Authorization
- Required: Yes
- Permission: Staff or Admin
- Authentication: Token authentication
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| a | String | No | Description for setting a |
| b | String | No | Description for setting b |
| c | Integer | No | Description for setting c |
| d | Boolean | No | Description for setting d |
| e | String | No | Description for setting e |
Example Requests
- 🐍 Python
- 🌐 Curl
1# Update general settings
2response = requests.patch('http://www.example.com/api/settings/general',
3 json={
4 'a': 'new_value_a',
5 'b': 'updated_b'
6 },
7 headers={'Authorization': 'Token <your_api_key>'}
8)
9print(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 updated 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 |