Hello all,
When I try to create contacts as a collection, the data isn’t recognized and the API returns an error.
I’m following the schema and same example shown at the documentation, but it doesn’t work in /contacts endpoint nor contact/sync endpoint.
The data I’m trying to send:
{
"contacts": [
{
"email": "jsmith@example.com",
"firstName": "John",
"lastName": "Smith"
},
{
"email": "alice@example.com",
"firstName": "Alice",
"lastName": "Jones"
}
],
"meta": {
"total": "2"
}
}
The error that is returned:
{
"errors": [
{
"title": "O e-mail é necessário.",
"detail": "",
"code": "field_missing",
"error": "contact_email_não_foi_fornecido",
"source": {
"pointer": "\/data\/attributes\/email"
}
}
]
}
The error response is in portuguese, but basically says that the e-mail is required. Can anyone point what is wrong? Collection requests would greatly improve our API.