« Back to Documentation Overview

add_campaign_predefine

Section: Campaigns
Version: 1.5.0


Add predefined field to campaign.


Parameters
stringAPI_KEY
object
stringcampaignCAMPAIGN_ID
stringnamemy_field
stringcontentMy field
Return Value
integeradded1

Example Request JSON

[
    "API_KEY",
    {
        "campaign": "CAMPAIGN_ID",
        "name": "my_field",
        "content": "My field"
    }
]

Example Response JSON

{
    "added": 1
}

Example Error Response JSON

{
    "code": -1,
    "message": "Name already taken"
}
Method-specific Errors
Missing campaign
Name already taken
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