Update the address, port, and server keys of a known-host to the specified values.
⚠️ The colon is a reserved character in a URI. The path known-hosts variable is delimited by a dash: e.g.: :address-:port.
If not all keys are provided, only those provided will be updated. Others will be left as is.
Request:
- Authorization:
BEARER <jwt_token>
- Content Type:
application/json
- Body:
{
"address": "<address>",
"port": "<port>",
"key": "<server_key>"
},
Response:
-
With valid BEARER token on success: 204 No Content
-
With valid BEARER token on failure: 400 Bad Request
- Content Type:
application/json
- Body:
{
"error": "<Error Message>"
}
-
With invalid BEARER token: 401 Unauthorized
Update the address, port, and server keys of a known-host to the specified values.
If not all keys are provided, only those provided will be updated. Others will be left as is.
Request:
BEARER <jwt_token>application/jsonResponse:
With valid BEARER token on success:
204 No ContentWith valid BEARER token on failure:
400 Bad Requestapplication/jsonWith invalid BEARER token:
401 Unauthorized