Hi Folks,
I’m trying to automate vm_src_id substitution process within Manageiq service templates in service catalog. I wrote few API calls and some parsing mechanisms to filter nicely catalog items which use specific vm_template. Everything works nice however I’m stuck with HTTP PATCH request to replace data within config_info: { vm_src_id : [ template_id, “template_name” ] } at manageiqurl/api/service_templates/service_id#. I’ve tried to send data using { “action”: “edit”, “path”: “config_info/src_vm_id”, “value”: [ 123456677990, “img_name” ] } as described in cloudforms blog https://cloudformsblog.redhat.com/2018/07/30/playing-with-rest-api/
Request body looks ok, however debug log says: MIQ(Api::ServiceTemplatesController,patch_resource) Can only patch attributes of the resource service_templates/service_id#
Thus I’m only able to update resources on top level like name of service template etc. Is there any other way to update those nested fields using API request?
Thanks
S