« Back to Documentation Overview

move_contact

Section: Contacts
Version: 1.5.0


Move contact from one campaign to another.


Parameters
stringAPI_KEY
object
stringcontactCONTACT_ID
stringcampaignCAMPAIGN_ID
Return Value
integerupdated1

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