# ApiRuntimeSwitch__c

**Sobject**

<div class="apex-member apex-class">

```apex
global class ApiRuntimeSwitch__c extends SObject
```

**Extends:** [SObject](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_sobject.htm)

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.

</div>

---

## Fields

| Field | Description |
|-------|-------------|
| global [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm) [DisableAllApis__c](#disableallapis-c) | When enabled, every API call (inbound and outbound) is disabled for the applicable user, profile, or org. |

### 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:**

| Attribute | Value |
|-----------|-------|
| Data Type | Checkbox |
| Default Value | false |
