Updates multiple private workspace settings in a single request.
Permission required: edit-privileged-setting
Changelog
| Version | Description |
|---|---|
| 8.6.0 | Added |
The user ID.
The authentication token.
The 2FA code. This parameter is required if 2FA is enabled in your workspace. See the Introduction to Two-Factor Authentication document for details.
Enter the method with which you get the 2FA code. It can be email, totp, or password. This parameter is required if 2FA is enabled in your workspace.
{
"settings": [
{
"_id": "API_Allow_Infinite_Count",
"value": false
},
{
"_id": "API_CORS_Origin",
"value": "https://example.com"
}
]
}The list of settings to update.
The unique ID of the setting.
The value to set for the setting. The accepted type depends on the setting.
OK
{
"success": true
}Bad Request
{
"success": false,
"error": "must have required property 'settings' [invalid-params]",
"errorType": "invalid-params"
}Unauthorized
{
"status": "error",
"message": "You must be logged in to do this."
}Forbidden
{
"success": false,
"error": "Editing settings is not allowed [error-action-not-allowed]",
"errorType": "error-action-not-allowed",
"details": {
"method": "saveSettings",
"settingIds": [
"API_Allow_Infinite_Count",
"API_CORS_Origin"
]
}
}