---
title: "Renew an application secret"
method: POST
path: "/api/v4/applications/{id}/renew-secret"
tags: ["applications"]
---

# Renew an application secret

`POST /api/v4/applications/{id}/renew-secret`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/applications/{id}/renew-secret`
- Auth: none declared

Renew the secret of a specific application

## Path parameters

- `id` integer, required

## Response `200`

Renew an application secret

- APIEntitiesApplicationWithSecret: API_Entities_ApplicationWithSecret model
  - `id` integer, required
  - `application_id` string, required
  - `application_name` string, required
  - `callback_url` string, required
  - `confidential` boolean, required
  - `scopes` unknown[], required
    - unknown
  - `secret` string, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found

---

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