Skip to main content
POST
/
projects
/
{projectId}
/
certificates
Add an SSL certificate
curl --request POST \
  --url {schemes}://api.upsun.com/projects/{projectId}/certificates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "certificate": "<string>",
  "key": "<string>",
  "chain": [
    "<string>"
  ],
  "is_invalid": true
}
'
{
  "status": "<string>",
  "code": 123
}

Authorizations

Authorization
string
header
required

Path Parameters

projectId
string
required

Body

application/json
certificate
string
required

The PEM-encoded certificate

key
string
required

The PEM-encoded private key

chain
string[]

The certificate chain

is_invalid
boolean

Whether this certificate should be skipped during provisioning

Response

default - application/json
status
string
required

The status text of the response

code
integer
required

The status code of the response