# Update application secret **PATCH /api/applications/{id}/secrets/{name}** Update a secret for the application by name. ## 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. - **name** (string) The name of the secret. ### Body: application/json (object) - **name** (string) The secret name to update. Must be unique within the application. ## Responses ### 200 OK #### Body: application/json (object) - **tenantId** (string) - **applicationId** (string) - **name** (string) - **value** (string) - **createdAt** (number) - **expiresAt** (number | null) ### 204 The secret was updated successfully. ### 400 Bad Request ### 401 Unauthorized ### 403 Forbidden ### 404 Not Found [Powered by Bump.sh](https://bump.sh)