SDKs
Update an api key
package com.example.myapp; @RestController public class APIController { private static IKeyService keyService = new KeyService(); @PutMapping("/update") public ResponseEntity<String> updateKey( @RequestParam String keyId, @RequestBody Map<String, Object> keyUpdateRequest, @RequestHeader("Authorization") String authToken ) { // Delegate the creation of the key to the KeyService return keyService.updateKey(keyUpdateRequest, authToken, keyId); } }
Was this page helpful?