post__settings_organization
POST /settings/organization
Update Organization Settings (Full Replacement)
Update the organization settings with a complete replacement. This endpoint replaces all existing organization settings with the provided settings object. The user must be authenticated and associated with an organization.
Request Body Schema
ยป settings
object
true
none
Complete settings object to replace existing settings
TypeScript Client Library
// Using the Flashgate TypeScript client
import { FlashgateClient } from '@flashgate/client';
const client = new FlashgateClient({ accessToken: 'your-access-token' });
// Update organization settings with full replacement
try {
const result = await client.settings.organization.update({
settings: {
defaultStorageType: 'S3',
maxFileSize: '10GB',
retentionPolicy: { enabled: true, days: 365 },
security: { requireMFA: true, sessionTimeout: 3600 }
}
});
console.log('Organization settings updated:', result);
} catch (error) {
console.error('Failed to update organization settings:', error);
}Code Samples
Example responses
200 Response
400 Response
404 Response
500 Response
Responses
Response Schema
Status Code 200
ยป success
boolean
true
none
Indicates if the request was successful
ยป message
string
true
none
Success message describing the operation
Status Code 400
ยป success
boolean
true
none
Always false for error responses
ยป message
string
true
none
Error message describing the issue
Status Code 404
ยป success
boolean
true
none
Always false for error responses
ยป message
string
true
none
Error message describing the issue
Status Code 500
ยป success
boolean
true
none
Always false for error responses
ยป message
string
true
none
Error message describing the issue
ยป error
string
false
none
Additional error details if available
DTOs
UpdateSettingsRequest
SettingsErrorResponse
Last updated
Was this helpful?