# Upload Your Placement Rules

To successfully complete this tutorial we will need to upload the placement rules that our simulation will reference. In the section of this documentation titled *"Simulation Structure,"* we review all the various components of your simulation in detail.&#x20;

![](/files/-M_l0g-k-g2UDfpu7Ujt)

#### Upload placement rules with python

Lexset maintains a python package that is designed to help you manage your simulations and integrate synthetic data into your existing data pipeline.&#x20;

Install the `lexsetAPI` python package with pip.

```
pip install lexsetAPI==1.2.5
```

Then you will locate the local folder where your placement rules are stored.&#x20;

```python
placementRulePath = "./placement_rules/"
placementRule = "livingroom_coreweave.yaml"
```

Next, you will upload the placement rules to the Lexset cloud.

```python
lexset.addRules(<YOUR USER ID>,placementRule,placementRulePath)
```

This is what your python script should look like.

*Note: Your user ID is available on your account page. See "Setup Your Account" for more information.*

```python
import lexsetAPI as lexset

placementRulePath = "./placement_rules/"
placementRule = "livingroom_coreweave.yaml"

lexset.addRules(<YOUR USER ID>,placementRule,placementRulePath)
```

If successful the function will print the file path on our cloud for you to use in your pipeline configuration.

```python
{"filepaths":["/general/lexset/Seahaven3/Users/3/PlacementRules/livingroom_coreweave.yaml"]}
```

Try to repeat this for each of the placement rules.


---

# 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://lexset-1.gitbook.io/lexset-seahaven/tutorials/starting-and-managing-your-simulation/upload-your-placement-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.
