---
schema_version: "1"
id: 0b88688a61e3b966ceeb0d9a6d4d4ead43255963bf1f460984eaf04e217aa8e9
title: Duplicate Rule Header
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/api-rest/guides/headers/headers-duplicaterules.md
canonical_url: https://developer.salesforce.com/docs/platform/api-rest/guide/headers-duplicaterules.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 633870d0399f6bcb62b83bd1e56c178a2347152776cb2684cd4b485e46a37c0a
products:
  - REST API Developer Guide
  - Platform Developer Content
---

# Duplicate Rule Header

Configure options for duplicate rules. Salesforce uses duplicate rules to see if the record that is being created, updated, or upserted is a duplicate of an existing record. Duplicate rules are part of Duplicate Management.

This header is available in API version 52.0 and later.

## Header Field Name and Values

The default value for all fields is `false`.

**Field name:** `allowSave`

**Field values**

-   `true`—allow the user to acknowledge the alert and save the duplicate record. Applicable if an alert is enabled for the action.
-   `false`—don't allow the user to acknowledge the alert or save the duplicate record. Applicable if an alert is enabled for the action.

**Field name:** `includeRecordDetails`

**Field values**

-   `true`—return all fields in the duplicate record.
-   `false`—return the duplicate record ID, but not the fields.

**Field name:** `runAsCurrentUser`

**Field values**

-   `true`—when the duplicate rule is run, use the current user's sharing rules.
-   `false`—when the duplicate rule is run, use the system sharing rules, not the current user's sharing rules.

Allow the user to acknowledge the alert and save the duplicate record. Indicate that the duplicate field's records are returned, and that the current user's sharing rules are enforced. These duplicate management configuration options are now applied when records are created, updated, and upserted.

```html
Sforce-Duplicate-Rule-Header: allowSave=true; includeRecordDetails=true; runAsCurrentUser=true
```

