# Edit a department or team

## Overview

[Video: Edit a department or team](https://www.youtube.com/watch?v=Z7KQmm94NT4)

This flow describes how to change the name, the type or the description of a [department](https://docs.ohc.network/concepts/facility/department.md) or a team.

## Pre-requisites

* You have a role in a department of the facility, or in its root department, "Administration". The facility then shows on the **Facilities** tab of your dashboard.
* The department is not "Administration". Care does not let you edit it.
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can View Facility Organizations | Shows the departments of the facility, so that you can find the department. Hold it in any department of the facility, or in "Administration". Without it, Care shows no departments. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse and Volunteer roles hold it. |
| Can Manage Facility Organizations | Shows the **Edit** icon and lets you save the changes. Hold it in that department, a department above it, or "Administration". By default, the Facility Admin and Administrator roles hold it. |

## Steps

### 1. Find the department

On your dashboard, select the **Facilities** tab. Then select the facility.

In the facility sidebar, select **Settings**. Then select **Departments** in the settings sidebar.

* For a top-level department, find its row in the list on the **Departments/Teams** page.
* For a sub-department, select the row of its parent department. Care opens the **Departments/Teams** tab of the parent, with its sub-departments.
* To go further down the tree, select the row of the next department.
* On a narrow screen, each department shows as a card. Select **See Details** to open it.
* To filter the departments at this level by name, type in **Search by department/team name**.

![The Care screen at the step: Find the department](/assets/images/update-department-1-b69350fab3ecf2fcc5f5acadb8a60fd4.webp)

### 2. Open the Edit form

In the row of the department, select the **Edit** icon in the **Actions** column.

On a narrow screen, select **Edit** on the card of the department.

Care opens the **Edit Department/Team** form.

If you do not see **Edit**, your roles in the facility do not have "Can Manage Facility Organizations".

![The Care screen at the step: Open the Edit form](/assets/images/update-department-2-acd8ada948b72476293da7e17c4148f4.webp)

### 3. Change the details

| Components | What it captures |
| - | - |
| **Name** | The name of the department or team. Required. |
| **Type** | Select **Department** or **Team**. You can change a department into a team, or a team into a department. |
| **Description** | A short description of the department. Optional. |

If you leave **Name** empty, or enter only spaces, Care shows **This field is required**.

Note: You cannot move the department to another parent department.

![The Care screen at the step: Change the details](/assets/images/update-department-3-1248b8740db5fa1879c708f9848e9ac5.webp)

### 4. Save the changes

Select **Update Organization**. You can select it only after you change a field and the form is valid.

Care shows **Organizations updated successfully**.

To close the form without saving, select **Cancel**.

Care saves only if your roles have "Can Manage Facility Organizations" in that department, a department above it, or "Administration". If not, Care shows "User does not have the required permissions to update organization".

![The Care screen at the step: Save the changes](/assets/images/update-department-4-3ff3fd741faafbb3b0563700071f96a3.webp)

## Expected Outcome

* Care saves the new name, type and description, and shows **Organizations updated successfully**.
* The department stays under the same parent department.

## Related

Concepts:

* [Department](https://docs.ohc.network/concepts/facility/department.md)
* [Facility organization](https://docs.ohc.network/concepts/access-governance/facility-organization.md)

Flows:

* [Create a department or team](https://docs.ohc.network/flows/facility/department/create-department.md)
* [Delete a department or team](https://docs.ohc.network/flows/facility/department/delete-department.md)
* [Add users to a department](https://docs.ohc.network/flows/facility/department/add-users-to-department.md)
