---
title: "Update division"
method: PATCH
path: "/corporate/v2/divisions/{divisionCode}"
tags: ["Divisions"]
---

# Update division

`PATCH /corporate/v2/divisions/{divisionCode}`

Updates a division. Only provided fields are updated. Other fields are left unchanged.

This endpoint generates a [Corporate division updated](https://developers.pismo.io/events/docs/corporate-division-change-2) event.

## Path parameters

- `divisionCode` string, required

## Request body

- PatchDivisionRequestV2 — Patch division request body
  - `division_code` string — Code used to identify your division within the organization. Division code should only contain letters, numbers, and hyphens.
  - `hierarchy_id` string, uuid — Hierarchy ID generated by the [Create hierarchy](https://developers.pismo.io/pismo-docs/reference/post-hierarchies) endpoint.
  - `level_id` string, uuid — Level ID generated by the [Create hierarchy](https://developers.pismo.io/pismo-docs/reference/post-hierarchies) endpoint.
  - `administrative_division_id` integer — Administrative division ID. Specifying an administrative division ID in this field links your division to it. This is useful when you want to use the holidays defined in that administrative division.
  - `name` string — Division name
  - `parent_code` string — Division code that can be set as the parent of the division being created. The parent must be at a level with a lower index than the division being created. It must comply with the rule `^[a-zA-Z0-9-]+$`.
  - `description` string, nullable — Division description
  - `timezone` string — Division timezone in timezone database format.<br> This value is used in the calculations for holidays, weekends, and daily balances. If a timezone is not specified, the division inherits the timezone from its parent division. If the parent division also lacks a specified timezone, Pismo defaults to using UTC. To clear this field, specify an empty string.
  - `program_ids` integer[] — List of allowed program IDs. The programs must belong to the organization. This list is used for validation during the [Create transaction banking account](https://developers.pismo.io/pismo-docs/reference/post-account) process. You can retrieve the organization programs using the [List programs](https://developers.pismo.io/pismo-docs/reference/programs-1) endpoint. If no program IDs are specified, this division inherits the `program_ids` list from the parent division, if it exists.
  - `schema` SchemaCreateTransactionBankingAccount — Valid JSON schema as specified in https://json-schema.org/specification.html. Used to validate the JSON of custom fields in the [Create transaction banking account](https://developers.pismo.io/pismo-docs/reference/post-account) process. If this field is not set, the division inherits its schema from the parent division, if it exists.

## Response `204`

No Content

## Other responses

- `400` — Bad Request
- `401` — Access token is missing or invalid
- `403` — The request has been lost
- `404` — Not Found
- `500` — Internal server error

---

[API](https://skmtc.dev/pismo/apis/platform-authentication.md) · [All operations](https://skmtc.dev/pismo/apis/platform-authentication/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pismo/platform-authentication/revisions/935b62e16de4/schema)
