trying to create contact and I'm getting this error. my json for the contact data is:
```json
{"firstName": "name", "lastName": "name", "email": "example@email.com", "externalDataRef": "34058345", "embeddedData": {"credentials": "MS", "unithiredate": "11/27/2011", "supervisor": false, "educator": false}}
```
from the API reference the json formatting appears to match to my eyes.
Any help would be appreciated
```json
{"firstName": "name", "lastName": "name", "email": "example@email.com", "externalDataRef": "34058345", "embeddedData": {"credentials": "MS", "unithiredate": "11/27/2011", "supervisor": false, "educator": false}}
```
from the API reference the json formatting appears to match to my eyes.
Any help would be appreciated
Page 1 / 1
The http body/data looks good, except the "email" attribute need to a valid email. Maybe you only put "[email protected]" in this question but not in the actual request. If you have a valid email and still fail, then can you post more about how you submit the API call?
I got the same issue and I think I found the solution.
When using the contact endpoint (https://api.qualtrics.com/reference#create-recipient-contact) it seems that the embeddedData values only accept strings.
Changing {"id": 1} to {"id": "1"} in my embeddedData fixed this issue. I guess that if it doesn't work well for integers, it could be the same for booleans. In your case quoting the "false" might do the trick.
However, in the contact import endpoint (https://api.qualtrics.com/reference#create-contacts-import) everything works fine for me without adding quotes.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.