# Update application **PATCH /api/applications/{id}** Update application details by ID with the given data. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters ### Path parameters - **id** (string) The unique identifier of the application. ### Body: application/json (object) - **name** (string) - **description** (string | null) - **oidcClientMetadata** (object) - **customClientMetadata** (object) - **customData** (object) arbitrary - **protectedAppMetadata** (object) - **isAdmin** (boolean) Whether the application has admin access. User can enable the admin access for Machine-to-Machine apps. ## Responses ### 200 The application was updated successfully. #### Body: application/json (object) - **tenantId** (string) - **id** (string) - **name** (string) - **secret** (string) The internal client secret. Note it is only used for internal validation, and the actual secrets should be retrieved from `/api/applications/{id}/secrets` endpoints. - **description** (string | null) - **type** (string) - **oidcClientMetadata** (object) - **customClientMetadata** (object) - **protectedAppMetadata** (object | null) - **customData** (object) arbitrary - **isThirdParty** (boolean) - **createdAt** (number) ### 400 Bad Request ### 401 Unauthorized ### 403 Forbidden ### 404 The application with the specified ID was not found. ### 422 Validation error. Please check the request body. ### 500 Internal server error. [Powered by Bump.sh](https://bump.sh)