---
title: "Patch Weekend Leave Form"
method: PATCH
path: "/WeekendLeave/Forms/{Id}"
tags: ["Weekendleave"]
---

# Patch Weekend Leave Form

`PATCH /WeekendLeave/Forms/{Id}`

**Requires permissions:** *Guardian* or *Parent*

Updates an existing Weekend Leave Form entity.

## Path parameters

- `id` string, required

## Query parameters

- `page` integer, required
- `pageSize` integer, required
- `includes` string[], nullable
- `sort` string, nullable
- `filter` string, nullable

## Request body

- PatchWeekendLeaveFormRequest
  - `form` WeekendLeaveForm
    - `id` integer
    - `parentUpi` string, guid, nullable
    - `parentNameId` integer, nullable
    - `studentUpi` string, guid, nullable
    - `studentNameId` integer, nullable
    - `option` WeekendLeaveOption
      - `id` integer
      - `value` string, nullable
      - `requiresDescription` boolean
      - `requiresAddress` boolean
    - `description` string, nullable
    - `addressContactUpi` string, guid, nullable
    - `date` WeekendLeaveDate
      - `id` integer
      - `weekendId` integer
      - `title` string, nullable
      - `start` string, date-time, nullable
      - `end` string, date-time, nullable
      - `description` string, nullable
      - `day` WeekendLeaveDay
        - `id` integer
        - `value` string, nullable
      - `archiveOn` string, date-time, nullable
      - `parentClose` string, date-time, nullable
      - `showFrom` string, date-time, nullable
      - `archived` boolean, nullable
      - `options` WeekendLeaveDateOption[]
        - `id` integer
        - `dateId` integer
        - `option` WeekendLeaveOption
          - `id` integer
          - `value` string, nullable
          - `requiresDescription` boolean
          - `requiresAddress` boolean
    - `archived` boolean, nullable
    - `submitted` string, date-time, nullable

## Response `200`

Success - Created Weekend Leave Form

- PatchWeekendLeaveFormResponse
  - `meta` Meta
    - `page` integer
    - `pageSize` integer
    - `total` integer
  - `form` WeekendLeaveForm
    - `id` integer
    - `parentUpi` string, guid, nullable
    - `parentNameId` integer, nullable
    - `studentUpi` string, guid, nullable
    - `studentNameId` integer, nullable
    - `option` WeekendLeaveOption
      - `id` integer
      - `value` string, nullable
      - `requiresDescription` boolean
      - `requiresAddress` boolean
    - `description` string, nullable
    - `addressContactUpi` string, guid, nullable
    - `date` WeekendLeaveDate
      - `id` integer
      - `weekendId` integer
      - `title` string, nullable
      - `start` string, date-time, nullable
      - `end` string, date-time, nullable
      - `description` string, nullable
      - `day` WeekendLeaveDay
        - `id` integer
        - `value` string, nullable
      - `archiveOn` string, date-time, nullable
      - `parentClose` string, date-time, nullable
      - `showFrom` string, date-time, nullable
      - `archived` boolean, nullable
      - `options` WeekendLeaveDateOption[]
        - `id` integer
        - `dateId` integer
        - `option` WeekendLeaveOption
          - `id` integer
          - `value` string, nullable
          - `requiresDescription` boolean
          - `requiresAddress` boolean
    - `archived` boolean, nullable
    - `submitted` string, date-time, nullable

## Other responses

- `400` — An Error Occurred - Could not create Weekend Leave Form
- `401` — Unauthorized
- `403` — An Error Occurred - User does not have permission
- `404` — An Error Occurred - Could not find Weekend Leave Form

---

[API](https://skmtc.net/tonbridge/apis/tonbridge-app-api.md) · [All operations](https://skmtc.net/tonbridge/apis/tonbridge-app-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tonbridge/tonbridge-app-api/versions/fab57bf5558a/schema)
