---
title: "Create Department Assignment"
method: POST
path: "/v2/company/{company_id}/users/{user_id}/department_assignments"
tags: ["User Assignments"]
---

# Create Department Assignment

`POST /v2/company/{company_id}/users/{user_id}/department_assignments`

## Path parameters

- `company_id` integer, required
- `user_id` integer, required

## Headers

- `x-api-version` string — An API version
- `x-company-guid` string, uuid

## Request body

- object
  - `department_id` integer, required — Department ID for user assignment
  - `appear_on_schedule` boolean — Display the employee on the schedule for this department

## Response `201`

Created

- object
  - `object` 'department_assignments', required
  - `data` object, required
    - `department_id` integer, required — Department ID
    - `location_id` integer, required — Location ID
    - `name` string, required — Department Name
    - `appear_on_schedule` boolean — Display the employee on the schedule for this department

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Server Error

---

[API](https://skmtc.net/7shifts/apis/7shifts-api.md) · [All operations](https://skmtc.net/7shifts/apis/7shifts-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/7shifts/7shifts-api/revisions/96a02ef888ab/schema)
