# Operating Unit List - Admin

| **API URL**     | {{url}}/admin-service/operating-unit/all                                       |
| --------------- | ------------------------------------------------------------------------------ |
| **Method**      | POST                                                                           |
| **Description** | Get Operating Unit list in Operating Unit menu as Super Admin and Region Admin |

#### **Sample Input:** <a href="#operatingunitlist-admin-sampleinput" id="operatingunitlist-admin-sampleinput"></a>

{\
"limit": 10,\
"tenantId": "156"\
}

#### **Output** <a href="#operatingunitlist-admin-output" id="operatingunitlist-admin-output"></a>

| **Field Name**      | **Type** | **Comments**              |
| ------------------- | -------- | ------------------------- |
| `id(Account)`       | Integer  | 60                        |
| `name`              | String   | Hablot Manos              |
| `tenantId`          | Bigint   | 360                       |
| `id(account)`       | Integer  | 15                        |
| `name(account)`     | String   | St. Anne’s Medical center |
| `tenantId(account)` | Bigint   | 248                       |

#### **Sample Output:** <a href="#operatingunitlist-admin-sampleoutput" id="operatingunitlist-admin-sampleoutput"></a>

```
{
    "message": "Operating unit fetched successfully.",
    "entity": null,
    "status": true,
    "entityList": [
        {
            "id": 60,
            "name": "Hablot Manos",
            "tenantId": 360,
            "account": {
                "id": 15,
                "name": "St. Anne's Medical Center",
                "tenantId": 248
            }
        },
        {
            "id": 57,
            "name": "Meruu",
            "tenantId": 337,
            "account": {
                "id": 30,
                "name": "Rochec",
                "tenantId": 336
            }
        }
    ],
    "responseCode": 200,
    "totalCount": 27
}
```
