# Create or update JWT customizer **PUT /api/configs/jwt-customizer/{tokenTypePath}** Create or update a 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 create a JWT customizer for. ## Body parameters Content-type: application/json - **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 Parameters: application/json (object) - **script** (string) - **environmentVariables** (object) - **contextSample** (object) - **tokenSample** (object) ### 201: The created JWT customizer. #### Body Parameters: application/json (object) - **script** (string) - **environmentVariables** (object) - **contextSample** (object) - **tokenSample** (object) ### 400: The request body is invalid. ### 401: Unauthorized ### 403: Permission denied. [Powered by Bump.sh](https://bump.sh)