The following API call allows the user to create PGP key. If PGP key exists already for given user, the action will do nothing.
Resource URL
/api/1.0/pgp-key/create
Resource Information
| Response formats | JSON |
| Response code | 201 |
| Requires authentication? | Yes |
| HTTP Method | POST |
Parameters
| Name | Type | Default Value | Validation | Description |
name required | string | - | string | PGP key name. |
public required | string | - | PGP public key data | public part of PGP key |
private optional | string | - | PGP private key data | private part of PGP key |
Example Request URL
Example Result
{
"id": <uuid>,
"name": <string>,
"created": <uuid>,
"modified": <uuid>,
"private": <string>,
"public": <string>,
"email": <string>
}
0 Comments