Preview what deleting this authority will remove (subordinate authorities, signed certificates, private keys, and revocation lists) and how it affects trust.

GET /organizations/{organizationId}/authorities/{authorityId}/deletion

GET https://zanpki.com/organizations/{organizationId}/authorities/{authorityId}/deletion

Operation ID organizations.organizationId.authorities.authorityId.deletion.get
Access Browser session signed in through ZanAuth, using the access token cookie alongside its ID token and refresh token cookies. Or: An access token issued for this site by its ZanAuth issuer, or a static key.

Parameters

NameInTypeDescription
organizationId Path Required string (snowflake) Organization ID.
authorityId Path Required string (snowflake) Certificate authority ID.

Responses

StatusDescriptionSchemaContent type
200 Preview what deleting this authority will remove (subordinate authorities, signed certificates, private keys, and revocation lists) and how it affects trust. DeletionPage application/json, text/html, text/markdown
403 Your roles do not permit this action. Problem application/json, text/html, text/markdown
422 The request input was rejected. The errors object lists each validation failure. ValidationProblem application/json, text/html, text/markdown
Any other status The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation. Problem application/json, text/html, text/markdown

200 Preview what deleting this authority will remove (subordinate authorities, signed certificates, private keys, and revocation lists) and how it affects trust.

PropertyTypeDescription
pki_organizations_id string (snowflake) Required The organization's ID.
pki_organizations_name string Required Name of the organization (a customer, product, or team that owns authorities, certificates, and machines), up to 100 characters.
pki_agencies_id string (snowflake) Required The agency ID, or for an organization, the ID of its parent agency.
pki_agencies_name string Required Name of your company or agency (up to 100 characters) that owns its organizations.
record_id string (snowflake) Required ID of the record being deleted (certificate, authority, signing request, or organization).
name string Required Name of the record being deleted.
certificates_name string, or null Optional Display name for the certificate in ZanPKI (up to 100 characters). Exported files use this name.
authorities_name string, or null Optional Display name for the authority in ZanPKI (up to 100 characters). Exported files use this name.
signing_requests_name string, or null Optional Display name for the signing request in ZanPKI (up to 100 characters).
deletable boolean Required Whether the record can be deleted now. Certificates and expired authorities cannot be deleted until no CRL can still require them (see deletable_from).
deletable_from integer (int64), or null Required Earliest time the record can be deleted, in seconds since the Unix epoch, or null if deletable now.
goes list of DeletionLine Required Dependent records that will be deleted along with this record, grouped by kind; empty if nothing else is affected.
authorities list of string Required Names of authorities that will also be deleted (subordinate authorities for an authority deletion, or all authorities for an organization deletion).
revocation one of: "issuer_revokes", "revoked_already", "revoked_above", "ended", "root", "issuer_elsewhere", null Required For an authority, indicates whether its issuer will revoke it or why it cannot be revoked. Null for other record types.
issuer_name string, or null Required For an authority, the name of its signing authority in ZanPKI. Null if self-signed, externally issued, or for other record types.
revoked_above_name string, or null Required For an authority, the name of the nearest revoked authority in its issuer chain. Null if none is revoked or for other record types.
listed_until integer (int64), or null Required For an authority being revoked or already revoked by its issuer, the timestamp until which it remains on the issuer's CRL (one week after expiration), in seconds since the Unix epoch; null otherwise.
in_force_until integer (int64), or null Required For an organization or an authority that ZanPKI cannot revoke (a root or externally issued authority), the latest expiration time among still-valid certificates and authorities being deleted, in seconds since the Unix epoch. Null if none remain valid or for other record types.
revoked_below integer (int32) Required For an organization or an authority that ZanPKI cannot revoke, the number of revoked certificates and authorities currently listed on CRLs that will stop being served; 0 for other record types.
fingerprint string, or null Required For an organization, a digest of the deletion preview state that must be submitted with the DELETE request so deletion is rejected if anything changes. Null for other record types.

403 Your roles do not permit this action.

PropertyTypeDescription
type string Required A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Required The HTTP status as text, such as Not Found.
status integer (int32) Required The HTTP status code of the response.
detail string Required A human-readable explanation of what went wrong.
instance string Required The path the request was sent to.

422 The request input was rejected. The errors object lists each validation failure.

PropertyTypeDescription
type string Required A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Required The HTTP status as text, such as Not Found.
status integer (int32) Required The HTTP status code of the response.
detail string Required A human-readable explanation of what went wrong.
instance string Required The path the request was sent to.
errors InputErrors Required Validation errors for each rejected value. Parameter errors are returned as a list, and body errors as a tree matching the request body structure.

Any other status: The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation.

PropertyTypeDescription
type string Required A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Required The HTTP status as text, such as Not Found.
status integer (int32) Required The HTTP status code of the response.
detail string Required A human-readable explanation of what went wrong.
instance string Required The path the request was sent to.

Example

curl -X GET 'https://zanpki.com/organizations/{organizationId}/authorities/{authorityId}/deletion' \
  -H 'Authorization: Bearer <access token>'

All documentation