---
title: "PUT /financialYear/id/{id}"
method: PUT
path: "/financialYear/id/{id}"
tags: ["financialYear"]
---

# PUT /financialYear/id/{id}

`PUT /financialYear/id/{id}`

## Request

- Base URL: `https://www.weclapp.com/api/nullapi/v2`
- URL: `https://www.weclapp.com/api/nullapi/v2/financialYear/id/{id}`
- Auth: API key in header `AuthenticationToken`
- TypeScript: <https://skmtc.dev/weclapp/apis/weclapp-api/docs/financialYear/id/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

update financialYear

## Path parameters

- `id` string, required

## Query parameters

- `dryRun` boolean

## Request body

- FinancialYear
  - `id` string
  - `version` string
  - `createdDate` integer
  - `lastModifiedDate` integer
  - `name` string, required
  - `periods` Period[]
    - `id` string
    - `version` string
    - `createdDate` integer
    - `financialYearId` string, required
    - `lastModifiedDate` integer
    - `name` string, required
    - `open` boolean
    - `periodNumber` integer, required
    - `validFrom` integer
    - `validTo` integer
  - `status` 'CLOSED' | 'CURRENT' | 'PLANNED' | 'PRELIMINARY_CLOSED', required
  - `validFrom` integer
  - `validTo` integer

## Response `200`

financialYear update response

- FinancialYear
  - `id` string
  - `version` string
  - `createdDate` integer
  - `lastModifiedDate` integer
  - `name` string, required
  - `periods` Period[]
    - `id` string
    - `version` string
    - `createdDate` integer
    - `financialYearId` string, required
    - `lastModifiedDate` integer
    - `name` string, required
    - `open` boolean
    - `periodNumber` integer, required
    - `validFrom` integer
    - `validTo` integer
  - `status` 'CLOSED' | 'CURRENT' | 'PLANNED' | 'PRELIMINARY_CLOSED', required
  - `validFrom` integer
  - `validTo` integer

## Other responses

- `default`: error response

## Changes

- **2026-11-07** `0e021229755d`: 1 info
  - added the new optional `query` request parameter `dryRun`
- **2022-12-03** `cc274ef79dfd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/weclapp/apis/weclapp-api/changes/financialYear/id/:id/put.md)

---

[API](https://skmtc.dev/weclapp/apis/weclapp-api.md) - [All operations](https://skmtc.dev/weclapp/apis/weclapp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/weclapp/apis/weclapp-api/revisions/0e021229755d?raw)
