edit Service

@PatchMapping(path = "/{" + SERVICE_IDENTIFIER_KEY + "}" )
open fun editService(@PathVariable(value = "id") sessionId: String, @PathVariable(value = "host_id") hostId: String, @PathVariable(value = "service_id") serviceId: String, @RequestParam(value = "language", required = false, defaultValue = "en") language: String, @RequestBody payload: Map<String, Any>): String

Endpoint used to edit an existing service to a host

Return

the response as String

Parameters

sessionId

The identifier of the session

hostId

The identifier of the host

serviceId

The identifier of the service

language

The language of the user who sent the request

payload

The payload of the request


                             {
                                 "name" : "the name of the service" -> [String],
                                 "configuration": {
                                     "program_arguments": "The arguments of the program" -> [String],
                                     "purge_nohup_out_after_reboot": true/false -> [boolean],
                                     "auto_run_after_host_reboot": true/false -> [boolean]
                                 }
                             }