---
schema_version: "1"
id: 88c2ca4ad46b51530f10343c45cc63bf55c8a9b8b9bda0aa11cc8b09438964d6
title: Assignment 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-autoassign.md
canonical_url: https://developer.salesforce.com/docs/platform/api-rest/guide/headers-autoassign.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4eea745d975a7b45c6c7848e566296059d9664e3367a09d4204cb6744194739d
products:
  - REST API Developer Guide
  - Platform Developer Content
---

# Assignment Rule Header

The Assignment Rule header is a request header applied when creating or updating Accounts, Cases, or Leads. If enabled, the active assignment rules are used. If disabled, the active assignment rules are not applied. If a valid AssignmentRule ID is provided, the AssignmentRule is applied. If the header is not provided with a request, REST API defaults to using the active assignment rules.

**note:** This header also gets applied when making REST API calls that indirectly result in creating or updating Accounts, Cases, or Leads. For example, if you use this header with a call that updates a record, and the update executes an Apex trigger that updates a Case, the assignment rules would be applied.

## Header Field Name and Values

**Field name:** `Sforce-Auto-Assign`

**Field values**

-   `TRUE`. Active assignment rules are applied for created or updated Accounts, Cases, or Leads.
-   `FALSE`. Active assignment rules are not applied for created or updated Accounts, Cases, or Leads.
-   Valid AssignmentRule ID. The given AssignmentRule is applied for created Accounts, Cases, or Leads.

`TRUE` and `FALSE` are not case-sensitive.

If the header is not provided in the request, the default value is `TRUE`.

**Example:** `Sforce-Auto-Assign: FALSE`

