edit Host

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

Endpoint used to edit an existing host

Return

the response as String

Parameters

sessionId

The identifier of the session

hostId

The identifier of the host

language

The language of the user who sent the request

payload

The payload of the request


                             {
                                 "name" : "the name of the host" -> [String],
                                 "host_address" : "the address of the host" -> [String]
                                 -- OPTIONAL --
                                 "ssh_user" : "the user of the SSH connection" -> [String],
                                 "ssh_password" : "the password of the SSH connection" -> [String]
                             }