« Back to Documentation Overview

set_account_custom_contents

Section: Accounts
Version: 1.5.0


Modify list of custom contents available for selection.
Conditions:

  • custom (mandatory) – CUSTOM_ID obtained from get_account_customs or add_account_custom.
  • contents (mandatory) - New list of contents to be available for selection in radio, checkbox, single_select, multi_select input types.

Warning: All custom contents that were present in already existing custom but are not present in new contents list will be removed from contacts that have them assigned! This action is NOT reversible!


Parameters
stringAPI_KEY
object
stringcustomCUSTOM_ID
arraycontents
stringvalue
stringvalue
stringvalue
Return Value
integeradded2
integerdeleted1

Example Request JSON

[
    "API_KEY",
    {
        "custom": "CUSTOM_ID",
        "contents": [
            "value",
            "value",
            "value"
        ]
    }
]

Example Response JSON

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

Example Error Response JSON

{
    "code": -1,
    "message": "Not selectable input type"
}
Method-specific Errors
Missing custom
Not selectable input type
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