# List Sub Departments

## Get department wise sub departments

<mark style="color:blue;">`GET`</mark> `https://<baseurl>/v1/organization/subdepartments/@clientUUID/@departmentUUID`

#### Path Parameters

| Name           | Type   | Description     |
| -------------- | ------ | --------------- |
| clientUUID     | string | Client UUID     |
| departmentUUID | string | Department UUID |

#### Headers

| Name           | Type   | Description          |
| -------------- | ------ | -------------------- |
| Authentication | string | Authentication token |

{% tabs %}
{% tab title="200 success" %}

```
#########################################################################
## success
#########################################################################

{
    "message": "success",
    "status": 200,
    "subdepartments": [
        {
            "id": 2,
            "subDepartmentName": "SB0002",
            "subDepartmentCode": "sb44",
            "defaultSubDepartment": 1,
            "departmentName": "Information Technology",
            "departmentCode": "dp1"
        }
    ]
}

#########################################################################
## Error:No data found
#########################################################################

{
	"message": "error",
	"status": 400,
	"description": "No data found"
}
```

{% endtab %}
{% endtabs %}
