# Ocmis API

#### 1. Creating a new API in the Raindancer portal

1. Define API Connection in Raindancer under **Config** → **API → New API** [![image.png](https://help.raindancer.com/uploads/images/gallery/2024-06/scaled-1680-/pHNimage.png)](https://help.raindancer.com/uploads/images/gallery/2024-06/pHNimage.png)
2. API-Name: free to choose
3. ID is provided by the Raindancer System
4. Key: Set as desired

#### 2. Submit API to OCMIS 

1. Log in to the OCMIS portal
2. Navigate to Account Management
3. Click on **Edit your Data**
4. Enter ID &amp; Key and save  
    <p class="callout info">[![ocmis_api.png](https://hilfe.raindancer.com/uploads/images/gallery/2024-05/scaled-1680-/zrrocmis-api.png) ](https://hilfe.raindancer.com/uploads/images/gallery/2024-05/zrrocmis-api.png) → [![ocmis_api_return.png](https://hilfe.raindancer.com/uploads/images/gallery/2024-05/scaled-1680-/LJbocmis-api-return.png)](https://hilfe.raindancer.com/uploads/images/gallery/2024-05/LJbocmis-api-return.png)</p>
5. The serial number of the Raindancer module must be saved with the irrigation machine in the Ocmis Cloud  
    [![ocmis.png](https://hilfe.raindancer.com/uploads/images/gallery/2024-06/scaled-1680-/ocmis.png)](https://hilfe.raindancer.com/uploads/images/gallery/2024-06/ocmis.png)
6. 

#### 3. Find the Serial Number of the Control Unit.[![image.png](https://help.raindancer.com/uploads/images/gallery/2024-06/scaled-1680-/7N1image.png)](https://help.raindancer.com/uploads/images/gallery/2024-06/7N1image.png)


1. Log in to the OCMIS portal
2. Copy the serial number of the irrigator

#### 4. Assigning the Control to an Irrigator


1. In the Raindancer Portal, click on **Irrigators**
2. **Edit Irrigator**
3. **Setup and Control**
4. **Control Type**: **Ocmis API**
5. API-Name: **The Name form** **1.2**
6. Device: **Copied serial number** from **3.2  
    [![image.png](https://help.raindancer.com/uploads/images/gallery/2024-06/scaled-1680-/jWtimage.png)](https://help.raindancer.com/uploads/images/gallery/2024-06/jWtimage.png)**