Skip to Content

rotateCurrentApiKey()

rotateCurrentApiKey(_input): Promise<Response<{ api?: { links?: Record<string, { href: string; }>; redactions?: object[]; }; client: | { device: string | null; id: "modem-cli"; } | null; createdAt: string; expiresAt: string | null; id: string; lastUsedAt: string | null; modes: ("live" | "sandbox")[]; name: string; object: "admin_api_key"; permissions: ( | "full" | "read" | "projects:write" | "projects:read" | "products:write" | "products:read" | "accounts:write" | "accounts:read" | "customers:write" | "customers:read" | "logs:read" | "backups:write" | "backups:read" | "secrets-integrations:write" | "secrets-integrations:read" | "subscription-sign-ins:write" | "subscription-sign-ins:read" | "starred-items:write" | "starred-items:read" | "api-keys:write" | "api-keys:read")[]; previousSecretExpiresAt: string | null; projects: string[] | "all"; rotatedAt: string | null; secret: string; secretPreview: string; }>>;

Parameters

_input

previousSecretExpiresIn?

"now" | "1h" | "24h" | "7d" = ...

Last updated on