Update a certificate
PATCH
/certs/tls/{id}
const url = 'https://api.krakenkey.io/certs/tls/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"autoRenew":true,"managedBy":"connector"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.krakenkey.io/certs/tls/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "autoRenew": true, "managedBy": "connector" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Certificate ID
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
autoRenew
Enable or disable automatic renewal
boolean
managedBy
Who renews the certificate. ‘connector’: a customer-hosted connector renews it with its own keys and KrakenKey never renews it on its own (expiry alerts and ARI checks still run). null: KrakenKey renews it as usual.
string
Responses
Section titled “Responses”Certificate updated
Validation failed, for example managedBy not ‘connector’ or null
Viewers cannot update certificates
Certificate not found