> For the complete documentation index, see [llms.txt](https://tag-api.agreefy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tag-api.agreefy.com/list-sub-departments.md).

# List Sub Departments

List department wise 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 %}
