# Change an app you registered

> Page: https://docs.plotwork.dev/api/patch-user-apps-registered-id. Index of every page: https://docs.plotwork.dev/llms.txt

Changes the name, homepage or redirect addresses.

`PATCH /user/apps/registered/{id}`

## TL;DR

| Question | Answer |
|---|---|
| What does it do? | Change an app you registered. |
| What does it take? | A JSON body of type [`AppChangeBody`](https://docs.plotwork.dev/api/schemas.md#appchangebody). |
| What does it return? | Status 200 with a body of type [`RegisteredApp`](https://docs.plotwork.dev/api/schemas.md#registeredapp). |
| What can go wrong? | `400` the body is not valid; `401` not signed in; `403` the request came from an origin that may not make changes; `404` no such app of yours; `422` a redirect address or the homepage breaks the rules (apps.invalid); `429` too many requests. Every failure uses the one error envelope. |

## What it does

Changes the name, homepage or redirect addresses. An address taken off stops working at the next sign-in.

## Path parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | `string` | yes |  |

## Request body

The body has the type [`AppChangeBody`](https://docs.plotwork.dev/api/schemas.md#appchangebody).

| Field | Type | Required | Description |
|---|---|---|---|
| `name` | `string` | no | at least 3 characters; at most 60 characters. |
| `homepage` | `string \| null` | no | at most 2048 characters. |
| `redirectUris` | `string[]` | no | One to ten addresses a code may be sent to, matched exactly: https, or http on localhost, 127.0.0.1 or [::1] with any port. |

## Responses

| Status | Meaning | Body |
|---|---|---|
| 200 | The app as it is now. | [`RegisteredApp`](https://docs.plotwork.dev/api/schemas.md#registeredapp) |
| 400 | The body is not valid. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 401 | Not signed in. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 403 | The request came from an origin that may not make changes. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 404 | No such app of yours. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 422 | A redirect address or the homepage breaks the rules (apps.invalid). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 429 | Too many requests. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |

## Response body

A 200 answer has the type [`RegisteredApp`](https://docs.plotwork.dev/api/schemas.md#registeredapp).

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | `string` | yes | The app's id, which is its OAuth client_id. |
| `name` | `string` | yes | Shown to people as a claim on the consent page. |
| `homepage` | `string \| null` | yes |  |
| `clientType` | `"confidential" \| "public"` | yes | confidential holds a client secret on its server; public (a page or a tool with no server) holds none. |
| `redirectUris` | `string[]` | yes |  |
| `membersOnly` | `boolean` | yes | For an organisation's app: only its members may connect it, to the organisation. |
| `hasSecret` | `boolean` | yes |  |
| `createdAt` | `integer` | yes | Milliseconds since the epoch. |
| `updatedAt` | `integer` | yes | Milliseconds since the epoch. |

## See also

| Doc | Why |
|---|---|
| [API reference](https://docs.plotwork.dev/api/reference.md) | Every endpoint, and the error envelope |
| [Schemas](https://docs.plotwork.dev/api/schemas.md) | Every request and response type |
| [Tool reference](https://docs.plotwork.dev/mcp/tools.md) | The operations as callable tools |
