Skip to content

PUT /platforms/:platform/known-hosts/:known-host #55

@davidraker

Description

@davidraker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions