# Update Custom-Code external user source Update an external user source. A valid environment token is required to call this endpoint. Endpoint: PUT /resources/user-sources/v1/external/custom-code/{id} Security: bearer ## Path parameters: - `id` (string, required) ## Request fields (application/json): - `name` (string) The user source name - `configuration` (object) User source configuration - `configuration.syncOnLogin` (boolean, required) Whether to sync user profile attributes on each login - `configuration.isMigrated` (boolean, required) Whether to migrate the users - `configuration.codePayload` (string, required) - `configuration.getUserCodePayload` (string) - `configuration.tenantConfig` (any, required) - `index` (number) The user source index - `description` (string) The user source description ## Response 200 fields