Skip to content

Commit ae7d96e

Browse files
Update docs
1 parent a21d60f commit ae7d96e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/gateway/policies/apikey-authentication.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ Update an existing API key with a new externally provided API key value and opti
487487
|-------|------|----------|-------------|
488488
| `displayName` | string | No | Display name for the API key |
489489
| `api_key` | string | Yes | The new API key value to set. Must meet minimum length requirements and can be any format (not restricted to platform-generated format) |
490-
| `expires_at` | string (ISO 8601) | No | Specific expiration timestamp for the API key. If both `expires_in` and `expires_at` are provided, `expires_at` takes precedence |
491-
| `expires_in` | object | No | Relative expiration time from now. If not provided, keeps the existing expiration |
490+
| `expires_at` | string (ISO 8601) | No | Specific expiration timestamp. If both `expires_at` and `expires_in` are provided, `expires_at` takes precedence. Omitting both `expires_at` and `expires_in` clears the key's expiration (no expiry). |
491+
| `expires_in` | object | No | Relative expiration time from now. Omitting both `expires_at` and `expires_in` removes the API key's expiration (UpdateAPIKey clears expiry when `request.ExpiresAt` and `request.ExpiresIn` are both nil). |
492492
| `expires_in.duration` | integer | Yes (if expiresIn used) | Duration value |
493493
| `expires_in.unit` | string | Yes (if expiresIn used) | Time unit: `seconds`, `minutes`, `hours`, `days`, `weeks`, `months` |
494494

0 commit comments

Comments
 (0)