« Back to Documentation Overviewset_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
|
---|
string | API_KEY |
object | string | custom | CUSTOM_ID | array | contents | string | value | string | value | string | value |
|
|
Return Value
|
---|
integer | added | 2 |
integer | deleted | 1 |
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 |