# Update JWT customizer **PATCH /api/configs/jwt-customizer/{tokenTypePath}** Update the JWT customizer for the given token type. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters ### Path parameters - **tokenTypePath** (string) The token type to update a JWT customizer for. ### Body: application/json (object) - **script** () The script of the JWT customizer. - **environmentVariables** () The environment variables for the JWT customizer. - **contextSample** () The sample context for the JWT customizer script testing purpose. - **tokenSample** () The sample raw token payload for the JWT customizer script testing purpose. ## Responses ### 200 The updated JWT customizer. #### Body: application/json (object) - **script** (string) - **environmentVariables** (object) - **contextSample** (object) - **tokenSample** (object) ### 400 The request body is invalid. ### 401 Unauthorized ### 403 Forbidden ### 404 Not Found [Powered by Bump.sh](https://bump.sh)