Templates
3 min
applies a template to a business object for example, when creating an incident, you can choose to apply a template which is a frequently occurring incident such as outlook not working, printer not working, or emails bouncing when the template is applied, most of the fields are auto filled as per the template you can get the template name from the metadata api docid\ pkocqfv2d86th3l22mggy base url https //{tenant url}/api/odata/businessobject/{business object name}('{business object unique key}')/{template name} ensure the business object name is suffixed with an "s" template example here is an example to apply backup failure template to an incident url https //{tenant url}/api/odata/businessobject/incidents ('7133edb8a33d42e9b3f6fc440bddd19a')/backup failure \<font color="#ffffff">method\</font> post header name authorization jtw token/session key/rest api key \<font color="#ffffff">request payload\</font> { "actionid" "e8522ea7 ca0b 4656 beb5 ea708f1b56eb", "shouldsave"\ true,"data"\ null,"actionparams" {"gridparams"\ null,"formparams" {"actionid" "e8522ea7 ca0b 4656 beb5 ea708f1b56eb","objectid" "7133edb8a33d42e9b3f6fc440bddd19a","actualobjecttype" "incident#"}},"promptparams"\ null } \<font color="#ffffff">status code\</font> 200 unsuccessful response blank action id scenario trying to apply a template to an incident with blank action id in the request body https //{tenant url}/api/odata/businessobject/incidents('7133edb8a33d42e9b3f6fc440bddd19a')/backup failure header name authorization sessionkey code ism 4000 description invalid request payload message \[ "action id cannot be blank, please provide a valid action id and try again" ] \<font color="#ffffff">http status code\</font> 400
