« Back to Documentation Overview

set_contact_customs

Section: Contacts
Version: 1.5.0


Get list of contact customs.
Hint: If custom has more than one value (multi-value) then it will be returned as an sorted array.


Parameters
stringAPI_KEY
object
stringcontactCONTACT_ID
arraycustoms
object
stringnamename_1_value
stringcontentcontent_1_value
object
stringnamename_2_value
stringcontentcontent_2_value
Return Value
integerupdated2
integeradded1
integerdeleted1

Example Request JSON

[
    "API_KEY",
    {
        "contact": "CONTACT_ID",
        "customs": [
            {
                "name": "name_1_value",
                "content": "content_1_value"
            },
            {
                "name": "name_2_value",
                "content": "content_2_value"
            }
        ]
    }
]

Example Response JSON

{
    "updated": 2,
    "added": 1,
    "deleted": 1
}

Example Error Response JSON

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