Skip to content

Commit 70c243d

Browse files
author
Tomash Sidei
committed
Make the IsExcludedFromCampaigns field in the AddContactAction type as a pointer with omitempty to not include that field if not set. Otherwise the update request with this field not set will override the previous state to false when it should preserve it.
1 parent 702fbb8 commit 70c243d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/resources.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ type ContactsListAction struct {
11851185
type AddContactAction struct {
11861186
Email string
11871187
Name string
1188-
IsExcludedFromCampaigns bool
1188+
IsExcludedFromCampaigns *bool `json:",omitempty"`
11891189
Properties JSONObject
11901190
}
11911191

0 commit comments

Comments
 (0)