Create an SSH key

View as Markdown
Create an SSH key for the authenticated client. Client must have read access to simulations. Supported OpenSSH public key formats: "ssh-rsa \<base64\>" or "ssh-rsa \<base64\> \<comment\>", "ssh-ed25519 \<base64\>" or "ssh-ed25519 \<base64\> \<comment\>". These SSH keys will be added to all simulations that the client is the creator of. **Permissions:** Any authenticated user with an Air scope.

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
namestringRequired1-255 characters
public_keystringRequired>=1 character

The public key of the client’s SSH key. This must be a valid OpenSSH public key in one of the following formats: “ssh-rsa <base64>” or “ssh-rsa <base64> <comment>”, “ssh-ed25519 <base64>” or “ssh-ed25519 <base64> <comment>”.

Response

createddatetimeRead-only
idstringRead-onlyformat: "uuid"
namestring<=255 characters
fingerprintstringRead-only

Errors

400
Bad Request Error
403
Forbidden Error
500
Internal Server Error