# Get Assignment Rules

This call gets the details for all assignment rules in a workset. It is sent as a POST call.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FxsfRegh1ntb32EBS6999%2Fimage.png?alt=media&#x26;token=aa4af47d-2f5e-40f1-bb50-70282f294eea" alt=""><figcaption><p>Get Assignment Rules call</p></figcaption></figure>

The body of the call contains the information on the project and workset you want to get assignment rule information on.

&#x20;

```
{
    "context": {
        "user": "user_ID",
        "password": "xxxx",
        "project": {
            "name": "imp_payments_demo",
            "version": "1.0"
        },
        "workSet": {
            "name": "api_2_workset",
            "version": "1.1"
        }
    }
}
```

&#x20;

The return message will contain information on all rules in that workset.  In the sample below, there are two steps in the workset and rules for both steps are returned.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2Fggfb1rUFHtpNgVQiXjAT%2Fimage.png?alt=media&#x26;token=ed4061e0-da04-4059-9e18-753d71870dbe" alt=""><figcaption><p>Return message with all rules</p></figcaption></figure>

For the remaining calls referenced in this section, the rule ID returned in this call is used to target the call to a specific rule.
