---
title: "Update an existing app by ID"
method: PUT
path: "/api/v1/apps/{id}"
tags: ["Apps"]
---

# Update an existing app by ID

`PUT /api/v1/apps/{id}`

Required scope - write_app

## Path parameters

- `id` number, required

## Request body

- PutAppReq
  - `redirectUris` string[]
  - `name` string
  - `isActive` boolean
  - `scopes` string[]

## Response `200`

- object
  - `app` AppDetail
    - `id` number
    - `clientId` string
    - `name` string
    - `isActive` boolean
    - `type` 'spa' | 's2s'
    - `secret` string
    - `redirectUris` string[]
    - `createdAt` string
    - `updatedAt` string
    - `deletedAt` string, nullable
    - `scopes` string[]

## Changes

- **2024-08-11** `11e2773b3a1e` — 15 breaking, 5 warning, 1 info
  - the response property `app/allOf[#/components/schemas/App]/clientId` became optional for the status `200`
  - the response property `app/allOf[#/components/schemas/App]/createdAt` became optional for the status `200`
  - the response property `app/allOf[#/components/schemas/App]/deletedAt` became optional for the status `200`
  - the response property `app/allOf[#/components/schemas/App]/id` became optional for the status `200`
  - …17 more

[Change history](https://skmtc.dev/valuemelody/apis/melody-auth-s2s-api/changes/api/v1/apps/:id/put.md)

---

[API](https://skmtc.dev/valuemelody/apis/melody-auth-s2s-api.md) · [All operations](https://skmtc.dev/valuemelody/apis/melody-auth-s2s-api/llms.txt) · [OpenAPI document](https://skmtc.dev/valuemelody/apis/melody-auth-s2s-api/revisions/ffd604cd7944?raw)
