From 7b6e106606fddd4aeb6039db6ac1b72518f5118e Mon Sep 17 00:00:00 2001 From: Dakota Walsh <101994734+dakota-portainer@users.noreply.github.com> Date: Fri, 19 Jan 2024 13:16:56 +1300 Subject: [PATCH] fix(docs): add APIKey Digest example EE-6199 (#10980) --- api/portainer.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/portainer.go b/api/portainer.go index 628a8b7df..a4187ea84 100644 --- a/api/portainer.go +++ b/api/portainer.go @@ -905,10 +905,10 @@ type ( ID APIKeyID `json:"id" example:"1"` UserID UserID `json:"userId" example:"1"` Description string `json:"description" example:"portainer-api-key"` - Prefix string `json:"prefix"` // API key identifier (7 char prefix) - DateCreated int64 `json:"dateCreated"` // Unix timestamp (UTC) when the API key was created - LastUsed int64 `json:"lastUsed"` // Unix timestamp (UTC) when the API key was last used - Digest string `json:"digest,omitempty"` // Digest represents SHA256 hash of the raw API key + Prefix string `json:"prefix"` // API key identifier (7 char prefix) + DateCreated int64 `json:"dateCreated"` // Unix timestamp (UTC) when the API key was created + LastUsed int64 `json:"lastUsed"` // Unix timestamp (UTC) when the API key was last used + Digest string `json:"digest,omitempty" example:"b8GuHNH/ZNZ+44Ivkm4sDadzrz7MuiCCeKnvpE14jaw="` // Digest represents SHA256 hash of the raw API key } // Schedule represents a scheduled job.