Skip to content

ApiRuntimeSwitch__c

Sobject

apex
global class ApiRuntimeSwitch__c extends SObject

Extends: SObject

Hierarchical custom setting that provides runtime API kill switches at the org, profile, or user level. User-level overrides profile-level, which overrides org-level. For granular per-service control, use ApiSetting__mdt.IsActive__c instead.


Fields

FieldDescription
global Boolean DisableAllApis__cWhen enabled, every API call (inbound and outbound) is disabled for the applicable user, profile, or org.

Field Details

DisableAllApis__c

apex
global Boolean DisableAllApis__c

When enabled, every API call (inbound and outbound) is disabled for the applicable user, profile, or org. This is a hierarchical custom setting — user-level overrides profile-level, which overrides org-level.

Field Attributes:

AttributeValue
Data TypeCheckbox
Default Valuefalse