Skip to content

Platform Defaults API

The Platform Defaults API lets you retrieve the current Platform Defaults for your workspace and update them programmatically, with an optional propagation flag that overwrites the corresponding values on every existing datastore and container.

Observability and Profile defaults apply only to source datastores, not enrichment datastores. Scan defaults apply to source and enrichment datastores. Enrichment datastores start with observability tracking disabled and AI Effort Off; you can configure their own Profile settings separately.

Tip

For complete API documentation, including request/response schemas, visit the API docs.

Permissions

Reading saved defaults requires the Manager user role or higher. Changing defaults and previewing retention require the Admin user role. See Platform Defaults Permissions.

All endpoints use the base URL of your Qualytics deployment (e.g., https://your-instance.qualytics.io/api).


Get Platform Defaults

Retrieve the current Platform Defaults for the workspace.

Endpoint: GET /api/settings/global-defaults

Permission: Manager user role or higher.

Example request and response

Request:

curl -X GET "https://your-instance.qualytics.io/api/settings/global-defaults" \
  -H "Authorization: Bearer YOUR_TOKEN"

Response:

{
  "volumetric_tracking_enabled": false,
  "automate_volumetric_checks": false,
  "freshness_tracking_enabled": false,
  "automate_freshness_checks": false,
  "ai_effort": "medium",
  "infer_as_draft": false,
  "high_count_rollup_threshold": 10,
  "enrichment_source_record_limit": 10,
  "one_record_anomaly_per_check": false,
  "sync_analysis_concurrency": 16
}

Note

GET returns the defaults as a flat object. PATCH wraps the same fields under a settings key and adds a propagation key (shown below), because a PATCH can also report what propagation did.


Update Platform Defaults

Update one or more Platform Defaults. This endpoint uses partial update semantics: only the fields you include in the request body are changed. Omitted fields remain unchanged.

Endpoint: PATCH /api/settings/global-defaults

Permission: Admin user role.

Query parameters:

Parameter Type Default Description
propagate boolean false When true, saved Observability and Profile values are also written to existing source datastores. Observability values also apply to their non-deleted containers. Scan values apply to existing source and enrichment datastores; one_record_anomaly_per_check also applies to their non-deleted containers. sync_analysis_concurrency is never propagated: it is one value for the whole deployment, not a per-datastore default, so propagation ignores it even when it is in the same request. Retention periods are also deployment-wide and never propagated.

Request Body:

Field Type Range Qualytics default Description
volumetric_tracking_enabled boolean true / false false Turns on daily recording of volume metrics for each container.
automate_volumetric_checks boolean true / false false Automatically creates an AI volumetric check for each tracked container. Coupled with volumetric_tracking_enabled.
freshness_tracking_enabled boolean true / false false Turns on daily recording of the last time data was added or updated.
automate_freshness_checks boolean true / false false Automatically creates an AI freshness check for each tracked container. Coupled with freshness_tracking_enabled.
ai_effort string off, low, medium, high, xhigh, max medium Effort level Qualytics AI uses when generating checks during a profile operation. The six values map to the UI slider stops Off, Low, Medium, High, Extra High, and Max.
infer_as_draft boolean true / false false When true, AI-generated checks are saved as drafts and require review before they activate. When false, they activate as soon as the profile completes.
high_count_rollup_threshold integer 1 to 1000 10 How many record anomalies can be created per check before they are grouped into one rolled-up anomaly. Values above 1000 are silently capped.
enrichment_source_record_limit integer 1 to 1,000,000,000 10 How many source records are stored in your enrichment destination as examples per failing check.
one_record_anomaly_per_check boolean true / false false false gives a view centered on the source record: a record that fails several checks produces one anomaly listing all of them. true gives a view centered on the check: the record produces one record anomaly per failed check, even when several checks flag the same record. Shape anomalies are always one per failed check. With propagate=true, the value is also written to existing datastores (as default_one_record_anomaly_per_check) and their containers. There is no per-scan equivalent. See One anomaly per check.
sync_analysis_concurrency integer 1 to 256 16 How many tables or files a Sync analyzes at the same time. One value for the whole deployment, applied to the next Sync that starts, with no restart. Values outside the range are rejected with 422.

Coupling of tracking and automation

automate_volumetric_checks=true cannot be stored without volumetric_tracking_enabled=true. On save, Qualytics silently normalizes the request to enforce this invariant. When both fields are submitted together, automation wins: automate_volumetric_checks=true combined with volumetric_tracking_enabled=false results in volumetric_tracking_enabled=true. When only tracking is submitted, tracking wins: setting volumetric_tracking_enabled=false while the stored automate_volumetric_checks is true sets automate_volumetric_checks=false. The same coupling applies to the freshness pair.

Update Profile defaults without propagation

Set the default AI Effort to high and keep AI-generated checks as drafts:

Request:

curl -X PATCH "https://your-instance.qualytics.io/api/settings/global-defaults" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "ai_effort": "high",
    "infer_as_draft": true
  }'

Response:

{
  "settings": {
    "volumetric_tracking_enabled": false,
    "automate_volumetric_checks": false,
    "freshness_tracking_enabled": false,
    "automate_freshness_checks": false,
    "ai_effort": "high",
    "infer_as_draft": true,
    "high_count_rollup_threshold": 10,
    "enrichment_source_record_limit": 10,
    "one_record_anomaly_per_check": false,
    "sync_analysis_concurrency": 16
  },
  "propagation": null
}
Update Observability defaults and propagate

Turn on Volume Tracking + AI volumetric checks for every existing source datastore and its containers:

Request:

curl -X PATCH "https://your-instance.qualytics.io/api/settings/global-defaults?propagate=true" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "volumetric_tracking_enabled": true,
    "automate_volumetric_checks": true
  }'

Response:

{
  "settings": {
    "volumetric_tracking_enabled": true,
    "automate_volumetric_checks": true,
    "freshness_tracking_enabled": false,
    "automate_freshness_checks": false,
    "ai_effort": "medium",
    "infer_as_draft": false,
    "high_count_rollup_threshold": 10,
    "enrichment_source_record_limit": 10,
    "one_record_anomaly_per_check": false,
    "sync_analysis_concurrency": 16
  },
  "propagation": {
    "updated": 3,
    "skipped": 0,
    "datastores_updated": 3,
    "containers_updated": 12
  }
}
Update Scan defaults

Cap record anomalies at 100 per check and store up to 25 source examples per anomaly:

Request:

curl -X PATCH "https://your-instance.qualytics.io/api/settings/global-defaults" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "high_count_rollup_threshold": 100,
    "enrichment_source_record_limit": 25
  }'

Response:

{
  "settings": {
    "volumetric_tracking_enabled": false,
    "automate_volumetric_checks": false,
    "freshness_tracking_enabled": false,
    "automate_freshness_checks": false,
    "ai_effort": "medium",
    "infer_as_draft": false,
    "high_count_rollup_threshold": 100,
    "enrichment_source_record_limit": 25,
    "one_record_anomaly_per_check": false,
    "sync_analysis_concurrency": 16
  },
  "propagation": null
}
Update the Sync default

Let a Sync analyze 32 tables or files at once. The propagate flag is irrelevant here, since this value is never propagated:

Request:

curl -X PATCH "https://your-instance.qualytics.io/api/settings/global-defaults" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "sync_analysis_concurrency": 32
  }'

Response:

{
  "settings": {
    "volumetric_tracking_enabled": false,
    "automate_volumetric_checks": false,
    "freshness_tracking_enabled": false,
    "automate_freshness_checks": false,
    "ai_effort": "medium",
    "infer_as_draft": false,
    "high_count_rollup_threshold": 10,
    "enrichment_source_record_limit": 10,
    "one_record_anomaly_per_check": false,
    "sync_analysis_concurrency": 32
  },
  "propagation": null
}

For the UI equivalent, see the Configure Observability Defaults, Configure Sync Defaults, Configure Profile Defaults, and Configure Scan Defaults pages.


Retention Periods

Data Retention uses the same GET /api/settings/global-defaults and PATCH /api/settings/global-defaults endpoints. These fields are included in the saved defaults:

Field Policy
retention_inactive_anomaly_days Archive or delete anomalies with no edits or comments within the period.
retention_inactive_anomaly_settings Inactive-anomaly operation, activation, statuses and retained action options.
retention_stale_check_archive_days Archive active checks that have not been asserted within the period.
retention_archived_check_delete_days Permanently delete checks archived longer than the period and the anomalies they generated.
retention_inactive_datastore_delete_days Permanently delete inactive datastores and empty connections, subject to dependency and activity checks.
retention_deactivated_user_purge_days Purge accounts deactivated longer than the period.
retention_archived_anomaly_delete_days Permanently delete anomalies archived longer than the period.

Every period accepts a whole number from 30 to 36,500, or null; retention_inactive_anomaly_days accepts 1 to 36,500. The default is null, meaning keep forever. An explicit null clears a saved period; omitting a field preserves its saved value. These are deployment-wide policies, so propagate=true has no effect on them.

Inactive-anomaly settings are an object with enabled (boolean), operation (archive or delete), statuses (array of anomaly status names; empty means all eligible statuses), datastore_ids, tag_ids, and parameters. Parameters include status (the archive status), comment, mentioned_user_ids, and assign_tags. When changing this object, send its complete saved value with your edits to retain other options. A disabled policy keeps its period and filters.

Endpoint: PATCH /api/settings/global-defaults

Permission: Admin user role.

Enable two retention policies

Preview the proposed values first. Saving them makes eligible existing assets subject to cleanup on the next Data Retention Flow run.

curl -X PATCH "https://your-instance.qualytics.io/api/settings/global-defaults" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "retention_stale_check_archive_days": 180,
    "retention_archived_check_delete_days": 90
  }'

The response contains the saved defaults under settings. As with other updates without propagation, propagation is null.

Disable archived-check deletion
curl -X PATCH "https://your-instance.qualytics.io/api/settings/global-defaults" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"retention_archived_check_delete_days": null}'

Other policies retain their saved periods. Clearing a period does not restore deleted assets or undo work already completed by a running action.

Get the Data Retention Flow

Endpoint: GET /api/settings/data-retention/flow

Permission: Manager user role or higher.

Returns the controlling Flow, including its id, saved crontab, timezone and deactivated state. Use the returned schedule rather than assuming the default run time. An unset timezone means UTC. The response is null if the Flow has not been created yet; this request does not create it.

Read the controlling Flow and its schedule
curl -X GET "https://your-instance.qualytics.io/api/settings/data-retention/flow" \
  -H "Authorization: Bearer YOUR_TOKEN"

Preview Data Retention

Count the assets eligible for the next run without archiving, deleting or purging anything.

Endpoint: GET /api/settings/data-retention/preview

Permission: Admin user role.

Query parameters: any of the six period field names in Retention Periods, each with a whole-number value from 30 to 36,500, or 1 to 36,500 for inactive anomalies. Supplied periods are previewed without being saved. Policies omitted from the query use their saved periods.

The response contains a policies array with one entry per policy:

Field Meaning
asset_type Policy identifier: stale_checks, archived_checks, inactive_datastores, deactivated_users, archived_anomalies, or inactive_anomalies.
label Human-readable policy name.
retention_days The proposed or saved period used for this preview. null means the policy is disabled.
affected An array of counts, each with entity and count. Entities are checks, anomalies, datastores, connections, or users. A disabled policy has an empty array.
Preview two proposed periods
curl -G "https://your-instance.qualytics.io/api/settings/data-retention/preview" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  --data-urlencode "retention_stale_check_archive_days=180" \
  --data-urlencode "retention_archived_check_delete_days=90"

Omit the query parameters to preview all saved periods. To clear a period, use PATCH with null; the preview query accepts numeric overrides only.

To preview inactive-anomaly settings or explicitly cleared periods, use POST /api/settings/data-retention/preview with the same retention fields as the settings update. It does not save them. Omitted fields use saved settings; a null period previews turning that policy off. For example:

{
  "retention_inactive_anomaly_days": 90,
  "retention_inactive_anomaly_settings": {
    "enabled": true,
    "operation": "delete",
    "statuses": ["Discarded"]
  }
}

Preview counts are estimates. Dependencies or activity between preview and execution can reduce the number removed. Review the policy rules and safeguards before enabling cleanup.


Error Responses

Status Code Description
401 Unauthorized Missing or invalid API token.
403 Forbidden User does not have the required role (Manager for reading defaults; Admin for PATCH and retention preview).
422 Unprocessable Entity Invalid request body (e.g., ai_effort outside the accepted set, a rollup threshold below 1, a source record limit above 1,000,000,000, a sync concurrency outside 1 to 256, or a retention period outside 30 to 36,500).
Error response examples

403 Forbidden on PATCH without Admin role:

{ "detail": "Required role(s): ['Admin']" }

422 Unprocessable Entity on invalid effort value:

{ "detail": [{ "type": "enum", "loc": ["body", "ai_effort"], "msg": "Input should be 'off', 'low', 'medium', 'high', 'xhigh' or 'max'" }] }

Permission Summary

Operation Minimum Permission
Get Platform Defaults Manager user role
Preview Data Retention Admin user role
Update Platform Defaults Admin user role
Update Platform Defaults with propagate=true Admin user role