Refresh Dialog Fields
Refresh fields of a service dialog:
Request:
POST /api/service_dialogs/2
{
"action" : "refresh_dialog_fields",
"resource" : {
"dialog_fields" : {
"my_field" : "current value for my_field"
},
"fields" : [ "my_field" ]
}
}
Response:
{
"success": true,
"message": "Refreshing dialog fields for Service Dialog id:2 label:'Dynamic Drop-down test'",
"result": {
"my_field": {
"name": "my_field",
"description": "my_field",
"type": "DialogFieldDropDownList",
"data_type": "string",
"display": "edit",
"display_method_options": {
},
"required": true,
"required_method_options": {
},
"values": [
[
"",
"Choose"
],
[
"7",
"7"
],
[
"13",
"13"
],
[
"2016-06-10T17:59:36Z",
"2016-06-10T17:59:36Z"
]
],
"values_method_options": {
},
"options": {
"sort_by": "value",
"sort_order": "ascending"
},
"label": "My Field",
"position": 0,
"dynamic": true,
"show_refresh_button": true,
"load_values_on_init": true,
"read_only": false,
"resource_action": {
"resource_type": "DialogField",
"ae_namespace": "Dialogs",
"ae_class": "dynamic_dialogs",
"ae_instance": "drop_down",
"ae_attributes": {
}
}
}
},
"href": "http://localhost:3000/api/service_dialogs/2"
}