Set up automatic renewal for a managed certificate
POST/api/v1/workspaces/:id/certops/certificates/:certId/renewal-setup
Creates a renew job for the certificate and, in the same transaction, records the durable intent that turns the job's verified result into a renewal profile. A real run and its intent therefore commit together: there is no window in which renewal was requested but nothing was recorded.
dryRun: true makes this a preflight instead. It creates a dry_run
renew job (which terminates as dry_run_complete, never succeeded)
and records no intent, so a preflight can never configure anything.
The certificate detail response reports a completed preflight with no
intent behind it so the operator can resume.
Refused when the certificate already has a renewal profile, when its key mode is not agent-deployable, or when it is deployed in more than one location: the schema records a single deployment path, so a second location would silently go unrenewed behind a badge reading "auto".
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 409
- 422
- 429
- 500
- 503
Renew job created (and, for a real run, the adoption intent recorded)
The certificate's stored renewal inputs cannot produce a usable job
Unauthorized
Not a session user, or the session user lacks the workspace manager/admin role
CertOps is disabled or the certificate was not found in this workspace
CertOps is paused for this workspace, or the certificate cannot be adopted as it stands.
The request carried private key material, or no deployment path an agent could write to is recorded for this certificate.
The workspace API rate limiter rejected the request
Internal server error
Workspace pause state could not be read; new CertOps work is denied fail-closed