---
title: "Update client version fields | Aggiorna i campi di versione del client"
method: PATCH
path: "/auth/client"
tags: ["Auth"]
---

# Update client version fields | Aggiorna i campi di versione del client

`PATCH /auth/client`

## Request

- Base URL: `https://app.didattica.polito.it/api`
- URL: `https://app.didattica.polito.it/api/auth/client`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/polito/apis/polito-students-api/docs/auth/client/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- AppInfoRequest
  - `buildNumber` string
  - `appVersion` string
  - `fcmRegistrationToken` string

## Response `200`

The request has succeeded.

- object
  - `data` UpdateInfo, required
    - `suggestUpdate` boolean, required

## Other responses

- `400`: The server could not understand the request due to invalid syntax.
- `500`: Server error

---

[API](https://skmtc.dev/polito/apis/polito-students-api.md) - [All operations](https://skmtc.dev/polito/apis/polito-students-api/llms.txt) - [OpenAPI document](https://skmtc.dev/polito/apis/polito-students-api/revisions/9d87728aaa56?raw)
