-3

I've a problem with postman. When i sent my data to sendinblue with API, i got a response => "message": "Unexpected number in JSON at position 1"

My data is here :

"updateEnabled":true
"smtpBlacklistSender":["user@example.com"]
"smsBlacklisted":false
"emailBlacklisted":false
"listIds":[27]
"email":"test@pakat.net"
"attributes":{"FNAME":"Elly","LNAME":"Roger"}

I will attache my images

my data api helper

1 Answers1

0

You chose the wrong content-type for post request. Put it in Body > raw > json like this:

enter image description here

with correct json format:

{
    "updateEnabled": true,
    "smtpBlacklistSender": [
        "user@example.com"
    ],
    "smsBlacklisted": false,
    "emailBlacklisted": false,
    "listIds": [
        27
    ],
    "email": "test@pakat.net",
    "attributes": {
        "FNAME": "Elly",
        "LNAME": "Roger"
    }
}
lucas-nguyen-17
  • 5,516
  • 2
  • 9
  • 20