---
title: "Update a Department"
method: PATCH
path: "/v1/department/{departmentId}"
tags: ["Departments"]
---

# Update a Department

`PATCH /v1/department/{departmentId}`

Updates an existing department record.

## Path parameters

- `departmentId` string, required

## Headers

- `RequestId` string, uuid — The unique request identifier used to correlate request data with log entries and events, formatted as a UUID.
- `FrontOfficeTenantId` integer
- `Tenant` string

## Request body

- object[]
  - `op` 'replace' — The operation to perform. Only 'replace' is supported.
  - `path` '/name' | '/officeId' | '/statusId' | '/address/street1' | '/address/street2' | '/address/city' | '/address/state_Province' | '/address/postalCode' | '/address/country' | '/departmentPhone' | '/defaultJobOwnerIDs' | '/weekendDay' | '/payPeriod' | '/payCycle' | '/billingPeriod' | '/billingCycle' — A JSON Pointer indicating the department field to update.
  - `value` unknown

## Response `200`

The updated department record.

- Department
  - `companyExternalId` string, nullable — The unique system-defined identifier for the Company.
  - `companyGuid` string, uuid, nullable — The Back Office unique identifier for the Company, formatted as a UUID.
  - `departmentExternalId` string, nullable — The unique system-defined identifier for the Company Department.
  - `departmentGuid` string, uuid, nullable — The Back Office unique identifier for the Department, formatted as a UUID.
  - `departmentName` string — The name of the company department.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Access Denied
- `404` — Not found
- `405` — Unsupported method
- `406` — Unsupported format(s) indicated by Accept header
- `415` — Unsupported format(s) indicated by the Content-Type header
- `429` — Too many requests
- `500` — An unexpected error occurred
- `502` — Service Unavailable
- `504` — Gateway Timeout

---

[API](https://skmtc.net/avionte/apis/aviont-partner-authorization-api.md) · [All operations](https://skmtc.net/avionte/apis/aviont-partner-authorization-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/avionte/aviont-partner-authorization-api/versions/846b33e4e71b/schema)
