Update instance configuration
const url = 'https://example.com/api/v1/admin/config';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"apple_app_ids":["example"],"backup_retention":1,"backup_schedule":"example","dedup_scrub_schedule":"example","default_quota":1,"instance_name":"example","oidc_providers":[{"admin_group":"example","client_id":"example","client_secret":"example","groups_authoritative":true,"groups_claim":"example","guest_group":"example","issuer":"example","name":"example"}],"open_signup":true,"profile_signing":{"certificate_pem_file":"example","chain_pem_file":"example","private_key_file":"example"},"user_deletion_archive_days":1,"version":1,"video_cache_max_bytes":1}'};
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://example.com/api/v1/admin/config \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "apple_app_ids": [ "example" ], "backup_retention": 1, "backup_schedule": "example", "dedup_scrub_schedule": "example", "default_quota": 1, "instance_name": "example", "oidc_providers": [ { "admin_group": "example", "client_id": "example", "client_secret": "example", "groups_authoritative": true, "groups_claim": "example", "guest_group": "example", "issuer": "example", "name": "example" } ], "open_signup": true, "profile_signing": { "certificate_pem_file": "example", "chain_pem_file": "example", "private_key_file": "example" }, "user_deletion_archive_days": 1, "version": 1, "video_cache_max_bytes": 1 }'Updates the instance configuration. It requires a signed-in User with the admin scope and the admin or owner Role. It can return 401 if the session is missing or expired and 403 if access is denied. Route: /api/v1/admin/config. Inputs: . A recent account assertion is required. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Six-field wall-clock cron expression for the low-priority file check. The server evaluates it in the Instance time zone. An empty string means the scheduled check is off.
object
Maximum bytes used by completed cached video renditions.
Examplegenerated
{ "apple_app_ids": [ "example" ], "backup_retention": 1, "backup_schedule": "example", "dedup_scrub_schedule": "example", "default_quota": 1, "instance_name": "example", "oidc_providers": [ { "admin_group": "example", "client_id": "example", "client_secret": "example", "groups_authoritative": true, "groups_claim": "example", "guest_group": "example", "issuer": "example", "name": "example" } ], "open_signup": true, "profile_signing": { "certificate_pem_file": "example", "chain_pem_file": "example", "private_key_file": "example" }, "user_deletion_archive_days": 1, "version": 1, "video_cache_max_bytes": 1}Responses
Section titled “Responses”object
Six-field wall-clock cron expression for the low-priority file check. The server evaluates it in the Instance time zone. An empty string means the scheduled check is off.
object
Maximum bytes used by completed cached video renditions.
Examplegenerated
{ "apple_app_ids": [ "example" ], "backup_retention": 1, "backup_schedule": "example", "dedup_scrub_schedule": "example", "default_quota": 1, "instance_name": "example", "oidc_providers": [ { "admin_group": "example", "client_id": "example", "client_secret": "example", "groups_authoritative": true, "groups_claim": "example", "guest_group": "example", "issuer": "example", "name": "example" } ], "open_signup": true, "profile_signing": { "certificate_pem_file": "example", "chain_pem_file": "example", "private_key_file": "example" }, "user_deletion_archive_days": 1, "version": 1, "video_cache_max_bytes": 1}