AdminUpdateApiKeyDTO
Package: @nauth-toolkit/core
Type: DTO (Request)
Administrative update of a user's API key (label and IP allowlist).
- NestJS
- Express
- Fastify
import { AdminUpdateApiKeyDTO } from '@nauth-toolkit/nestjs';
import { AdminUpdateApiKeyDTO } from '@nauth-toolkit/core';
import { AdminUpdateApiKeyDTO } from '@nauth-toolkit/core';
Properties
| Property | Type | Required | Description with validation inline |
|---|---|---|---|
sub | string | Yes | Target user sub (UUID v4). |
keyId | string | Yes | External key identifier (UUID v4). |
name | string | No | New label. |
allowedIps | string[] | No | Replacement allowlist (empty clears restrictions). |
Example
{
"sub": "550e8400-...",
"keyId": "660e8400-...",
"allowedIps": ["203.0.113.5"]
}