When using the Salesforce REST API to create or update records (such as Cases, Leads, or Accounts), assignment rules may fire unexpectedly, changing record ownership in ways that were not intended. This occurs because the Sforce-Auto-Assign HTTP request header defaults to TRUE when it is not explicitly included in a REST API request. As a result, any REST API operation that omits this header will trigger assignment rules automatically.
As documented in the REST API Developer Guide, the default value of Sforce-Auto-Assign is TRUE unless explicitly set to FALSE.
Include the Sforce-Auto-Assign: FALSE header in all REST API requests where assignment rules should not run. This explicitly prevents assignment rules from firing for that operation.
Certain Salesforce standard features that use the REST API internally do not expose the ability to control the Sforce-Auto-Assign header. In these cases, assignment rules will always fire. Known examples include:
Note on Case records: For Case records, when assignment rules are triggered but no rule entry matches the case criteria, the case owner is changed to the Default Case Owner configured in your Support Settings.
000390059

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.