HomeGuidesAPI Reference
GuidesAPI ReferenceGitHubAirheads Developer CommunityLog In
Guides

The POST method is used to send data to create/update a resource specified by the URI. The resource you are creating is sent in JSON format in the request body.

Example

The below example creates a certificate with a pending certificate signing request (CSR).

URI
POST "https://192.0.2.5/rest/v1/certificates"

Request Body

{
  "certificate_name": "my-cert-name",
  "subject": {
    "common_name": "CX-8400",
    "country": "US",
    "locality":"el camino",
    "state": "CA",
    "org": "HPE",
    "org_unit": "Aruba",
  },
  "key_type": "RSA",
  "key_size": 2048,
  "cert_type": "regular"
}