How can we help?
{{docApp.searchError}}
{{product.name}}
Searching in {{docApp.searchFilterBySpecificBookTitle}}
{{docApp.searchResultFilteredItems.length}} results for: {{docApp.currentResultsSearchText}}
in {{docApp.searchFilterBySpecificBookTitle}}
Search results have been limited. There are a total of {{docApp.searchResponse.totalResultsAvailable}} matches.
You have an odd number of " characters in your search terms - each one needs closing with a matching " character!
-
{{resultItem.title}}
{{resultItem.url}}
{{docApp.libraryHomeViewProduct.title || docApp.libraryHomeViewProduct.id}}
{{docApp.libraryHomeViewProduct.description}}
{{group.title || group.id}}
{{group.description}}
Operation Information
- Application Reference:
com.hornbill.servicemanager
- Scope:
Global
- Class:
Application
- Required Privilege Level:
user
- Required Rights: Group H - executeSystemAPIs
Description
This operation updates custom fields against a Request. For use with chatbot integrations.
Request Parameters
The chatbotUpdateReqCustomFields API takes the following input parameters.
Note
When sending a JSON request payload to the API, the order of parameters is not significant. However, for XML request payloads, parameters must be provided in the exact order specified in this documentation to comply with input validation requirements.
Name | Type | Required | Description |
---|---|---|---|
requestId |
xs:string |
Yes | This parameter must be set with the Id of a Request. |
userId |
xs:string |
Yes | This parameter must be set with the Id of the chatbot session user. |
h_custom_a |
xs:string |
No | The value that is written to the h_custom_a field. |
h_custom_b |
xs:string |
No | The value that is written to the h_custom_b field. |
h_custom_c |
xs:string |
No | The value that is written to the h_custom_c field. |
h_custom_d |
xs:string |
No | The value that is written to the h_custom_d field. |
h_custom_e |
xs:string |
No | The value that is written to the h_custom_e field. |
h_custom_f |
xs:string |
No | The value that is written to the h_custom_f field. |
h_custom_g |
xs:string |
No | The value that is written to the h_custom_g field. |
h_custom_h |
xs:string |
No | The value that is written to the h_custom_h field. |
h_custom_i |
xs:string |
No | The value that is written to the h_custom_i field. |
h_custom_j |
xs:string |
No | The value that is written to the h_custom_j field. |
h_custom_k |
xs:string |
No | The value that is written to the h_custom_k field. |
h_custom_l |
xs:string |
No | The value that is written to the h_custom_l field. |
h_custom_m |
xs:string |
No | The value that is written to the h_custom_m field. |
h_custom_n |
xs:string |
No | The value that is written to the h_custom_n field. |
h_custom_o |
xs:string |
No | The value that is written to the h_custom_o field. |
h_custom_p |
xs:string |
No | The value that is written to the h_custom_p field. |
h_custom_q |
xs:string |
No | The value that is written to the h_custom_q field. |
h_custom_r |
xs:string |
No | The value that is written to the h_custom_r field. |
h_custom_s |
xs:string |
No | The value that is written to the h_custom_s field. |
h_custom_t |
xs:string |
No | The value that is written to the h_custom_t field. |
h_custom_21 |
xs:dateTime |
No | The value that is written to the h_custom_21 field. |
h_custom_22 |
xs:dateTime |
No | The value that is written to the h_custom_22 field. |
h_custom_23 |
xs:dateTime |
No | The value that is written to the h_custom_23 field. |
h_custom_24 |
xs:dateTime |
No | The value that is written to the h_custom_24 field. |
h_custom_25 |
xs:dateTime |
No | The value that is written to the h_custom_25 field. |
h_custom_26 |
xs:integer |
No | The value that is written to the h_custom_26 field. |
h_custom_27 |
xs:integer |
No | The value that is written to the h_custom_27 field. |
h_custom_28 |
xs:integer |
No | The value that is written to the h_custom_28 field. |
h_custom_29 |
xs:integer |
No | The value that is written to the h_custom_29 field. |
h_custom_30 |
xs:integer |
No | The value that is written to the h_custom_30 field. |
h_custom_31 |
xs:string |
No | The value that is written to the h_custom_31 field. |
h_custom_32 |
xs:string |
No | The value that is written to the h_custom_32 field. |
h_custom_33 |
xs:string |
No | The value that is written to the h_custom_33 field. |
h_custom_34 |
xs:string |
No | The value that is written to the h_custom_34 field. |
h_custom_35 |
xs:string |
No | The value that is written to the h_custom_35 field. |
h_custom_36 |
xs:string |
No | The value that is written to the h_custom_36 field. |
h_custom_37 |
xs:string |
No | The value that is written to the h_custom_37 field. |
h_custom_38 |
xs:string |
No | The value that is written to the h_custom_38 field. |
h_custom_39 |
xs:string |
No | The value that is written to the h_custom_39 field. |
h_custom_40 |
xs:string |
No | The value that is written to the h_custom_40 field. |
h_custom_41 |
xs:string |
No | The value that is written to the h_custom_41 field. |
h_custom_42 |
xs:string |
No | The value that is written to the h_custom_42 field. |
h_custom_43 |
xs:string |
No | The value that is written to the h_custom_43 field. |
h_custom_44 |
xs:string |
No | The value that is written to the h_custom_44 field. |
h_custom_45 |
xs:string |
No | The value that is written to the h_custom_45 field. |
h_custom_46 |
xs:string |
No | The value that is written to the h_custom_46 field. |
h_custom_47 |
xs:string |
No | The value that is written to the h_custom_47 field. |
h_custom_48 |
xs:string |
No | The value that is written to the h_custom_48 field. |
h_custom_49 |
xs:string |
No | The value that is written to the h_custom_49 field. |
h_custom_50 |
xs:string |
No | The value that is written to the h_custom_50 field. |
h_custom_51 |
xs:string |
No | The value that is written to the h_custom_51 field. |
h_custom_52 |
xs:string |
No | The value that is written to the h_custom_52 field. |
h_custom_53 |
xs:string |
No | The value that is written to the h_custom_53 field. |
h_custom_54 |
xs:string |
No | The value that is written to the h_custom_54 field. |
h_custom_55 |
xs:string |
No | The value that is written to the h_custom_55 field. |
h_custom_56 |
xs:string |
No | The value that is written to the h_custom_56 field. |
h_custom_57 |
xs:string |
No | The value that is written to the h_custom_57 field. |
h_custom_58 |
xs:string |
No | The value that is written to the h_custom_58 field. |
h_custom_59 |
xs:string |
No | The value that is written to the h_custom_59 field. |
h_custom_60 |
xs:string |
No | The value that is written to the h_custom_60 field. |
h_custom_61 |
xs:string |
No | The value that is written to the h_custom_61 field. |
h_custom_62 |
xs:string |
No | The value that is written to the h_custom_62 field. |
h_custom_63 |
xs:string |
No | The value that is written to the h_custom_63 field. |
h_custom_64 |
xs:string |
No | The value that is written to the h_custom_64 field. |
h_custom_65 |
xs:string |
No | The value that is written to the h_custom_65 field. |
h_custom_66 |
xs:string |
No | The value that is written to the h_custom_66 field. |
h_custom_67 |
xs:string |
No | The value that is written to the h_custom_67 field. |
h_custom_68 |
xs:string |
No | The value that is written to the h_custom_68 field. |
h_custom_69 |
xs:string |
No | The value that is written to the h_custom_69 field. |
h_custom_70 |
xs:string |
No | The value that is written to the h_custom_70 field. |
h_custom_71 |
xs:integer |
No | The value that is written to the h_custom_71 field. |
h_custom_72 |
xs:integer |
No | The value that is written to the h_custom_72 field. |
h_custom_73 |
xs:integer |
No | The value that is written to the h_custom_73 field. |
h_custom_74 |
xs:integer |
No | The value that is written to the h_custom_74 field. |
h_custom_75 |
xs:integer |
No | The value that is written to the h_custom_75 field. |
h_custom_76 |
xs:dateTime |
No | The value that is written to the h_custom_76 field. |
h_custom_77 |
xs:dateTime |
No | The value that is written to the h_custom_77 field. |
h_custom_78 |
xs:dateTime |
No | The value that is written to the h_custom_78 field. |
h_custom_79 |
xs:dateTime |
No | The value that is written to the h_custom_79 field. |
h_custom_80 |
xs:dateTime |
No | The value that is written to the h_custom_80 field. |
resumeBpmProcess |
xs:boolean |
No | If the workflow running on the request should be resumed, defaults to 'false'. |
Response Parameters
Name | Type | Description |
---|---|---|
outcome |
xs:string |
This parameter is set with the outcome of the operation. The options are "success" and "failure". |
error |
xs:string |
This parameter is set with validation errors. |
Code Examples
curl -X POST 'https://api.hornbill.com/yourinstanceid/xmlmc/apps/com.hornbill.servicemanager' \
-H 'Authorization: ESP-APIKEY yourHornbillAPIKey' \
-H 'Content-Type: application/json' \
-d '{"@service":"apps/com.hornbill.servicemanager","@method":"chatbotUpdateReqCustomFields","params":{"requestId":"xs:string","userId":"xs:string","h_custom_a":"xs:string","h_custom_b":"xs:string","h_custom_c":"xs:string","h_custom_d":"xs:string","h_custom_e":"xs:string","h_custom_f":"xs:string","h_custom_g":"xs:string","h_custom_h":"xs:string","h_custom_i":"xs:string","h_custom_j":"xs:string","h_custom_k":"xs:string","h_custom_l":"xs:string","h_custom_m":"xs:string","h_custom_n":"xs:string","h_custom_o":"xs:string","h_custom_p":"xs:string","h_custom_q":"xs:string","h_custom_r":"xs:string","h_custom_s":"xs:string","h_custom_t":"xs:string","h_custom_21":"xs:dateTime","h_custom_22":"xs:dateTime","h_custom_23":"xs:dateTime","h_custom_24":"xs:dateTime","h_custom_25":"xs:dateTime","h_custom_26":1,"h_custom_27":1,"h_custom_28":1,"h_custom_29":1,"h_custom_30":1,"h_custom_31":"xs:string","h_custom_32":"xs:string","h_custom_33":"xs:string","h_custom_34":"xs:string","h_custom_35":"xs:string","h_custom_36":"xs:string","h_custom_37":"xs:string","h_custom_38":"xs:string","h_custom_39":"xs:string","h_custom_40":"xs:string","h_custom_41":"xs:string","h_custom_42":"xs:string","h_custom_43":"xs:string","h_custom_44":"xs:string","h_custom_45":"xs:string","h_custom_46":"xs:string","h_custom_47":"xs:string","h_custom_48":"xs:string","h_custom_49":"xs:string","h_custom_50":"xs:string","h_custom_51":"xs:string","h_custom_52":"xs:string","h_custom_53":"xs:string","h_custom_54":"xs:string","h_custom_55":"xs:string","h_custom_56":"xs:string","h_custom_57":"xs:string","h_custom_58":"xs:string","h_custom_59":"xs:string","h_custom_60":"xs:string","h_custom_61":"xs:string","h_custom_62":"xs:string","h_custom_63":"xs:string","h_custom_64":"xs:string","h_custom_65":"xs:string","h_custom_66":"xs:string","h_custom_67":"xs:string","h_custom_68":"xs:string","h_custom_69":"xs:string","h_custom_70":"xs:string","h_custom_71":1,"h_custom_72":1,"h_custom_73":1,"h_custom_74":1,"h_custom_75":1,"h_custom_76":"xs:dateTime","h_custom_77":"xs:dateTime","h_custom_78":"xs:dateTime","h_custom_79":"xs:dateTime","h_custom_80":"xs:dateTime","resumeBpmProcess":false}}'
package main
import (
"fmt"
apiLib "github.com/hornbill/goApiLib"
)
func main() {
hornbillAPI := apiLib.NewXmlmcInstance("yourinstanceid")
hornbillAPI.SetAPIKey("yourHornbillAPIKey")
hornbillAPI.SetJSONResponse(true)
hornbillAPI.SetParam("requestId", "xs:string")
hornbillAPI.SetParam("userId", "xs:string")
hornbillAPI.SetParam("h_custom_a", "xs:string")
hornbillAPI.SetParam("h_custom_b", "xs:string")
hornbillAPI.SetParam("h_custom_c", "xs:string")
hornbillAPI.SetParam("h_custom_d", "xs:string")
hornbillAPI.SetParam("h_custom_e", "xs:string")
hornbillAPI.SetParam("h_custom_f", "xs:string")
hornbillAPI.SetParam("h_custom_g", "xs:string")
hornbillAPI.SetParam("h_custom_h", "xs:string")
hornbillAPI.SetParam("h_custom_i", "xs:string")
hornbillAPI.SetParam("h_custom_j", "xs:string")
hornbillAPI.SetParam("h_custom_k", "xs:string")
hornbillAPI.SetParam("h_custom_l", "xs:string")
hornbillAPI.SetParam("h_custom_m", "xs:string")
hornbillAPI.SetParam("h_custom_n", "xs:string")
hornbillAPI.SetParam("h_custom_o", "xs:string")
hornbillAPI.SetParam("h_custom_p", "xs:string")
hornbillAPI.SetParam("h_custom_q", "xs:string")
hornbillAPI.SetParam("h_custom_r", "xs:string")
hornbillAPI.SetParam("h_custom_s", "xs:string")
hornbillAPI.SetParam("h_custom_t", "xs:string")
hornbillAPI.SetParam("h_custom_21", "xs:dateTime")
hornbillAPI.SetParam("h_custom_22", "xs:dateTime")
hornbillAPI.SetParam("h_custom_23", "xs:dateTime")
hornbillAPI.SetParam("h_custom_24", "xs:dateTime")
hornbillAPI.SetParam("h_custom_25", "xs:dateTime")
hornbillAPI.SetParam("h_custom_26", "xs:integer")
hornbillAPI.SetParam("h_custom_27", "xs:integer")
hornbillAPI.SetParam("h_custom_28", "xs:integer")
hornbillAPI.SetParam("h_custom_29", "xs:integer")
hornbillAPI.SetParam("h_custom_30", "xs:integer")
hornbillAPI.SetParam("h_custom_31", "xs:string")
hornbillAPI.SetParam("h_custom_32", "xs:string")
hornbillAPI.SetParam("h_custom_33", "xs:string")
hornbillAPI.SetParam("h_custom_34", "xs:string")
hornbillAPI.SetParam("h_custom_35", "xs:string")
hornbillAPI.SetParam("h_custom_36", "xs:string")
hornbillAPI.SetParam("h_custom_37", "xs:string")
hornbillAPI.SetParam("h_custom_38", "xs:string")
hornbillAPI.SetParam("h_custom_39", "xs:string")
hornbillAPI.SetParam("h_custom_40", "xs:string")
hornbillAPI.SetParam("h_custom_41", "xs:string")
hornbillAPI.SetParam("h_custom_42", "xs:string")
hornbillAPI.SetParam("h_custom_43", "xs:string")
hornbillAPI.SetParam("h_custom_44", "xs:string")
hornbillAPI.SetParam("h_custom_45", "xs:string")
hornbillAPI.SetParam("h_custom_46", "xs:string")
hornbillAPI.SetParam("h_custom_47", "xs:string")
hornbillAPI.SetParam("h_custom_48", "xs:string")
hornbillAPI.SetParam("h_custom_49", "xs:string")
hornbillAPI.SetParam("h_custom_50", "xs:string")
hornbillAPI.SetParam("h_custom_51", "xs:string")
hornbillAPI.SetParam("h_custom_52", "xs:string")
hornbillAPI.SetParam("h_custom_53", "xs:string")
hornbillAPI.SetParam("h_custom_54", "xs:string")
hornbillAPI.SetParam("h_custom_55", "xs:string")
hornbillAPI.SetParam("h_custom_56", "xs:string")
hornbillAPI.SetParam("h_custom_57", "xs:string")
hornbillAPI.SetParam("h_custom_58", "xs:string")
hornbillAPI.SetParam("h_custom_59", "xs:string")
hornbillAPI.SetParam("h_custom_60", "xs:string")
hornbillAPI.SetParam("h_custom_61", "xs:string")
hornbillAPI.SetParam("h_custom_62", "xs:string")
hornbillAPI.SetParam("h_custom_63", "xs:string")
hornbillAPI.SetParam("h_custom_64", "xs:string")
hornbillAPI.SetParam("h_custom_65", "xs:string")
hornbillAPI.SetParam("h_custom_66", "xs:string")
hornbillAPI.SetParam("h_custom_67", "xs:string")
hornbillAPI.SetParam("h_custom_68", "xs:string")
hornbillAPI.SetParam("h_custom_69", "xs:string")
hornbillAPI.SetParam("h_custom_70", "xs:string")
hornbillAPI.SetParam("h_custom_71", "xs:integer")
hornbillAPI.SetParam("h_custom_72", "xs:integer")
hornbillAPI.SetParam("h_custom_73", "xs:integer")
hornbillAPI.SetParam("h_custom_74", "xs:integer")
hornbillAPI.SetParam("h_custom_75", "xs:integer")
hornbillAPI.SetParam("h_custom_76", "xs:dateTime")
hornbillAPI.SetParam("h_custom_77", "xs:dateTime")
hornbillAPI.SetParam("h_custom_78", "xs:dateTime")
hornbillAPI.SetParam("h_custom_79", "xs:dateTime")
hornbillAPI.SetParam("h_custom_80", "xs:dateTime")
hornbillAPI.SetParam("resumeBpmProcess", "xs:boolean")
responseBody, apiError := hornbillAPI.Invoke("apps/com.hornbill.servicemanager", "chatbotUpdateReqCustomFields")
if apiError != nil {
fmt.Println(apiError)
return
}
fmt.Println(responseBody)
}
const endpoint = "https://api.hornbill.com/yourinstanceid/xmlmc/apps/com.hornbill.servicemanager";
const payload = {
"@service": "apps/com.hornbill.servicemanager",
"@method": "chatbotUpdateReqCustomFields",
"params": {
"requestId": "xs:string",
"userId": "xs:string",
"h_custom_a": "xs:string",
"h_custom_b": "xs:string",
"h_custom_c": "xs:string",
"h_custom_d": "xs:string",
"h_custom_e": "xs:string",
"h_custom_f": "xs:string",
"h_custom_g": "xs:string",
"h_custom_h": "xs:string",
"h_custom_i": "xs:string",
"h_custom_j": "xs:string",
"h_custom_k": "xs:string",
"h_custom_l": "xs:string",
"h_custom_m": "xs:string",
"h_custom_n": "xs:string",
"h_custom_o": "xs:string",
"h_custom_p": "xs:string",
"h_custom_q": "xs:string",
"h_custom_r": "xs:string",
"h_custom_s": "xs:string",
"h_custom_t": "xs:string",
"h_custom_21": "xs:dateTime",
"h_custom_22": "xs:dateTime",
"h_custom_23": "xs:dateTime",
"h_custom_24": "xs:dateTime",
"h_custom_25": "xs:dateTime",
"h_custom_26": 1,
"h_custom_27": 1,
"h_custom_28": 1,
"h_custom_29": 1,
"h_custom_30": 1,
"h_custom_31": "xs:string",
"h_custom_32": "xs:string",
"h_custom_33": "xs:string",
"h_custom_34": "xs:string",
"h_custom_35": "xs:string",
"h_custom_36": "xs:string",
"h_custom_37": "xs:string",
"h_custom_38": "xs:string",
"h_custom_39": "xs:string",
"h_custom_40": "xs:string",
"h_custom_41": "xs:string",
"h_custom_42": "xs:string",
"h_custom_43": "xs:string",
"h_custom_44": "xs:string",
"h_custom_45": "xs:string",
"h_custom_46": "xs:string",
"h_custom_47": "xs:string",
"h_custom_48": "xs:string",
"h_custom_49": "xs:string",
"h_custom_50": "xs:string",
"h_custom_51": "xs:string",
"h_custom_52": "xs:string",
"h_custom_53": "xs:string",
"h_custom_54": "xs:string",
"h_custom_55": "xs:string",
"h_custom_56": "xs:string",
"h_custom_57": "xs:string",
"h_custom_58": "xs:string",
"h_custom_59": "xs:string",
"h_custom_60": "xs:string",
"h_custom_61": "xs:string",
"h_custom_62": "xs:string",
"h_custom_63": "xs:string",
"h_custom_64": "xs:string",
"h_custom_65": "xs:string",
"h_custom_66": "xs:string",
"h_custom_67": "xs:string",
"h_custom_68": "xs:string",
"h_custom_69": "xs:string",
"h_custom_70": "xs:string",
"h_custom_71": 1,
"h_custom_72": 1,
"h_custom_73": 1,
"h_custom_74": 1,
"h_custom_75": 1,
"h_custom_76": "xs:dateTime",
"h_custom_77": "xs:dateTime",
"h_custom_78": "xs:dateTime",
"h_custom_79": "xs:dateTime",
"h_custom_80": "xs:dateTime",
"resumeBpmProcess": false
}
};
fetch(endpoint, {
method: 'POST',
headers: {
"Authorization": "ESP-APIKEY yourHornbillAPIKey"
},
body: JSON.stringify(payload)
}).then(res => res.json())
.then(res => console.log(res));
const axios = require('axios');
const endpoint = "https://api.hornbill.com/yourinstanceid/xmlmc/apps/com.hornbill.servicemanager";
const payload = {
"@service": "apps/com.hornbill.servicemanager",
"@method": "chatbotUpdateReqCustomFields",
"params": {
"requestId": "xs:string",
"userId": "xs:string",
"h_custom_a": "xs:string",
"h_custom_b": "xs:string",
"h_custom_c": "xs:string",
"h_custom_d": "xs:string",
"h_custom_e": "xs:string",
"h_custom_f": "xs:string",
"h_custom_g": "xs:string",
"h_custom_h": "xs:string",
"h_custom_i": "xs:string",
"h_custom_j": "xs:string",
"h_custom_k": "xs:string",
"h_custom_l": "xs:string",
"h_custom_m": "xs:string",
"h_custom_n": "xs:string",
"h_custom_o": "xs:string",
"h_custom_p": "xs:string",
"h_custom_q": "xs:string",
"h_custom_r": "xs:string",
"h_custom_s": "xs:string",
"h_custom_t": "xs:string",
"h_custom_21": "xs:dateTime",
"h_custom_22": "xs:dateTime",
"h_custom_23": "xs:dateTime",
"h_custom_24": "xs:dateTime",
"h_custom_25": "xs:dateTime",
"h_custom_26": 1,
"h_custom_27": 1,
"h_custom_28": 1,
"h_custom_29": 1,
"h_custom_30": 1,
"h_custom_31": "xs:string",
"h_custom_32": "xs:string",
"h_custom_33": "xs:string",
"h_custom_34": "xs:string",
"h_custom_35": "xs:string",
"h_custom_36": "xs:string",
"h_custom_37": "xs:string",
"h_custom_38": "xs:string",
"h_custom_39": "xs:string",
"h_custom_40": "xs:string",
"h_custom_41": "xs:string",
"h_custom_42": "xs:string",
"h_custom_43": "xs:string",
"h_custom_44": "xs:string",
"h_custom_45": "xs:string",
"h_custom_46": "xs:string",
"h_custom_47": "xs:string",
"h_custom_48": "xs:string",
"h_custom_49": "xs:string",
"h_custom_50": "xs:string",
"h_custom_51": "xs:string",
"h_custom_52": "xs:string",
"h_custom_53": "xs:string",
"h_custom_54": "xs:string",
"h_custom_55": "xs:string",
"h_custom_56": "xs:string",
"h_custom_57": "xs:string",
"h_custom_58": "xs:string",
"h_custom_59": "xs:string",
"h_custom_60": "xs:string",
"h_custom_61": "xs:string",
"h_custom_62": "xs:string",
"h_custom_63": "xs:string",
"h_custom_64": "xs:string",
"h_custom_65": "xs:string",
"h_custom_66": "xs:string",
"h_custom_67": "xs:string",
"h_custom_68": "xs:string",
"h_custom_69": "xs:string",
"h_custom_70": "xs:string",
"h_custom_71": 1,
"h_custom_72": 1,
"h_custom_73": 1,
"h_custom_74": 1,
"h_custom_75": 1,
"h_custom_76": "xs:dateTime",
"h_custom_77": "xs:dateTime",
"h_custom_78": "xs:dateTime",
"h_custom_79": "xs:dateTime",
"h_custom_80": "xs:dateTime",
"resumeBpmProcess": false
}
};
const axiosConfig = {
headers: {
"Authorization": "ESP-APIKEY yourHornbillAPIKey"
}
};
axios.post(endpoint, payload, axiosConfig)
.then((res) => {
console.log("RESPONSE RECEIVED: ", res);
})
.catch((err) => {
console.log("AXIOS ERROR: ", err);
})
$endpoint = "https://api.hornbill.com/yourinstanceid/xmlmc/apps/com.hornbill.servicemanager";
$payload = (object) [
'@service' => 'apps/com.hornbill.servicemanager',
'@method' => 'chatbotUpdateReqCustomFields',
'params' => (object) [
'requestId' => 'xs:string',
'userId' => 'xs:string',
'h_custom_a' => 'xs:string',
'h_custom_b' => 'xs:string',
'h_custom_c' => 'xs:string',
'h_custom_d' => 'xs:string',
'h_custom_e' => 'xs:string',
'h_custom_f' => 'xs:string',
'h_custom_g' => 'xs:string',
'h_custom_h' => 'xs:string',
'h_custom_i' => 'xs:string',
'h_custom_j' => 'xs:string',
'h_custom_k' => 'xs:string',
'h_custom_l' => 'xs:string',
'h_custom_m' => 'xs:string',
'h_custom_n' => 'xs:string',
'h_custom_o' => 'xs:string',
'h_custom_p' => 'xs:string',
'h_custom_q' => 'xs:string',
'h_custom_r' => 'xs:string',
'h_custom_s' => 'xs:string',
'h_custom_t' => 'xs:string',
'h_custom_21' => 'xs:dateTime',
'h_custom_22' => 'xs:dateTime',
'h_custom_23' => 'xs:dateTime',
'h_custom_24' => 'xs:dateTime',
'h_custom_25' => 'xs:dateTime',
'h_custom_26' => 'xs:integer',
'h_custom_27' => 'xs:integer',
'h_custom_28' => 'xs:integer',
'h_custom_29' => 'xs:integer',
'h_custom_30' => 'xs:integer',
'h_custom_31' => 'xs:string',
'h_custom_32' => 'xs:string',
'h_custom_33' => 'xs:string',
'h_custom_34' => 'xs:string',
'h_custom_35' => 'xs:string',
'h_custom_36' => 'xs:string',
'h_custom_37' => 'xs:string',
'h_custom_38' => 'xs:string',
'h_custom_39' => 'xs:string',
'h_custom_40' => 'xs:string',
'h_custom_41' => 'xs:string',
'h_custom_42' => 'xs:string',
'h_custom_43' => 'xs:string',
'h_custom_44' => 'xs:string',
'h_custom_45' => 'xs:string',
'h_custom_46' => 'xs:string',
'h_custom_47' => 'xs:string',
'h_custom_48' => 'xs:string',
'h_custom_49' => 'xs:string',
'h_custom_50' => 'xs:string',
'h_custom_51' => 'xs:string',
'h_custom_52' => 'xs:string',
'h_custom_53' => 'xs:string',
'h_custom_54' => 'xs:string',
'h_custom_55' => 'xs:string',
'h_custom_56' => 'xs:string',
'h_custom_57' => 'xs:string',
'h_custom_58' => 'xs:string',
'h_custom_59' => 'xs:string',
'h_custom_60' => 'xs:string',
'h_custom_61' => 'xs:string',
'h_custom_62' => 'xs:string',
'h_custom_63' => 'xs:string',
'h_custom_64' => 'xs:string',
'h_custom_65' => 'xs:string',
'h_custom_66' => 'xs:string',
'h_custom_67' => 'xs:string',
'h_custom_68' => 'xs:string',
'h_custom_69' => 'xs:string',
'h_custom_70' => 'xs:string',
'h_custom_71' => 'xs:integer',
'h_custom_72' => 'xs:integer',
'h_custom_73' => 'xs:integer',
'h_custom_74' => 'xs:integer',
'h_custom_75' => 'xs:integer',
'h_custom_76' => 'xs:dateTime',
'h_custom_77' => 'xs:dateTime',
'h_custom_78' => 'xs:dateTime',
'h_custom_79' => 'xs:dateTime',
'h_custom_80' => 'xs:dateTime',
'resumeBpmProcess' => 'xs:boolean',
]
];
$headers = [
'Authorization: ESP-APIKEY yourHornbillAPIKey',
'Content-Type: application/json'
];
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $endpoint);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($payload));
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$resp = curl_exec($curl);
curl_close($curl);
echo $resp;
$Endpoint = "https://api.hornbill.com/yourinstanceid/xmlmc/apps/com.hornbill.servicemanager"
$Body = @{
"@service" = "apps/com.hornbill.servicemanager"
"@method" = "chatbotUpdateReqCustomFields"
params = @{
requestId = "xs:string"
userId = "xs:string"
h_custom_a = "xs:string"
h_custom_b = "xs:string"
h_custom_c = "xs:string"
h_custom_d = "xs:string"
h_custom_e = "xs:string"
h_custom_f = "xs:string"
h_custom_g = "xs:string"
h_custom_h = "xs:string"
h_custom_i = "xs:string"
h_custom_j = "xs:string"
h_custom_k = "xs:string"
h_custom_l = "xs:string"
h_custom_m = "xs:string"
h_custom_n = "xs:string"
h_custom_o = "xs:string"
h_custom_p = "xs:string"
h_custom_q = "xs:string"
h_custom_r = "xs:string"
h_custom_s = "xs:string"
h_custom_t = "xs:string"
h_custom_21 = "xs:dateTime"
h_custom_22 = "xs:dateTime"
h_custom_23 = "xs:dateTime"
h_custom_24 = "xs:dateTime"
h_custom_25 = "xs:dateTime"
h_custom_26 = "xs:integer"
h_custom_27 = "xs:integer"
h_custom_28 = "xs:integer"
h_custom_29 = "xs:integer"
h_custom_30 = "xs:integer"
h_custom_31 = "xs:string"
h_custom_32 = "xs:string"
h_custom_33 = "xs:string"
h_custom_34 = "xs:string"
h_custom_35 = "xs:string"
h_custom_36 = "xs:string"
h_custom_37 = "xs:string"
h_custom_38 = "xs:string"
h_custom_39 = "xs:string"
h_custom_40 = "xs:string"
h_custom_41 = "xs:string"
h_custom_42 = "xs:string"
h_custom_43 = "xs:string"
h_custom_44 = "xs:string"
h_custom_45 = "xs:string"
h_custom_46 = "xs:string"
h_custom_47 = "xs:string"
h_custom_48 = "xs:string"
h_custom_49 = "xs:string"
h_custom_50 = "xs:string"
h_custom_51 = "xs:string"
h_custom_52 = "xs:string"
h_custom_53 = "xs:string"
h_custom_54 = "xs:string"
h_custom_55 = "xs:string"
h_custom_56 = "xs:string"
h_custom_57 = "xs:string"
h_custom_58 = "xs:string"
h_custom_59 = "xs:string"
h_custom_60 = "xs:string"
h_custom_61 = "xs:string"
h_custom_62 = "xs:string"
h_custom_63 = "xs:string"
h_custom_64 = "xs:string"
h_custom_65 = "xs:string"
h_custom_66 = "xs:string"
h_custom_67 = "xs:string"
h_custom_68 = "xs:string"
h_custom_69 = "xs:string"
h_custom_70 = "xs:string"
h_custom_71 = "xs:integer"
h_custom_72 = "xs:integer"
h_custom_73 = "xs:integer"
h_custom_74 = "xs:integer"
h_custom_75 = "xs:integer"
h_custom_76 = "xs:dateTime"
h_custom_77 = "xs:dateTime"
h_custom_78 = "xs:dateTime"
h_custom_79 = "xs:dateTime"
h_custom_80 = "xs:dateTime"
resumeBpmProcess = "xs:boolean"
}
}
$Header = @{
"Authorization" = "ESP-APIKEY yourHornbillAPIKey"
}
$Parameters = @{
Method = "POST"
Uri = $Endpoint
Headers = $Header
Body = ($Body | ConvertTo-Json)
ContentType = "application/json"
}
Invoke-RestMethod @Parameters
import requests
import json
endpoint = "https://api.hornbill.com/yourinstanceid/xmlmc/apps/com.hornbill.servicemanager"
headers = {
"Authorization": "ESP-APIKEY yourHornbillAPIKey"
}
payload={
"@service":"apps/com.hornbill.servicemanager",
"@method":"chatbotUpdateReqCustomFields",
"params":{
"requestId":"xs:string",
"userId":"xs:string",
"h_custom_a":"xs:string",
"h_custom_b":"xs:string",
"h_custom_c":"xs:string",
"h_custom_d":"xs:string",
"h_custom_e":"xs:string",
"h_custom_f":"xs:string",
"h_custom_g":"xs:string",
"h_custom_h":"xs:string",
"h_custom_i":"xs:string",
"h_custom_j":"xs:string",
"h_custom_k":"xs:string",
"h_custom_l":"xs:string",
"h_custom_m":"xs:string",
"h_custom_n":"xs:string",
"h_custom_o":"xs:string",
"h_custom_p":"xs:string",
"h_custom_q":"xs:string",
"h_custom_r":"xs:string",
"h_custom_s":"xs:string",
"h_custom_t":"xs:string",
"h_custom_21":"xs:dateTime",
"h_custom_22":"xs:dateTime",
"h_custom_23":"xs:dateTime",
"h_custom_24":"xs:dateTime",
"h_custom_25":"xs:dateTime",
"h_custom_26":"xs:integer",
"h_custom_27":"xs:integer",
"h_custom_28":"xs:integer",
"h_custom_29":"xs:integer",
"h_custom_30":"xs:integer",
"h_custom_31":"xs:string",
"h_custom_32":"xs:string",
"h_custom_33":"xs:string",
"h_custom_34":"xs:string",
"h_custom_35":"xs:string",
"h_custom_36":"xs:string",
"h_custom_37":"xs:string",
"h_custom_38":"xs:string",
"h_custom_39":"xs:string",
"h_custom_40":"xs:string",
"h_custom_41":"xs:string",
"h_custom_42":"xs:string",
"h_custom_43":"xs:string",
"h_custom_44":"xs:string",
"h_custom_45":"xs:string",
"h_custom_46":"xs:string",
"h_custom_47":"xs:string",
"h_custom_48":"xs:string",
"h_custom_49":"xs:string",
"h_custom_50":"xs:string",
"h_custom_51":"xs:string",
"h_custom_52":"xs:string",
"h_custom_53":"xs:string",
"h_custom_54":"xs:string",
"h_custom_55":"xs:string",
"h_custom_56":"xs:string",
"h_custom_57":"xs:string",
"h_custom_58":"xs:string",
"h_custom_59":"xs:string",
"h_custom_60":"xs:string",
"h_custom_61":"xs:string",
"h_custom_62":"xs:string",
"h_custom_63":"xs:string",
"h_custom_64":"xs:string",
"h_custom_65":"xs:string",
"h_custom_66":"xs:string",
"h_custom_67":"xs:string",
"h_custom_68":"xs:string",
"h_custom_69":"xs:string",
"h_custom_70":"xs:string",
"h_custom_71":"xs:integer",
"h_custom_72":"xs:integer",
"h_custom_73":"xs:integer",
"h_custom_74":"xs:integer",
"h_custom_75":"xs:integer",
"h_custom_76":"xs:dateTime",
"h_custom_77":"xs:dateTime",
"h_custom_78":"xs:dateTime",
"h_custom_79":"xs:dateTime",
"h_custom_80":"xs:dateTime",
"resumeBpmProcess":"xs:boolean",
},
}
response = requests.request("POST", endpoint, json=payload, headers=headers)
print(response.text)
- Version {{docApp.book.version}}
- Node {{docApp.node}} / {{docApp.build}}
In This Document