I am trying to add contacts to a contact list i have created using below API.
/api/v2/outbound/contactlists/{contactListId}/contacts
Body:
[
{
"id": "",
"contactListId": "3112670f-fa0d-400f-afad-a083b0fa6484",
"data": {
"Name": "Sannket_Wetkar",
"Phone": "919833343349",
"EmailID": "sannket.wetkar@tatacommunications.com",
"Weight": "73",
"Age": "32"
},
"callable": true,
"phoneNumberStatus": {
"Phone": {
"callable": true
}
},
"contactableStatus": {
"": {
"contactable": true
}
}
}
]
Error:
{
"message": "Value [] is not a valid property for object [OutboundMediaType]",
"code": "invalid.property",
"status": 400,
"contextId": "339b0bec-f22b-4677-b550-3293b04e0c62",
"details": [],
"errors": []
}
I checked for column names typo errors but there arent any.
You can find the documentation for this endpoint here: POST /api/v2/outbound/contactlists/{contactListId}/contacts. Specifically, the contactableStatus
property is documented as:
A map of media types (Voice, SMS and Email) to ContactableStatus, which indicates if the contact can be contacted using the specified media type.
Instead of an empty string, you should use one of the documented key values.
Thank You Tim for your response. Same result with Revised Body
Revised Body:
[
{
"id": "",
"contactListId": "3112670f-fa0d-400f-afad-a083b0fa6484",
"data": {
"Name": "Sannket_Wetkar",
"Phone": "919833343349",
"EmailID": "sannketwetkartatacommunicationscom",
"Weight": "73",
"Age": "32"
},
"callable": true,
"phoneNumberStatus": {
"Phone": {
"callable": true
}
},
"contactableStatus": {
"EmailID": {
"contactable": true,
"columnStatus": {
"EmailID": {
"contactable": true
}
}
}
}
}
]
{
"message": "Value [EmailID] is not a valid property for object [OutboundMediaType]",
"code": "invalid.property",
"status": 400,
"contextId": "0603e9ae-8d99-4dc8-99a5-a544cd0287d2",
"details": [],
"errors": []
}
Please read closely; EmailID
is not mentioned anywhere.
system
Closed
6
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.