Autional Autional
API Reference GitHub autional.com →

POST /admin/identity-providers/{id}/certificates/{cert_id}/rotate

Revoke the old certificate and upload a new one

Identity Providers `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes Provider ID
cert_id path string Yes Old certificate ID

Request Body

Schema: dto.RotateCertificateRequest

FieldTypeRequiredExampleConstraintsDescription
cert_pem string Yes -----BEGIN CERTIFICATE-----...
name string No Rotated SAML Signing Cert

Responses

StatusDescriptionSchema
200OKdto.CertificateDetailResponse
400Bad Requestdto.SimpleResponseWrapper
401Unauthorizeddto.SimpleResponseWrapper
404Not Founddto.SimpleResponseWrapper
500Internal Server Errordto.SimpleResponseWrapper

Referenced Schemas

dto.CertificateDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.ProviderCertificateResponse No
message string No
timestamp string No

dto.ProviderCertificateResponse

Identity provider certificate information

FieldTypeRequiredExampleConstraintsDescription
created_at string No 2026-04-15T10:30:00Z
expires_at string No 2027-04-15T10:30:00Z
fingerprint string No sha256:abc123def456
id string No cert_abc123
name string No My SAML Signing Cert
provider_id string No idp_xyz789
status string No active
type string No signing

dto.SimpleResponseWrapper

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No