Update General Settings
Updates the general settings of the project
HTTP Request
PATCH/api/settings/general
Authorization
Authorization
- Required: Yes
- Permission: Staff with GeneralSettingsPermission or Admin
- Permission Code: 1002
- Authentication: Token authentication
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| a | String | No | Description for setting a |
| b | String | No | Description for setting b |
| c | String | No | Description for setting c |
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}'Response Fields
| Field | Type | Description |
|---|---|---|
| a | string | Description for setting a |
| b | string | Description for setting b |
| c | string | Description for setting c |
Example Response
{
"a": "x2",
"b": "y2",
"c": "z2"
}
Notes
- This endpoint currently has no practical use