All -
I want to turn my campaign ON via api call and for that I am using below API request but getting error. I have tried multiple combinations but not getting through.
Let me know if someone has any solution for this.
API name - /api/v2/outbound/campaigns/{campaignId}
Request Body :
{
"name": "TestCampaign",
"contactList": {
"id": "80a6cba3-0fae-4389-8848-d5792b3c520a",
"name": "TestCallingList"
},
"dialingMode": "power",
"campaignStatus": "on",
"phoneColumns": [
{
"columnName": "Phone",
"type": "Cell"
}
],
"callerName": "xyz",
"callerAddress": "+151xxxxxxx"
}
Getting below Error :
{
"message": "An attempt was made to update a Campaign in an invalid way. Details: A campaign cannot have other fields changed in the same update as a status change",
"code": "invalid.update",
"status": 400,
"messageWithParams": "An attempt was made to update a {entity} in an invalid way. Details: {INVALID_UPDATE}",
"messageParams": {
"INVALID_UPDATE": "A campaign cannot have other fields changed in the same update as a status change",
"entity": "Campaign"
},
"contextId": "1ea5c4da-af44-4601-bb93-1ddacc785875",
"details": [],
"errors": []
}
#Outbound------------------------------
Thanks,
Anurag Gusain
------------------------------