When you call Custom Field Service with PUT method, you can update a custom field on next4biz CRM.
Your request body must be contain 4 properties.
tenant_slug This is your subdomain on selphiu URL. For example: if your selphiu domain is “acme.selpihu.com” then your tenant_slug is “acme”access_token next4biz CRM provide an access_token via access_token service. Every access_token expires after 15 minutes. Best Practice, you request a new access_token for each service request.channel This is bussines channel id. If you don’t know your bussiness_channels and there’s id numbers. You can learn via bussiness_channel service.custom_field This is an array includes objects as custom_field property is an object contain you want to update custom_field values. You must set id property. But others are arbitrary. You can sent 500 person each request. If you want to update list or multiple list type custom field data, you must sent all data items with id.| Name | Value |
|---|---|
| REST-API METHOD | Update Custom Field |
| HTTP METHOD | PUT |
| RESPONSE TYPE | JSON |
| URL | https://api.crm.next4biz.com/custom-field/ |
| REQUEST HEAD | Accept: application/json; Content-Type: application/json |
{
"tenant_slug": "acme",
"channel": "79",
"access_token": "[YOUR ACCESSTOKEN]",
"custom_field": [
{
"custom_field_id": "227",
"data": [
{
"id": 1,
"text": "Updated List Choice - 1"
},
{
"id": 2,
"text": "List Choice - 2"
},
{
"id": 3,
"text": "List Choice - 3"
},
{
"id": 4,
"text": "List Choice - 4"
},
{
"id": 5,
"text": "List Choice - 5"
},
{
"text": "New Choice"
}
],
"label": "updated list type custom field",
"filterable": true,
"is_active": true,
"is_required": false
}
]
}
{
"code": 200,
"status": "Success",
"result": [
{
"custom_field_id": "227",
"custom_field_type": {
"custom_field_type_id": 6,
"custom_field_type_name": "list"
},
"kind_id": 2,
"data": {
"index": 7,
"items": [
{
"id": 1,
"text": "Updated List Choice - 1"
},
{
"id": 2,
"text": "List Choice - 2"
},
{
"id": 3,
"text": "List Choice - 3"
},
{
"id": 4,
"text": "List Choice - 4"
},
{
"id": 5,
"text": "List Choice - 5"
},
{
"id": 6,
"text": "New Choice"
}
]
},
"label": "updated list type custom field",
"filterable": true,
"is_active": true,
"is_required": false,
"order_number": 16,
"created_at": "2017-09-05 15:21",
"tenant": {
"tenant_id": 74,
"tenant_name": "acme",
"tenant_slug": "acme",
"created_at": "2017-09-05 11:53:41"
}
}
]
}