---
title: "Update an application."
method: PUT
path: "/application/{id}"
tags: ["application"]
---

# Update an application.

`PUT /application/{id}`

## Path parameters

- `id` integer, required

## Request body

- ApplicationParams — Params allowed to create or update Applications.
  - `defaultPriority` integer — The default priority of messages sent by this application. Defaults to 0.
  - `description` string — The description of the application.
  - `name` string, required — The application name. This is how the application should be displayed to the user.
  - `sortKey` string — The sortKey for the application. Uses fractional indexing.

## Response `200`

Ok

- Application — The Application holds information about an app which can send notifications.
  - `createdAt` string, date-time, required — The date the application was created.
  - `defaultPriority` integer — The default priority of messages sent by this application. Defaults to 0.
  - `description` string, required — The description of the application.
  - `id` integer, required — The application id.
  - `image` string, required — The image of the application.
  - `internal` boolean, required — Whether the application is an internal application. Internal applications should not be deleted.
  - `lastUsed` string, date-time — The last time the application token was used.
  - `name` string, required — The application name. This is how the application should be displayed to the user.
  - `sortKey` string, required — The sort key of this application. Uses fractional indexing.
  - `token` string — The application token. Can be used as `appToken`. See Authentication.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/gotify/apis/gotify-rest-api.md) · [All operations](https://skmtc.net/gotify/apis/gotify-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gotify/gotify-rest-api/revisions/7b32fcdb1345/schema)
