« Back to Documentation Overviewmove_contact
Section: Contacts
Version: 1.5.0
Move contact from one campaign to another.
Parameters
|
---|
string | API_KEY |
object | string | contact | CONTACT_ID | string | campaign | CAMPAIGN_ID |
|
Return Value
|
---|
integer | updated | 1 |
Example Request JSON
[
"API_KEY",
{
"contact": "CONTACT_ID",
"campaign": "CAMPAIGN_ID"
}
]
Example Response JSON
{
"updated": 1
}
Example Error Response JSON
{
"code": -1,
"message": "Contact already exist in target campaign"
}
Method-specific Errors
|
---|
Missing contact |
Missing campaign |
Contact already exist in target campaign |
API-wide Errors
|
---|
API key verification failed
| API key verification failed |
API client IP not allowed
| API client IP not allowed |
Invalid params
| Attribute params must be reference to hash |