# Create and manage departments

> Manage departments in Rippling using the Organizational Data API.

## Overview

Departments are key organizational components within a company, typically comprised of groups of workers who specialize in different areas of expertise or responsibility. Departments serve as integral organizational attributes in Rippling, as they enable you to assign apps, administrative access, and more by parent department (or sub-department, nested under a parent department).

Departments are most commonly used in [Supergroups](https://help.rippling.com/article?articleId=945615220635), tying an employee's assigned department to common automations such as:

-   **Third-party app access**: Assign a third-party app account to only a specific department.
-   **Documents and onboarding**: Require that all members of a department are required to sign specific documents.
-   **Device management**: Order a specific device for one department only.
-   **RPass**: Share credentials with specific departments.

### Available endpoints

| Endpoint | Description |
| --- | --- |
| [GET List departments](https://developer.rippling.com/documentation/rest-api/reference/list-departments) | Lists existing departments. |
| [POST Create a new department](https://developer.rippling.com/documentation/rest-api/reference/create-departments) | Creates a new department. `name` is required. |
| [GET Retrieve a specific department](https://developer.rippling.com/documentation/rest-api/reference/get-departments) | Retrieves a specific department by `id`. |
| [PATCH Update a department](https://developer.rippling.com/documentation/rest-api/reference/update-departments) | Updates a department. |

* * *

## Requirements

-   The Rippling API SKU
-   An API token with the following scopes:
    -   `departments.read` to fetch departments
    -   `departments.read-write` to create or update departments

* * *

## Fetch

Use [GET List departments](https://developer.rippling.com/documentation/rest-api/reference/list-departments) to return a paginated list of existing departments.

_Request:_

```json
curl -L -X GET 'https://rest.ripplingapis.com/departments/'
-H 'Accept: application/json'
-H 'Authorization: Bearer REDACTED'
```

_Response:_

```json
{
  "results": [
    {
      "id": "65699295fb7bc7c3510f4075",
      "created_at": "2023-12-01T08:00:21.551000+00:00",
      "updated_at": "2025-04-20T13:50:50.632000+00:00",
      "name": "Sales",
      "parent_id": null,
      "parent": null,
      "reference_code": "10f4075",
      "department_hierarchy_id": [
        "65699295fb7bc7c3510f4075"
      ],
      "department_hierarchy": null
    },
    {
      "id": "65699295fb7bc7c3510f407f",
      "created_at": "2023-12-01T08:00:21.744000+00:00",
      "updated_at": "2025-04-20T13:50:50.674000+00:00",
      "name": "SMB",
      "parent_id": "65699295fb7bc7c3510f4075",
      "parent": null,
      "reference_code": "10f407f",
      "department_hierarchy_id": [
        "65699295fb7bc7c3510f4075",
        "65699295fb7bc7c3510f407f"
      ],
      "department_hierarchy": null
    },
  ],
}
```

| Response field | Description |
| --- | --- |
| `id` | Department identifier. |
| `created_at` | When the department was created. |
| `updated_at` | When the department was last updated. |
| `name` | The name of the department. |
| `parent_id` | Identifier of the parent department. Null when the department has no parent. |
| `parent` | The parent department. Returned only when you pass `expand=parent`. |
| `parent.id` | Identifier of the parent department. |
| `parent.name` | Name of the parent department. |
| `parent.parent_id` | Identifier of the parent department's parent. |
| `parent.reference_code` | Reference code of the parent department. |
| `reference_code` | Reference code of the department. |
| `department_hierarchy_id` | Department identifiers in the hierarchy, ordered from the top parent to this department. |
| `department_hierarchy` | Departments in that same hierarchy. Returned only when you pass `expand=department_hierarchy`. Each item has the same fields as a department. |

Use [GET Retrieve a specific department](https://developer.rippling.com/documentation/rest-api/reference/get-departments) when you already have the department `id`.

* * *

## Create

Use [POST Create a new department](https://developer.rippling.com/documentation/rest-api/reference/create-departments) to create a new department. `name` is required, and include a `parent_id` when creating a sub-department that will be nested within a parent department.

_Request:_

```json
curl -L -X POST 'https://rest.ripplingapis.com/departments/'
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer REDACTED'
```

_Request body:_

```json
{
  "name": "Customer Success Manager",
  "parent_id": "65699297fb7bc7c3510f40d3",
  "reference_code": "1234"
}
```

| Request body fields | Required | Description |
| --- | --- | --- |
| `name` | Yes | The name of the department. |
| `parent_id` | No | Identifier of the parent department. Omit or send as null to create a top-level department. |
| `reference_code` | No | Reference code of the department. |

_Response:_

```json
{
  "id": "6acd50892241b780fb7ac055",
  "created_at": "2026-10-12T21:26:33.384000+00:00",
  "updated_at": "2026-10-12T21:26:33.389000+00:00",
  "name": "Customer Success Manager",
  "parent_id": "65699297fb7bc7c3510f40d3",
  "parent": null,
  "reference_code": "1234",
  "department_hierarchy_id": [
    "65699297fb7bc7c3510f40c5",
    "65699297fb7bc7c3510f40d3",
    "6acd50892241b780fb7ac055"
  ],
  "department_hierarchy": null
}
```

* * *

## Update

Use [PATCH Update a department](https://developer.rippling.com/documentation/rest-api/reference/update-departments) to update an existing department.

_Request:_

```json
curl -L -X PATCH 'hhttps://rest.ripplingapis.com/departments/6acd50892241b780fb7ac055/'
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer REDACTED'
```

_Request body:_

```json
{
  "name": "CSM",
  "parent_id": "65699297fb7bc7c3510f40d3",
  "reference_code": "1234"
}
```

_Response:_

```json
{
  "id": "6acd50892241b780fb7ac055",
  "created_at": "2026-10-12T21:26:33.384000+00:00",
  "updated_at": "2026-10-12T21:26:33.389000+00:00",
  "name": "CSM",
  "parent_id": "65699297fb7bc7c3510f40d3",
  "parent": null,
  "reference_code": "1234",
  "department_hierarchy_id": [
    "65699297fb7bc7c3510f40c5",
    "65699297fb7bc7c3510f40d3",
    "6acd50892241b780fb7ac055"
  ],
  "department_hierarchy": null
}
```

* * *

## See also

-   [Get started with the Organizational Data API](https://developer.rippling.com/documentation/rest-api/guides/org-data-getting-started)
-   [Introduction to Departments](https://help.rippling.com/article?articleId=1500002734321)
-   [API tokens and permissions](https://developer.rippling.com/documentation/rest-api/essentials/api-tokens)

Source: https://developer.rippling.com/documentation/rest-api/guides/departments

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
