---
title: "Perform security updates on an application."
method: PUT
path: "/application/{id}/security"
tags: ["application"]
---

# Perform security updates on an application.

`PUT /application/{id}/security`

Requires elevated authentication.

## Path parameters

- `id` integer, required

## Request body

- SecurityUpdateAction — The SecurityUpdateAction describes the details of a requested security update.
  - `regenerateToken` boolean — Whether to regenerate the token. Your client token must be elevated to perform this action.

## Response `200`

Ok

- SecurityUpdateActionResponse — The SecurityUpdateActionResponse holds information about the response to a security update request.
  - `regenerateToken` RegenerateTokenResponse — The RegenerateTokenResponse holds information about the response to the regenerate token action.
    - `token` string, required — The new token.

## Other responses

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

---

[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)
