# Update hook **PATCH /api/hooks/{id}** Update hook 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 hook. ### Body: application/json (object) - **tenantId** (string) - **name** (string) The updated name of the hook. - **event** (string | null) Use `events` instead. - **events** (array[string]) An array of updated hook events. - **config** (object) - **enabled** (boolean) - **createdAt** (number) ## Responses ### 200 The hook was updated successfully. #### Body: application/json (object) - **tenantId** (string) - **id** (string) - **name** (string) - **event** (string | null) - **events** (array[string]) - **config** (object) - **signingKey** (string) - **enabled** (boolean) - **createdAt** (number) ### 400 Bad Request ### 401 Unauthorized ### 403 Forbidden ### 404 Not Found [Powered by Bump.sh](https://bump.sh)