Update Settings
PATCH
/v1/settings
const url = 'https://example.com/v1/settings';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"auto_settle":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/v1/settings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "auto_settle": true }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
SettingsUpdate
object
auto_settle
required
Auto Settle
boolean
Example generated
{ "auto_settle": true}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Settings
object
mode
required
Mode
local: one person on their own machine. hosted: shared, with sign-in.
string
server_files
required
Server Files
Whether datasets can be added from, and exported to, paths on the server.
boolean
auto_settle
required
Auto Settle
Whether the organisation’s datasets settle by themselves after 24 hours of nothing happening on them, unless a dataset says otherwise. On by default.
boolean
Example
{ "provider": "server", "mode": "local"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}