# Assign a Fixed Value

In Postman, the API looks like this:

<figure><img src="/files/sSRGjkU3OPrVujQdTG4i" alt=""><figcaption><p>API call for assignment rule creation</p></figcaption></figure>

The body of the file for this call will look like this:

&#x20;

```
{
    "context": {
        "user": "id_name",
        "password": "password",
        "project": {
            "name": "imp_payments_demo",
            "version": "1.0"
        },
        "workSet": {
            "name": "api_2_workset",
            "version": "1.1"
        }
    },
    "entity": {
        "step": {
            "name": "imp_enter_details",
            "version": "1.0"
        },
        "attribute": "test_string",    
        "operands": [
            {
                "operator": "ASSIGN",
                "value": "125"
            }      
        ]
    }
}
```

&#x20;

In the entity section, you will need to provide the step name and version (version can be validated in the ‘data blocks’ section of TDO or on the ‘assembled data’ page).

&#x20;

The attribute name is the name from the list in the TDO data assignment page.  In this case, we are working on the third attribute in the list:

<figure><img src="/files/gO9B5mAsKVs6iQK6z1y4" alt=""><figcaption><p>Assignment rules page in TDO</p></figcaption></figure>

In the final section of the body, we are specifying the method being used (‘ASSIGN’) and the value to be assigned (‘125’).  Since we have not specified a format type, this will be assigned using the default value of STRING.

&#x20;

When the API is successfully run, you will receive the following return message:

<figure><img src="/files/iXCb8XJlrTe9CpmR4pjf" alt=""><figcaption><p>Return message for successful execution</p></figcaption></figure>

Note that the return message starts with the Mongo object ID, provides the rule name and properties.&#x20;

&#x20;

Here is that rule in TDO after the API is run.

<figure><img src="/files/ltOzgddxdMDAI31lKpLs" alt=""><figcaption><p>New rule created in TDO</p></figcaption></figure>

You can see that the rule name on the TDO screen is the same as the rule name returned to Postman after the API was run and the value assigned is the value sent in the API.


---

# 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/create-assignment-rule/assign-a-fixed-value.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.
