« Back to Documentation Overviewset_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
|
---|
string | API_KEY |
object | string | contact | CONTACT_ID | array | customs | object | string | name | name_1_value | string | content | content_1_value |
| object | string | name | name_2_value | string | content | content_2_value |
|
|
|
Return Value
|
---|
integer | updated | 2 |
integer | added | 1 |
integer | deleted | 1 |
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 |