Skip to main content
POST
/
project
/
{project_id}
/
ssh-public-key
/
{ssh_public_key_reference}
Update SSH public key information
curl --request POST \
  --url https://api.ubicloud.com/project/{project_id}/ssh-public-key/{ssh_public_key_reference} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "public_key": "<string>"
}'
{
  "id": "skaz0q3vbrpa7pkg7zbmah9csn",
  "name": "<string>",
  "public_key": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string
required

ID of the project

Example:

"pjkkmx0f2vke4h36nk9cm8v8q0"

ssh_public_key_reference
string
required

SSH public key ID or name

Body

application/json
  • Option 1
  • Option 2
name
string
required
public_key
string

Response

Successful response

id
string
required

ID of the SSH public key

Example:

"skaz0q3vbrpa7pkg7zbmah9csn"

name
string
required

Name of the SSH public key

public_key
string

SSH public key data

I