mailjet / mailjet-gem

[API v3] Mailjet official Ruby GEM
https://dev.mailjet.com
Other
130 stars 72 forks source link

Fixed issue with sending unmodified parameters #258

Closed mgrishko closed 7 months ago

mgrishko commented 7 months ago

attempt to subscribe a contact via

PUT   https://api.mailjet.com/v3/REST/listrecipient/{listrecipient_ID}

the call goes through without issues. But when try to unsubscribe a contact, by switching IsUnsubscribed to false, get:

401 Unauthorized - Invalid Domain or API key: Internal error: MJ19 Setting a value for property "UnsubscribedAt" is not allowed (Mailjet::Unauthorized)