v1

latestOpenAPI 3.0.02026-07-17508972.4 KB
EncryptionKeys

Edit encryption key

put/encryptionKeys/edit/{encryptionKeyId}

Path parameters

encryptionKeyIdinteger required
Example:1

Numeric ID of the EncryptionKey

Request body

uuidstring uuid
type'pgp' | 'smime'
encryption_keystring
revokedboolean
expiresinteger nullable

UNIX timestamp or null of there is no expiration

owner_idinteger
owner_model'Organisation' | 'User' | 'Individual' | 'EncryptionKey' | 'Role' | 'Tag' | 'SharingGroup' | 'Brood'

Example request

{
  "uuid": "c99506a6-1255-4b71-afa5-7b8ba48c3b1b",
  "encryption_key": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n...\n-----END PGP PUBLIC KEY BLOCK-----\n",
  "owner_id": 1
}

Response

Encryption key response

idinteger
uuidstring uuid
type'pgp' | 'smime'
encryption_keystring
revokedboolean
expiresinteger nullable

UNIX timestamp or null of there is no expiration

owner_idinteger
owner_model'Organisation' | 'User' | 'Individual' | 'EncryptionKey' | 'Role' | 'Tag' | 'SharingGroup' | 'Brood'
createdstring datetime
modifiedstring datetime

Example response

{
  "id": 1,
  "uuid": "c99506a6-1255-4b71-afa5-7b8ba48c3b1b",
  "encryption_key": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n...\n-----END PGP PUBLIC KEY BLOCK-----\n",
  "owner_id": 1,
  "created": "2022-01-05T11:19:26+00:00",
  "modified": "2022-01-05T11:19:26+00:00"
}