Ehsan
May 10, 2022, 9:45am
1
Hello
When adding a new person using [AddPerson](https://developers.pipedrive.com/docs/api/v1/Persons#addPerson)
api, I send the array of phone numbers like below:
"email": [
{
"value": "ehsan21@yahoo.com",
"primary": true,
"label": "personal"
}
]
Unfortunately, the result is wrong when retrieving that person:
.
.
"email": [
{
"label": "",
"value": "[ {"value": "ehsan21@yahoo.com", "primary": true, "label": "personal"} ]",
"primary": true
}
]
.
.
How should I send the phone or email arrays?
Thanks
Hem
May 13, 2022, 8:31am
2
Hi @Ehsan
Welcome to the community That’s quite strange.
Can you share the following details?
How is the request being made? Is it via code / API client like Postman? Can you share the snippet or header + body details in that case?
I see that the payload is being constructed the right way. Are you sure that it’s not getting stringified incorrectly before sending the request?
Let me know if you can try it out successfully using the public Postman collection
https://www.postman.com/pipedrive-developers/workspace/pipedrive-api-collection/request/14918448-b9c99846-ed17-479b-b1ae-e36016896d60?ctx=documentation