Save the auto mode setting for an organisation
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/example/ai/auto-mode';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"enabled":true,"orchestratorModel":"example","group":{"revision":1,"roles":{"fast":["example"],"standard":["example"],"deep":["example"]}},"watcherIntervalMinutes":1,"maxParallelTasks":1,"enforcement":"default","autonomousDefault":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://dashboard.quantcdn.io/api/v3/organizations/example/ai/auto-mode \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "enabled": true, "orchestratorModel": "example", "group": { "revision": 1, "roles": { "fast": [ "example" ], "standard": [ "example" ], "deep": [ "example" ] } }, "watcherIntervalMinutes": 1, "maxParallelTasks": 1, "enforcement": "default", "autonomousDefault": true }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The organisation ID
Request Bodyrequired
Section titled “Request Bodyrequired”object
Required when enabled is true. May be left out when enabled is false.
object
Revision from the last read. A stale value returns 409.
object
Responses
Section titled “Responses”The saved setting
object
object
Empty when the setting was saved off without an orchestrator.
object
object
Example
{ "autoMode": { "enforcement": "default" }}The setting is refused. When the models are not usable, eligible carries the eligibility report; it is null for a body shape error or an unknown organisation portal.
object
object
object
object
object
object
object
Example
{ "eligible": { "orchestrator": { "reason": "unknown" }, "roles": { "fast": [ { "reason": "unknown" } ], "standard": [ { "reason": "unknown" } ], "deep": [ { "reason": "unknown" } ] } }}Conflict: the group revision is stale (another change was saved after the last read), the governance settings changed between the read and the write, or the organisation governance settings are not saved yet (error: “Save the organisation governance settings first”). Read the setting again, then retry.
object
Examplegenerated
{ "error": "example"}Validation error
The AI service is not available
The AI service cannot save the setting now
