Skip to main content
Update an SSH key.

Signature

VastAI.update_ssh_key(
    id: int,
    ssh_key: str
) -> dict

Parameters

id
int
required
id of the ssh key to update
ssh_key
str
required
new public key value

Returns

dict

Example

from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.update_ssh_key(id=12345, ssh_key="value")
print(result)