# 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="/files/gmNTJUqgpSfX4byxWbf8" 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="/files/6siGNtq5JzkFD4kKbwro" 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.apica.io/platform-docs/test-data-orchestrator-tdo/user-documentation/api-guide/assignment-rule-apis/get-assignment-rules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
