The following API call allows the user to edit PGP key.

Resource URL

/api/1.0/pgp-key/edit/<ID>

Resource Information

 

Response formatsJSON
Response code200
Requires authentication?Yes
HTTP MethodPOST

Parameters 

Name TypeDefault ValueValidationDescription

name

optional 

string-string

PGP key name.

public

optional

string-PGP public key datapublic part of PGP key

private

optional

string-PGP private key dataprivate part of PGP key

 

Example Request URL

Example Result

{
    "id": <uuid>,
    "name": <string>,
    "created": <uuid>,
    "modified": <uuid>,
    "private": <string>,
    "public": <string>,
    "email": <string>
}