Quatrix APIs v1.0
Space shortcuts
Quatrix APIs v1.0 QA1

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The following API call allows the user to create PGP key. If PGP key exists already for given user, the action will do nothing.

The admin can edit keys of child users, but a private part will not be set.

Resource URL

/api/1.0/pgp-key/create

...

 

Response formatsJSON
Response code201
Requires authentication?Yes
HTTP MethodPOST

Parameters 

Name TypeDefault ValueValidationDescription

name

required 

string-string

PGP key name.

role_id

required

uuid-uuid4

key owner role ID.

public

required

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

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

 

 

 

 

Quatrix APIs v1.0 QA1