Update a user public key
post
/v1/public_keys/{id}Request
Authorization
- Authorizationstringheaderrequired
Key in the format
Bearer <API-key>. Create a key on the API keys page.
Path Parameters
- id integer<int64>required
Request body
descriptionstring
Key description
Response
bitsinteger<int64>
Key length in bits, 0 if it couldn't be determined
Example:
4096created_atstring<date-time>
Creation date
descriptionstring
Description
Example:
work laptopfingerprintstring
Fingerprint
Example:
SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8idinteger<int64>
Public key ID
Example:
42last_used_atstring<date-time>
Last used date
owner object
activeboolean
Active flag
avatar_urlstring
Avatar
Example:
https://www.gravatar.com/avatar/00000000000000000000000000000000emailstringEmail
Example:
jane@example.comidinteger<int64>
Identifier
Example:
42namestring
Name
Example:
Jane Doerolestring
Role
Possible values: [primary_owner, owner, admin, member]
Example:
memberprovisioned_bystring
What created or modified the object: terraform means the Terraform provider, empty means another client
securitystring
Key rating: ok, weak — RSA shorter than 2048 bits, unsupported — DSA or RSA shorter than 1024 bits, which the server rejects
Possible values: [ok, weak, unsupported]
Example:
oktypestring
Type
Possible values: [ssh-ed25519, ssh-rsa, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, ssh-dss]
Example:
ssh-ed25519