Upload a custom TLS certificate for a domain
PUT
/apps/{slug}/certs/{domain}
const url = 'https://your-server.example/api/apps/example/certs/example';const options = { method: 'PUT', headers: {cookie: 'session=<session>', 'Content-Type': 'application/json'}, body: '{"cert":"example","key":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://your-server.example/api/apps/example/certs/example \ --header 'Content-Type: application/json' \ --cookie session=<session> \ --data '{ "cert": "example", "key": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
App slug (lowercase, dash-separated).
domain
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
cert
required
PEM certificate chain.
string
key
required
PEM private key.
string
Example generated
{ "cert": "example", "key": "example"}Responses
Section titled “Responses”Certificate stored.
Media typeapplication/json
object
status
string
Example
{ "status": "ok"}Invalid request.
Media typetext/plain
string