Domains /
Import domain certificate
Import a certificate for the domain
Required permission
Account > Domains > General > Update
Path parameters
domain
string requiredName of the domain
Request body
- {object}
certificate
{object} requiredCertificate to import.privateKey
string requiredCertificate private key.certificateChain
string requiredCertificate chain. May consist of one or more certificates.
Response body
- {object}Response object.
data
{object} requiredResult data.
API
CLI
JS Client
POST /v1/domains/{domain}/import
Example request
Request body
curl
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data 'undefined' \
https://api.northflank.com/v1/domains/{domain}/import
Example response
200 OK
The operation was performed successfully.
JSON
{
"data": {}
}
Example response
400 Bad Request
Could not parse certificate.
Example response
409 Conflict
Expiry date must be at least one month in the future.