@@ -347,7 +347,7 @@ paths:
347347 schema :
348348 $ref : " #/components/schemas/ErrorResponse"
349349
350- /apis/{id}/generate- api-key :
350+ /apis/{id}/api-keys :
351351 post :
352352 summary : Generate API key for an API
353353 description : |
@@ -402,7 +402,6 @@ paths:
402402 schema :
403403 $ref : " #/components/schemas/ErrorResponse"
404404
405- /apis/{id}/api-keys :
406405 get :
407406 summary : Get the list of API keys for an API
408407 description : |
@@ -442,13 +441,13 @@ paths:
442441
443442 /apis/{id}/api-keys/{apiKeyName}/regenerate :
444443 post :
445- summary : Rotate API key for an API
444+ summary : Regenerate API key for an API
446445 description : |
447- Rotate the given API key for the specified API. The newly rotated key can be
446+ Regenerate the given API key for the specified API. The newly generated key can be
448447 used by clients to authenticate requests to the API if API Key validation
449448 policy is applied. The key is a 32-byte random value encoded in hexadecimal
450449 and prefixed with "apip_".
451- operationId : rotateAPIKey
450+ operationId : regenerateAPIKey
452451 tags :
453452 - API Management
454453 parameters :
@@ -464,7 +463,7 @@ paths:
464463 in : path
465464 required : true
466465 description : |
467- Name of the API key to rotate
466+ Name of the API key to regenerate
468467 schema :
469468 type : string
470469 example : weather-api-key
@@ -473,10 +472,10 @@ paths:
473472 content :
474473 application/yaml :
475474 schema :
476- $ref : " #/components/schemas/APIKeyRotationRequest "
475+ $ref : " #/components/schemas/APIKeyRegenerationRequest "
477476 application/json :
478477 schema :
479- $ref : " #/components/schemas/APIKeyRotationRequest "
478+ $ref : " #/components/schemas/APIKeyRegenerationRequest "
480479 responses :
481480 ' 200 ' :
482481 description : API key rotated successfully
@@ -503,8 +502,8 @@ paths:
503502 schema :
504503 $ref : " #/components/schemas/ErrorResponse"
505504
506- /apis/{id}/revoke- api-key :
507- post :
505+ /apis/{id}/api-keys/{apiKeyName} :
506+ delete :
508507 summary : Revoke an API key
509508 description : |
510509 Revoke a previously generated API key for the specified API. Once revoked,
@@ -521,15 +520,14 @@ paths:
521520 schema :
522521 type : string
523522 example : weather-api-v1.0
524- requestBody :
525- required : true
526- content :
527- application/yaml :
528- schema :
529- $ref : " #/components/schemas/APIKeyRevocationRequest"
530- application/json :
531- schema :
532- $ref : " #/components/schemas/APIKeyRevocationRequest"
523+ - name : apiKeyName
524+ in : path
525+ required : true
526+ description : |
527+ Name of the API key to revoke
528+ schema :
529+ type : string
530+ example : weather-api-key
533531 responses :
534532 ' 200 ' :
535533 description : API key revoked successfully
@@ -2243,6 +2241,10 @@ components:
22432241 message :
22442242 type : string
22452243 example : API key generated successfully
2244+ remaining_api_key_quota :
2245+ type : integer
2246+ description : Remaining API key quota for the user
2247+ example : 9
22462248 api_key :
22472249 $ref : ' #/components/schemas/APIKey'
22482250 required :
@@ -2299,7 +2301,7 @@ components:
22992301 - created_at
23002302 - created_by
23012303 - expires_at
2302- APIKeyRotationRequest :
2304+ APIKeyRegenerationRequest :
23032305 type : object
23042306 properties :
23052307 expires_in :
@@ -2329,15 +2331,6 @@ components:
23292331 format : date-time
23302332 description : Expiration timestamp
23312333 example : " 2026-12-08T10:30:00Z"
2332- APIKeyRevocationRequest :
2333- type : object
2334- properties :
2335- api_key :
2336- type : string
2337- description : API key to be revoked
2338- example : " apip_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
2339- required :
2340- - api_key
23412334 APIKeyRevocationResponse :
23422335 type : object
23432336 properties :
0 commit comments