Request certificate
Create a certificate for your tenant
POST api/servers/{server}/sites/{site}/tenants/example.com/request-certificate
Parameters
Parameter | Type | Status | Description |
---|---|---|---|
webhook | string | optional | A URL that will be triggered by Ploi (POST) once certificate is issued and finished all setup |
domains | string | optional | A collection of domains comma separated to request a certificate for, example: domain.com,www.domain.com |
force | boolean | optional | Bypasses the Ploi DNS validation |
Example request:
curl -X POST "https://ploi.io/api/servers/{server}/sites/{site}/tenants/example.com/request-certificate" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
--data '{"domains" : "domain.com,www.domain.com"}'
Example response:
HTTP/1.1 201 CREATED
Content-Type: application/json