AkamaiOPEN-edgegrid-golang icon indicating copy to clipboard operation
AkamaiOPEN-edgegrid-golang copied to clipboard

DXE-3763 Found some missing fields in Create ClientLists API request

Open jbattock opened this issue 1 year ago • 1 comments

Hi,

Found there are some missing fields in the create client list items object, on the docs ListId & Type are possible, but missing in the Go Code

Have added the diff below which might address it.

Cheers, James

diff --git a/pkg/clientlists/client_list.go b/pkg/clientlists/client_list.go
index 2ac065a..fa8197a 100644
--- a/pkg/clientlists/client_list.go
+++ b/pkg/clientlists/client_list.go
@@ -114,6 +114,8 @@ type (
        // ListItemPayload contains item's editable fields to use as update/create/delete payload
        ListItemPayload struct {
                Value          string   `json:"value"`
+               ListID         string   `json:"listId"`
+               Type           string   `json:"type"`
                Tags           []string `json:"tags"`
                Description    string   `json:"description"`
                ExpirationDate string   `json:"expirationDate"`

jbattock avatar Apr 04 '24 06:04 jbattock